shakapacker 8.0.0.pre.rc.1 → 8.0.0.rc.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/lib/shakapacker/version.rb +1 -1
- data/lib/shakapacker/version_checker.rb +5 -0
- data/package.json +1 -1
- data/spec/dummy/yarn.lock +1 -1
- data/spec/fixtures/beta_pnpm-lock.v9.yaml +2885 -0
- data/spec/fixtures/git_url_pnpm-lock.v9.yaml +4544 -0
- data/spec/fixtures/github_url_pnpm-lock.v9.yaml +4544 -0
- data/spec/fixtures/relative_path_pnpm-lock.v9.yaml +28 -0
- data/spec/fixtures/semver_caret_pnpm-lock.v9.yaml +4285 -0
- data/spec/fixtures/semver_exact_pnpm-lock.v9.yaml +2908 -0
- data/spec/fixtures/semver_tilde_pnpm-lock.v9.yaml +2885 -0
- data/spec/fixtures/without_pnpm-lock.v9.yaml +34 -0
- data/spec/shakapacker/version_checker_spec.rb +171 -0
- metadata +11 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e72a54f983e2119580919efc77ce450a4ffb2f7978732baf3d5867a77ad50bc7
|
4
|
+
data.tar.gz: 9ffa35b16d167fde5a0a8dbf68744dd7017461c91f7aedf405e1372d40614aaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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
|
data/lib/shakapacker/version.rb
CHANGED
@@ -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
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 "
|
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"
|