shakapacker 9.3.2 → 9.3.3
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 +15 -2
- data/Gemfile.lock +1 -1
- data/lib/shakapacker/bundler_switcher.rb +31 -8
- data/lib/shakapacker/version.rb +1 -1
- data/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: af5e0a15e65b57c5625993f56d28f207200c780c2ec98970231d45873455cc85
|
|
4
|
+
data.tar.gz: a709f45129e88ccf0069bb3ba5a32bec9f6a936bce82316250b4ce3db4315a24
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 75a99bee03e05b0639464f592e9ec057efad0f8ecc3ff7ee2056252af216df6aacf4dd15649e8480bec9e1eb9de84faa68925e8d904083deef666d207530fd3b
|
|
7
|
+
data.tar.gz: 166ca698ec3b50396e70f35af4c927b871407ebb66b2e4b9649d2a2b5fa302f241fd41de35bf3e21652568324d6bca43c07d3fe7d9300872d9a3be1054776329
|
data/CHANGELOG.md
CHANGED
|
@@ -11,9 +11,21 @@
|
|
|
11
11
|
|
|
12
12
|
Changes since the last non-beta release.
|
|
13
13
|
|
|
14
|
+
## [v9.3.2] - November 10, 2025
|
|
15
|
+
|
|
14
16
|
### Fixed
|
|
15
17
|
|
|
16
|
-
-
|
|
18
|
+
- **Fixed TypeScript import error in public types when webpack is not installed**. [PR #828](https://github.com/shakacode/shakapacker/pull/828) by [G-Rath](https://github.com/G-Rath). Uses `@ts-ignore` instead of `@ts-expect-error` to suppress potential import error when webpack is not installed.
|
|
19
|
+
- **Fixed bundler switch task to add missing `assets_bundler` config**. [PR #833](https://github.com/shakacode/shakapacker/pull/833) by [justin808](https://github.com/justin808). The `rake shakapacker:switch_bundler` task now automatically adds the `assets_bundler` key to `shakapacker.yml` if it's missing, preventing silent failures when switching bundlers.
|
|
20
|
+
- **Fixed rake tasks to use `bundle exec rake` instead of `bundle exec rails`**. [PR #830](https://github.com/shakacode/shakapacker/pull/830) by [Judahmeek](https://github.com/Judahmeek). Rake tasks should be invoked with `bundle exec rake` to support command-line flags properly, as Rails commands don't support flags.
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- **Support for esbuild 0.26 and 0.27**. [PR #832](https://github.com/shakacode/shakapacker/pull/832) by [justin808](https://github.com/justin808). Extended peer dependency range to support newer esbuild versions.
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- **Simplified `switch_bundler` task to only support rake command**. [PR #831](https://github.com/shakacode/shakapacker/pull/831) by [justin808](https://github.com/justin808). The `rake shakapacker:switch_bundler` task now only works with `bundle exec rake`, not `bundle exec rails`. Use `bundle exec rake shakapacker:switch_bundler [bundler] -- [options]` for clearer command-line flag support.
|
|
17
29
|
|
|
18
30
|
## [v9.3.1] - November 9, 2025
|
|
19
31
|
|
|
@@ -734,7 +746,8 @@ Note: [Rubygem is 6.3.0.pre.rc.1](https://rubygems.org/gems/shakapacker/versions
|
|
|
734
746
|
|
|
735
747
|
See [CHANGELOG.md in rails/webpacker (up to v5.4.3)](https://github.com/rails/webpacker/blob/master/CHANGELOG.md)
|
|
736
748
|
|
|
737
|
-
[Unreleased]: https://github.com/shakacode/shakapacker/compare/v9.3.
|
|
749
|
+
[Unreleased]: https://github.com/shakacode/shakapacker/compare/v9.3.2...main
|
|
750
|
+
[v9.3.2]: https://github.com/shakacode/shakapacker/compare/v9.3.1...v9.3.2
|
|
738
751
|
[v9.3.1]: https://github.com/shakacode/shakapacker/compare/v9.3.0...v9.3.1
|
|
739
752
|
[v9.3.0]: https://github.com/shakacode/shakapacker/compare/v9.2.0...v9.3.0
|
|
740
753
|
[v9.2.0]: https://github.com/shakacode/shakapacker/compare/v9.1.0...v9.2.0
|
data/Gemfile.lock
CHANGED
|
@@ -12,15 +12,24 @@ module Shakapacker
|
|
|
12
12
|
# Regex pattern to detect assets_bundler key in config (only matches uncommented lines)
|
|
13
13
|
ASSETS_BUNDLER_PATTERN = /^[ \t]*assets_bundler:/
|
|
14
14
|
|
|
15
|
+
# Shared dependencies used by both webpack and rspack
|
|
16
|
+
# These should not be removed when switching bundlers
|
|
17
|
+
SHARED_DEPS = {
|
|
18
|
+
dev: %w[],
|
|
19
|
+
prod: %w[webpack-merge]
|
|
20
|
+
}.freeze
|
|
21
|
+
|
|
15
22
|
# Default dependencies for each bundler (package names only, no versions)
|
|
23
|
+
# Note: Excludes independent/optional dependencies like @swc/core, swc-loader (user-configured
|
|
24
|
+
# transpilers)
|
|
16
25
|
DEFAULT_RSPACK_DEPS = {
|
|
17
26
|
dev: %w[@rspack/cli @rspack/plugin-react-refresh],
|
|
18
27
|
prod: %w[@rspack/core rspack-manifest-plugin]
|
|
19
28
|
}.freeze
|
|
20
29
|
|
|
21
30
|
DEFAULT_WEBPACK_DEPS = {
|
|
22
|
-
dev: %w[webpack webpack-cli webpack-dev-server @pmmmwh/react-refresh-webpack-plugin
|
|
23
|
-
prod: %w[webpack-assets-manifest
|
|
31
|
+
dev: %w[webpack webpack-cli webpack-dev-server @pmmmwh/react-refresh-webpack-plugin],
|
|
32
|
+
prod: %w[webpack-assets-manifest]
|
|
24
33
|
}.freeze
|
|
25
34
|
|
|
26
35
|
attr_reader :root_path
|
|
@@ -148,16 +157,24 @@ module Shakapacker
|
|
|
148
157
|
raise
|
|
149
158
|
end
|
|
150
159
|
rspack_deps = {
|
|
151
|
-
dev: custom.dig("rspack", "devDependencies") || DEFAULT_RSPACK_DEPS[:dev],
|
|
152
|
-
prod: custom.dig("rspack", "dependencies") || DEFAULT_RSPACK_DEPS[:prod]
|
|
160
|
+
dev: (custom.dig("rspack", "devDependencies") || DEFAULT_RSPACK_DEPS[:dev]) + SHARED_DEPS[:dev],
|
|
161
|
+
prod: (custom.dig("rspack", "dependencies") || DEFAULT_RSPACK_DEPS[:prod]) + SHARED_DEPS[:prod]
|
|
153
162
|
}
|
|
154
163
|
webpack_deps = {
|
|
155
|
-
dev: custom.dig("webpack", "devDependencies") || DEFAULT_WEBPACK_DEPS[:dev],
|
|
156
|
-
prod: custom.dig("webpack", "dependencies") || DEFAULT_WEBPACK_DEPS[:prod]
|
|
164
|
+
dev: (custom.dig("webpack", "devDependencies") || DEFAULT_WEBPACK_DEPS[:dev]) + SHARED_DEPS[:dev],
|
|
165
|
+
prod: (custom.dig("webpack", "dependencies") || DEFAULT_WEBPACK_DEPS[:prod]) + SHARED_DEPS[:prod]
|
|
157
166
|
}
|
|
158
167
|
[rspack_deps, webpack_deps]
|
|
159
168
|
else
|
|
160
|
-
|
|
169
|
+
rspack_with_shared = {
|
|
170
|
+
dev: DEFAULT_RSPACK_DEPS[:dev] + SHARED_DEPS[:dev],
|
|
171
|
+
prod: DEFAULT_RSPACK_DEPS[:prod] + SHARED_DEPS[:prod]
|
|
172
|
+
}
|
|
173
|
+
webpack_with_shared = {
|
|
174
|
+
dev: DEFAULT_WEBPACK_DEPS[:dev] + SHARED_DEPS[:dev],
|
|
175
|
+
prod: DEFAULT_WEBPACK_DEPS[:prod] + SHARED_DEPS[:prod]
|
|
176
|
+
}
|
|
177
|
+
[rspack_with_shared, webpack_with_shared]
|
|
161
178
|
end
|
|
162
179
|
end
|
|
163
180
|
|
|
@@ -234,7 +251,13 @@ module Shakapacker
|
|
|
234
251
|
def manage_dependencies(bundler, install_deps, switching: true, no_uninstall: false)
|
|
235
252
|
rspack_deps, webpack_deps = load_dependencies
|
|
236
253
|
deps_to_install = bundler == "rspack" ? rspack_deps : webpack_deps
|
|
237
|
-
|
|
254
|
+
old_bundler_deps = bundler == "rspack" ? webpack_deps : rspack_deps
|
|
255
|
+
|
|
256
|
+
# Remove shared dependencies from removal list
|
|
257
|
+
deps_to_remove = {
|
|
258
|
+
dev: old_bundler_deps[:dev] - SHARED_DEPS[:dev],
|
|
259
|
+
prod: old_bundler_deps[:prod] - SHARED_DEPS[:prod]
|
|
260
|
+
}
|
|
238
261
|
|
|
239
262
|
if install_deps
|
|
240
263
|
puts ""
|
data/lib/shakapacker/version.rb
CHANGED
data/package.json
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shakapacker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 9.3.
|
|
4
|
+
version: 9.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Heinemeier Hansson
|
|
@@ -389,7 +389,7 @@ homepage: https://github.com/shakacode/shakapacker
|
|
|
389
389
|
licenses:
|
|
390
390
|
- MIT
|
|
391
391
|
metadata:
|
|
392
|
-
source_code_uri: https://github.com/shakacode/shakapacker/tree/v9.3.
|
|
392
|
+
source_code_uri: https://github.com/shakacode/shakapacker/tree/v9.3.3
|
|
393
393
|
rdoc_options: []
|
|
394
394
|
require_paths:
|
|
395
395
|
- lib
|