shakapacker 8.0.0.rc.2 → 8.0.0.rc.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78b70cacbde999707fcbdf1d0f45a192e21c7e5eef5e9f5709835b9dcadd3824
4
- data.tar.gz: 1110ce2c14512b80243f70d6273565e01983cac159c002e044c9fc732c425c9d
3
+ metadata.gz: e72a54f983e2119580919efc77ce450a4ffb2f7978732baf3d5867a77ad50bc7
4
+ data.tar.gz: 9ffa35b16d167fde5a0a8dbf68744dd7017461c91f7aedf405e1372d40614aaf
5
5
  SHA512:
6
- metadata.gz: 266bd0b3cd20a82d6b1d910e9b2a442c498c2a3dc259bc487604c80993e55fbbff81c0733b66edb8abc7215cc8b5252e60fa6b08c5c0608e3d7cf4f07c07e112
7
- data.tar.gz: 2855f15d2c926a7a0bc3f6075dd46e75ab68368edbe98e19d3360a02bcbb271c0fa06a563b1c1ac5c89635862ef005e88680ef28df2c249cd3b9dfe3c6864faf
6
+ metadata.gz: 69fcfa1c1d2cf18918faff7db4c1a9a116a887425629ec4f69e8dc162a4008e99661b058af8e88ae7560b9c684b9494ef047072162e600a00136d0740721767a
7
+ data.tar.gz: 81448d6f15ccc851c0c56cf6d7be04b205e02c87dcb489d3ab25a5db7886f999949508c907d10d08e13d732a9c0ec35179ab9cf375af74fe3cefebc4abd2f8c6
data/CHANGELOG.md CHANGED
@@ -10,6 +10,12 @@ _next_ branch is for v8 changes
10
10
  ## [Unreleased]
11
11
  Changes since the last non-beta release.
12
12
 
13
+ ### Fixed
14
+
15
+ - Support v9 PNPM lockfiles [PR 472](https://github.com/shakacode/shakapacker/pull/472) by [G-Rath](https://github.com/g-rath).
16
+
17
+ ## [v8.0.0.rc.2] - May 7, 2024
18
+
13
19
  ### Breaking changes
14
20
  - Remove `relative_url_root` [PR 413](https://github.com/shakacode/shakapacker/pull/413) by [G-Rath](https://github.com/g-rath).
15
21
 
@@ -353,7 +359,8 @@ Note: [Rubygem is 6.3.0.pre.rc.1](https://rubygems.org/gems/shakapacker/versions
353
359
  ## v5.4.3 and prior changes from rails/webpacker
354
360
  See [CHANGELOG.md in rails/webpacker (up to v5.4.3)](https://github.com/rails/webpacker/blob/master/CHANGELOG.md)
355
361
 
356
- [Unreleased]: https://github.com/shakacode/shakapacker/compare/v7.2.3...main
362
+ [Unreleased]: https://github.com/shakacode/shakapacker/compare/v8.0.0-rc.2...main
363
+ [v8.0.0.rc.2]: https://github.com/shakacode/shakapacker/compare/v7.2.3...v8.0.0-rc.2
357
364
  [v7.2.3]: https://github.com/shakacode/shakapacker/compare/v7.2.2...v7.2.3
358
365
  [v7.2.2]: https://github.com/shakacode/shakapacker/compare/v7.2.1...v7.2.2
359
366
  [v7.2.1]: https://github.com/shakacode/shakapacker/compare/v7.2.0...v7.2.1
@@ -1,4 +1,4 @@
1
1
  module Shakapacker
2
2
  # Change the version in package.json too, please!
3
- VERSION = "8.0.0.rc.2".freeze
3
+ VERSION = "8.0.0.rc.3".freeze
4
4
  end
@@ -207,8 +207,13 @@ module Shakapacker
207
207
  content = YAML.load_file(@pnpm_lock)
208
208
 
209
209
  content.fetch("packages", {}).each do |key, value|
210
+ # git-based constraints will include a "version" key with their pseudo semantic version
211
+ return value["version"] if key.start_with?("shakapacker") && value.key?("version")
210
212
  return value["version"] if value["name"] == "shakapacker"
211
213
 
214
+ # v9+ uses the same key format just without the leading slash, so we just add one in
215
+ key = "/#{key}" unless key.start_with?("/")
216
+
212
217
  parts = key.split("/")
213
218
 
214
219
  return parts[2] if parts[1] == "shakapacker"
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shakapacker",
3
- "version": "8.0.0-rc.2",
3
+ "version": "8.0.0-rc.3",
4
4
  "description": "Use webpack to manage app-like JavaScript modules in Rails",
5
5
  "homepage": "https://github.com/shakacode/shakapacker",
6
6
  "bugs": {
data/spec/dummy/yarn.lock CHANGED
@@ -4060,7 +4060,7 @@ setprototypeof@1.2.0:
4060
4060
  integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==
4061
4061
 
4062
4062
  "shakapacker@file:.yalc/shakapacker":
4063
- version "7.2.3"
4063
+ version "8.0.0-rc.2"
4064
4064
  dependencies:
4065
4065
  js-yaml "^4.1.0"
4066
4066
  path-complete-extname "^1.0.0"