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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +95 -0
- data/Readme.md +51 -1
- data/lib/js_routes/configuration.rb +62 -5
- data/lib/js_routes/generators/base.rb +5 -4
- data/lib/js_routes/instance.rb +96 -25
- data/lib/js_routes/route.rb +40 -8
- data/lib/js_routes/utils.rb +6 -1
- data/lib/js_routes/version.rb +1 -1
- data/lib/js_routes.rb +11 -1
- data/lib/router.d.ts +63 -0
- data/lib/router.js +449 -0
- data/lib/router.ts +665 -0
- data/lib/routes.d.ts +1 -78
- data/lib/routes.js +103 -502
- data/lib/routes.ts +125 -703
- data/lib/templates/initializer.rb +12 -2
- metadata +7 -4
|
@@ -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.
|
|
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-
|
|
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.
|
|
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.
|
|
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:
|