shakapacker 9.3.3 → 9.3.4.beta.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af5e0a15e65b57c5625993f56d28f207200c780c2ec98970231d45873455cc85
4
- data.tar.gz: a709f45129e88ccf0069bb3ba5a32bec9f6a936bce82316250b4ce3db4315a24
3
+ metadata.gz: 6f91e082c004aed62a936ae04be5d4a86adb4532deebe84f55662660f3735f67
4
+ data.tar.gz: aa26a6595a4f37bb61f83d10e978e77f5b6cbe2df50debb7428ecb9f8a6f1072
5
5
  SHA512:
6
- metadata.gz: 75a99bee03e05b0639464f592e9ec057efad0f8ecc3ff7ee2056252af216df6aacf4dd15649e8480bec9e1eb9de84faa68925e8d904083deef666d207530fd3b
7
- data.tar.gz: 166ca698ec3b50396e70f35af4c927b871407ebb66b2e4b9649d2a2b5fa302f241fd41de35bf3e21652568324d6bca43c07d3fe7d9300872d9a3be1054776329
6
+ metadata.gz: efeea8ba10d3a7df9d4a5d14d7f7f34169202ebd2f7f9c16e1875cdb55531be5155600ba2a06cb2fa53866785fd0a374742f2b420be68c12430a7597b553e23c
7
+ data.tar.gz: 89965343135e74749d0a04cafd1c6a931b311d62432c25cfc6f3e9c1bcbee4274605a200211d39622e6934a376f00b092b556238586d1742603398b0862b7d34
data/CHANGELOG.md CHANGED
@@ -11,6 +11,12 @@
11
11
 
12
12
  Changes since the last non-beta release.
13
13
 
14
+ ## [v9.3.3] - November 15, 2025
15
+
16
+ ### Fixed
17
+
18
+ - **Fixed `switch_bundler` task to preserve shared dependencies**. [PR #836](https://github.com/shakacode/shakapacker/pull/836) by [justin808](https://github.com/justin808). The task no longer removes `@swc/core`, `swc-loader`, and `webpack-merge` when switching bundlers, as these packages are shared between webpack and rspack configurations.
19
+
14
20
  ## [v9.3.2] - November 10, 2025
15
21
 
16
22
  ### Fixed
@@ -746,7 +752,8 @@ Note: [Rubygem is 6.3.0.pre.rc.1](https://rubygems.org/gems/shakapacker/versions
746
752
 
747
753
  See [CHANGELOG.md in rails/webpacker (up to v5.4.3)](https://github.com/rails/webpacker/blob/master/CHANGELOG.md)
748
754
 
749
- [Unreleased]: https://github.com/shakacode/shakapacker/compare/v9.3.2...main
755
+ [Unreleased]: https://github.com/shakacode/shakapacker/compare/v9.3.3...main
756
+ [v9.3.3]: https://github.com/shakacode/shakapacker/compare/v9.3.2...v9.3.3
750
757
  [v9.3.2]: https://github.com/shakacode/shakapacker/compare/v9.3.1...v9.3.2
751
758
  [v9.3.1]: https://github.com/shakacode/shakapacker/compare/v9.3.0...v9.3.1
752
759
  [v9.3.0]: https://github.com/shakacode/shakapacker/compare/v9.2.0...v9.3.0
data/CONTRIBUTING.md CHANGED
@@ -70,7 +70,7 @@ yarn lint --cache
70
70
 
71
71
  ## Setting Up a Development Environment
72
72
 
73
- 1. Install [Yarn](https://classic.yarnpkg.com/)
73
+ 1. Install [Yarn](https://classic.yarnpkg.com/) & [yalc](https://github.com/wclr/yalc)
74
74
  2. To test your changes on a Rails test project do the following steps:
75
75
  - For Ruby gem, update `Gemfile` and point the `shakapacker` to the locally developing Shakapacker project:
76
76
  ```ruby
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shakapacker (9.3.3)
4
+ shakapacker (9.3.4.beta.0)
5
5
  activesupport (>= 5.2)
6
6
  package_json
7
7
  rack-proxy (>= 0.6.1)
@@ -300,15 +300,13 @@ module Shakapacker
300
300
  def remove_dependencies(deps)
301
301
  package_json = get_package_json
302
302
 
303
- unless deps[:dev].empty?
304
- unless package_json.manager.remove(deps[:dev])
305
- puts " ⚠️ Warning: Failed to uninstall some dev dependencies"
306
- end
307
- end
303
+ # Combine dev and prod dependencies into a single list for removal
304
+ # Package managers remove packages from both dependencies and devDependencies sections if present
305
+ all_deps = deps[:dev] + deps[:prod]
308
306
 
309
- unless deps[:prod].empty?
310
- unless package_json.manager.remove(deps[:prod])
311
- puts " ⚠️ Warning: Failed to uninstall some prod dependencies"
307
+ unless all_deps.empty?
308
+ unless package_json.manager.remove(all_deps)
309
+ puts " ⚠️ Warning: Failed to uninstall some dependencies"
312
310
  end
313
311
  end
314
312
  end
@@ -1,4 +1,4 @@
1
1
  module Shakapacker
2
2
  # Change the version in package.json too, please!
3
- VERSION = "9.3.3".freeze
3
+ VERSION = "9.3.4.beta.0".freeze
4
4
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shakapacker",
3
- "version": "9.3.3",
3
+ "version": "9.3.4-beta.0",
4
4
  "description": "Use webpack to manage app-like JavaScript modules in Rails",
5
5
  "homepage": "https://github.com/shakacode/shakapacker",
6
6
  "bugs": {
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.3
4
+ version: 9.3.4.beta.0
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.3
392
+ source_code_uri: https://github.com/shakacode/shakapacker/tree/v9.3.4.beta.0
393
393
  rdoc_options: []
394
394
  require_paths:
395
395
  - lib