Skip to content

chore(deps): bump restana from 6.1.0 to 7.0.0 - #494

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/restana-7.0.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/restana-7.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 1, 2026

Copy link
Copy Markdown
Contributor

Bumps restana from 6.1.0 to 7.0.0.

Changelog

Sourced from restana's changelog.

7.0.0

Breaking release. See the migration guide.

Breaking

  • Upgraded 0http to 5.2 and made its dependency-free trie router the default. Matching is case-sensitive and stricter about route patterns. Set caseSensitive: false or router: 'sequential' for the previous behavior. routerCacheSize only applies to the sequential router.
  • The default errorHandler responds the same way as res.send(err). The status text matches the status code (404 Not Found instead of 404 Internal Server Error), and debugErrors now applies to next(err) and thrown errors. Non-Error values are wrapped safely.
  • res.send(number) treats only integers from 100 to 999 as status codes. Other numbers are sent as JSON bodies instead of being dropped.
  • package.json exports limits imports to restana, restana/libs/elastic-apm, restana/libs/newrelic-apm and restana/package.json.
  • TypeScript: route registration and use() return the object they were called on. getConfigOptions() returns Readonly<Options>, errorHandler is readonly, and use(router) without a prefix is no longer accepted.

Added

  • router option to select the 'trie' (default) or 'sequential' router.
  • caseSensitive and ignoreTrailingSlash options for the trie router.
  • Runtime restana.Protocol and restana.Method objects matching the TypeScript enums.
  • TypeScript support for registering multiple middlewares in one use() call.
  • Type declarations for the Elastic APM and New Relic integrations.
  • TypeScript route parameter inference: service.get('/users/:id', (req) => req.params.id) and the restana.RouteParams<Path> helper type.
  • .nvmrc pinning Node.js 26 (latest stable) for contributors; Node.js 24 LTS remains the minimum.

Testing

  • 100% statement, branch, function and line coverage, enforced at a 99% minimum in npm test.
  • The test suite also passes on Bun.
  • Upgraded mocha to 12 and morgan to 1.12, and dropped the diff and serialize-javascript overrides, resolving all npm audit findings in development dependencies.

Performance

  • The sequential router and its dependencies are loaded only when router: 'sequential' is selected, cutting require('restana') time by about 40% and the initial heap by about 0.5 MB.
  • res.send() no longer registers a finish listener per response when no callback is passed.
  • Security header options are resolved once per service instead of on every request.

Fixed

  • res.send(undefined, code) and promises resolving to undefined no longer drop the explicit status code.
  • Non-numeric error codes (e.g. 'ENOENT') no longer mask a valid err.statusCode.
  • APM instrumentation names multi-path routes per path instead of joining them (GET /a,/b).
  • res.send() rejects function, symbol and bigint payloads with a 500 error. Functions used to be treated as the res.end() callback, silently sending an empty 200 response.
Commits
  • 901bd73 Merge pull request #129 from BackendStack21/chore/dev-deps-security
  • 3d4cad2 chore(deps): resolve dev dependency security alerts
  • 89589a0 Merge pull request #128 from BackendStack21/fix/send-status-and-ergonomics
  • caaf96c docs: finish 7.0 landing page refresh
  • 59c7f7d test: reach 100% coverage and enforce a 99% minimum
  • 907595d chore: pin Node.js 26 (latest stable) for contributors
  • ce24f39 perf: faster startup and response path; feat(types): infer route params
  • 230f4db feat!: restana 7.0
  • 10cfe71 feat: upgrade 0http to 5.2 and default to the trie router
  • eb973da fix: preserve explicit status codes and improve API ergonomics
  • See full diff in compare view

Dependabot compatibility score

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 this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [restana](https://github.com/BackendStack21/restana) from 6.1.0 to 7.0.0.
- [Release notes](https://github.com/BackendStack21/restana/releases)
- [Changelog](https://github.com/BackendStack21/restana/blob/master/CHANGELOG.md)
- [Commits](BackendStack21/restana@v6.1.0...v7.0.0)

---
updated-dependencies:
- dependency-name: restana
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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 Nov 1, 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