Skip to content

ui-dev: bump js-routes from 1.4.14 to 2.4.0 in /server/src/main/webapp/WEB-INF/rails#4040

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/bundler/server/src/main/webapp/WEB-INF/rails/js-routes-2.4.0
Open

ui-dev: bump js-routes from 1.4.14 to 2.4.0 in /server/src/main/webapp/WEB-INF/rails#4040
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/bundler/server/src/main/webapp/WEB-INF/rails/js-routes-2.4.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 19, 2026

Copy link
Copy Markdown

Bumps js-routes from 1.4.14 to 2.4.0.

Release notes

Sourced from js-routes's releases.

v2.4.0

Changes

Package mode

Add package option and JsRoutes.package / JsRoutes.package! API for sharing a single Router runtime across multiple route files.

Why: When an app generates several ESM route files (e.g. one per domain or engine), each file previously embedded the full js-routes runtime (~10 KB minified). With package, the runtime is extracted into one router.js and every route file imports it — the runtime is downloaded and parsed only once.

Generate the shared router package (no route definitions, just the runtime):

# config/initializers/js_routes.rb
JsRoutes.package!                   # writes app/javascript/router.js
# or with a custom path:
JsRoutes.package!("shared/router.js")

Generate consumer route files that import from it:

JsRoutes.generate!(
  "app/javascript/admin_routes.js",
  typed: true,
  package: "./router.js",   # or package: true for the default path
  include: /\Aadmin_/
)
JsRoutes.generate!(
"app/javascript/api_routes.js",
typed: true,
package: "./router.js",
include: /\Aapi_/
)

Or share one configuration block:

JsRoutes.setup do |c|
  c.module_type = "ESM"
  c.package     = "./router.js"   # all generated files import the same runtime
end
JsRoutes.package!                 # router.js  — runtime only
JsRoutes.generate!                # routes.js  — route helpers only

package: true is a shorthand for package: "./router.js".

... (truncated)

Changelog

Sourced from js-routes's changelog.

[2.4.0]

Package mode

Add package option and JsRoutes.package / JsRoutes.package! API for sharing a single Router runtime across multiple route files.

Why: When an app generates several ESM route files (e.g. one per domain or engine), each file previously embedded the full js-routes runtime (~10 KB minified). With package, the runtime is extracted into one router.js and every route file imports it — the runtime is downloaded and parsed only once.

Generate the shared router package (no route definitions, just the runtime):

# config/initializers/js_routes.rb
JsRoutes.package!                   # writes app/javascript/router.js
# or with a custom path:
JsRoutes.package!("shared/router.js")

Generate consumer route files that import from it:

JsRoutes.generate!(
  "app/javascript/admin_routes.js",
  typed: true,
  package: "./router.js",   # or package: true for the default path
  include: /\Aadmin_/
)
JsRoutes.generate!(
"app/javascript/api_routes.js",
typed: true,
package: "./router.js",
include: /\Aapi_/
)

Or share one configuration block:

JsRoutes.setup do |c|
  c.module_type = "ESM"
  c.package     = "./router.js"   # all generated files import the same runtime
end
JsRoutes.package!                 # router.js  — runtime only
JsRoutes.generate!                # routes.js  — route helpers only

package: true is a shorthand for package: "./router.js".

include_undefined_query_parameters option

... (truncated)

Commits

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 [js-routes](https://github.com/railsware/js-routes) from 1.4.14 to 2.4.0.
- [Release notes](https://github.com/railsware/js-routes/releases)
- [Changelog](https://github.com/railsware/js-routes/blob/main/CHANGELOG.md)
- [Commits](railsware/js-routes@v1.4.14...v2.4.0)

---
updated-dependencies:
- dependency-name: js-routes
  dependency-version: 2.4.0
  dependency-type: indirect
  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 ruby Pull requests that update Ruby code labels Jun 19, 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 ruby Pull requests that update Ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants