Skip to content

build(deps-dev): bump the npm-dependencies group with 2 updates#428

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/npm-dependencies-9fe281c225
Open

build(deps-dev): bump the npm-dependencies group with 2 updates#428
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/npm-dependencies-9fe281c225

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Apr 15, 2026

Bumps the npm-dependencies group with 2 updates: counterfact and prettier.

Updates counterfact from 2.7.0 to 2.8.1

Release notes

Sourced from counterfact's releases.

v2.8.1

Patch Changes

  • 0b32088: Use Pick<Config, ...> in function signatures to declare only the config keys each function actually uses. This improves readability and makes each function's dependencies explicit.
Changelog

Sourced from counterfact's changelog.

2.8.1

Patch Changes

  • 0b32088: Use Pick<Config, ...> in function signatures to declare only the config keys each function actually uses. This improves readability and makes each function's dependencies explicit.

2.8.0

Minor Changes

  • c6e0625: Add startup scenario: export a function named startup from scenarios/index.ts and it will run automatically when the server initializes, right before the REPL starts. Use it to seed dummy data so the server is immediately useful without any manual REPL commands. If startup is not exported, the server starts normally with no error.

  • a0cbfcc: createKoaApp() now accepts named parameters via destructuring ({ config, dispatcher, registry, contextRegistry }) and creates routesMiddleware and adminApiMiddleware internally. counterfact() no longer returns routesMiddleware.

  • ae11a87: Refactor OpenApiDocument from a plain interface into a class.

    OpenApiDocument now extends EventTarget and manages its own lifecycle:

    • new OpenApiDocument(source) — create an instance pointing at a local path or URL
    • await document.load() — read and parse the file, populating paths, basePath, and produces
    • await document.watch() — start watching the source file; dispatches a "reload" event whenever the file changes on disk
    • await document.stopWatching() — stop the file watcher

    The separate OpenApiWatcher class has been removed; its behaviour is now built into OpenApiDocument.

  • 687f8fc: Remove the built-in GUI client (dashboard and RapiDoc pages) from src/client and the Handlebars dependency. The Swagger UI at /counterfact/swagger remains available. Navigating to /counterfact now redirects to /counterfact/swagger.

  • 55ee5e2: Export ContextArgs type from generated types/_.context.ts so that _.context.ts files can strongly type the loadContext and readJson parameters received in the Context constructor. The default _.context.ts template now imports and uses ContextArgs.

Patch Changes

  • 145c7f4: Add toForwardSlashPath utility function and ForwardSlashPath branded type. All path normalization that previously used inline .replaceAll("\\", "/") now goes through this single, centralized function, making Windows path handling easier to find and reason about.
  • e0414c7: Add JSDoc comments throughout the codebase, covering all major classes, functions, and interfaces in src/server/, src/typescript-generator/, src/repl/, and src/util/.
  • ea5b3e9: Make the hexagon in the REPL prompt the same shade of blue as the logo (#0071b5).
  • c047a4d: Refactor: extract a ScenarioFileGenerator class that encapsulates writeScenarioContextType and writeDefaultScenariosIndex, complete with its own file-system watcher for the routes/ directory. app.ts now calls ScenarioFileGenerator directly instead of hooking into contextRegistry events.
  • 919fd3c: Fix Jest worker process failing to exit gracefully by closing REPL servers after each test in the repl test suite.
  • 688fb84: Fix TypeError when an OpenAPI Path Item Object contains non-HTTP-verb fields such as summary, description, servers, or parameters. These fields are now correctly ignored during code generation instead of being treated as operations.
  • ca38a27: Moved openapi-example.yaml from the repository root into test/fixtures/openapi-example.yaml and expanded it with many OpenAPI edge cases: CRUD operations on /users and /users/{userId}, polymorphic events via oneOf/allOf/discriminator, nullable fields, enum types, integer formats, file upload via multipart/form-data, cookie parameters, deprecated endpoints, multiple response content types, a no-body 204 health-check endpoint, and free-form additionalProperties objects.
  • 8834b1d: Refactor createKoaApp() to accept adminApiMiddleware as a parameter instead of constructing it internally. Rename the koaMiddleware parameter and export to routesMiddleware.
  • 51e3cb1: Refactor docs information architecture: docs/usage.md is now a central hub page linking to individual feature pages under docs/features/, and pattern pages are consolidated under docs/patterns/index.md.
  • f97e8a7: Refactor openapiMiddleware to accept an array of { path, baseUrl, id } document descriptors. When the array contains a single entry the document is still served at /counterfact/openapi (backward-compatible). When multiple entries are provided each document is served at /counterfact/openapi/{id}.
  • b26617e: Replaced the five-minute walkthrough README with a concise, confident two-paragraph introduction. Added ten README variants under docs/readme-variants/ for the team to review and choose from.
  • e4e8757: Rename the .apply REPL command to .scenario. Update all references in code, tests, and documentation.
Commits

Updates prettier from 3.8.2 to 3.8.3

Release notes

Sourced from prettier's releases.

3.8.3

🔗 Changelog

Changelog

Sourced from prettier's changelog.

3.8.3

diff

SCSS: Prevent trailing comma in if() function (#18471 by @​kovsu)

// Input
$value: if(sass(false): 1; else: -1);
// Prettier 3.8.2
$value: if(
sass(false): 1; else: -1,
);
// Prettier 3.8.3
$value: if(sass(false): 1; else: -1);

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the npm-dependencies group with 2 updates: [counterfact](https://github.com/counterfact/api-simulator) and [prettier](https://github.com/prettier/prettier).


Updates `counterfact` from 2.7.0 to 2.8.1
- [Release notes](https://github.com/counterfact/api-simulator/releases)
- [Changelog](https://github.com/counterfact/api-simulator/blob/main/CHANGELOG.md)
- [Commits](https://github.com/counterfact/api-simulator/commits/v2.8.1)

Updates `prettier` from 3.8.2 to 3.8.3
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@3.8.2...3.8.3)

---
updated-dependencies:
- dependency-name: counterfact
  dependency-version: 2.8.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: prettier
  dependency-version: 3.8.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants