js-routes 2.3.7 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,13 +15,23 @@ JsRoutes.setup do |c|
15
15
  # c.camel_case = true
16
16
 
17
17
  # Generate only helpers that match specific pattern.
18
- # c.exclude = /^api_/
19
- # c.include = /^admin_/
18
+ # c.exclude = [ /^api_/ ]
19
+ # c.include = [ /^admin_/ ]
20
20
 
21
21
  # Generate `*_url` helpers besides `*_path`
22
22
  # for apps that work on multiple domains.
23
23
  # c.url_links = true
24
24
 
25
+ # Setup default URL options similar to rails equivalent.
26
+ # c.default_url_options = {
27
+ # host: 'example.com', protocol: 'https', format: 'json'
28
+ # }
29
+
30
+ # Omit query parameters whose value is undefined.
31
+ # This option is transitional to introduce new behaviour to old apps.
32
+ # Recommended to stay false for new apps.
33
+ c.include_undefined_query_parameters = false
34
+
25
35
  # More options:
26
36
  # @see https://github.com/railsware/js-routes#available-options
27
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js-routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.7
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bogdan Gusiev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-30 00:00:00.000000000 Z
11
+ date: 2026-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -132,6 +132,9 @@ files:
132
132
  - lib/js_routes/types.rb
133
133
  - lib/js_routes/utils.rb
134
134
  - lib/js_routes/version.rb
135
+ - lib/router.d.ts
136
+ - lib/router.js
137
+ - lib/router.ts
135
138
  - lib/routes.d.ts
136
139
  - lib/routes.js
137
140
  - lib/routes.ts
@@ -144,9 +147,9 @@ licenses:
144
147
  - MIT
145
148
  metadata:
146
149
  bug_tracker_uri: https://github.com/railsware/js-routes/issues
147
- changelog_uri: https://github.com/railsware/js-routes/blob/v2.3.7/CHANGELOG.md
150
+ changelog_uri: https://github.com/railsware/js-routes/blob/v2.4.0/CHANGELOG.md
148
151
  documentation_uri: https://github.com/railsware/js-routes
149
- source_code_uri: https://github.com/railsware/js-routes/tree/v2.3.7
152
+ source_code_uri: https://github.com/railsware/js-routes/tree/v2.4.0
150
153
  rubygems_mfa_required: 'true'
151
154
  github_repo: ssh://github.com/railsware/js-routes
152
155
  post_install_message: