@akinon/projectzero 2.0.12-beta.0 → 2.0.12

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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # @akinon/projectzero
2
2
 
3
- ## 2.0.12-beta.0
3
+ ## 2.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - 2c707abe: ZERO-4465: upgrade-to-2 resolves dist-tags to actual versions before writing package.json
4
8
 
5
9
  ## 2.0.11
6
10
 
@@ -1,37 +1,36 @@
1
1
  # projectzeronext
2
2
 
3
- ## 2.0.12-beta.0
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies [cbbbfd75]
8
- - @akinon/next@2.0.12-beta.0
9
- - @akinon/pz-theme@2.0.12-beta.0
10
- - @akinon/pz-virtual-try-on@2.0.12-beta.0
11
- - @akinon/pz-akifast@2.0.12-beta.0
12
- - @akinon/pz-apple-pay@2.0.12-beta.0
13
- - @akinon/pz-b2b@2.0.12-beta.0
14
- - @akinon/pz-basket-gift-pack@2.0.12-beta.0
15
- - @akinon/pz-bkm@2.0.12-beta.0
16
- - @akinon/pz-checkout-gift-pack@2.0.12-beta.0
17
- - @akinon/pz-click-collect@2.0.12-beta.0
18
- - @akinon/pz-credit-payment@2.0.12-beta.0
19
- - @akinon/pz-cybersource-uc@2.0.12-beta.0
20
- - @akinon/pz-flow-payment@2.0.12-beta.0
21
- - @akinon/pz-google-pay@2.0.12-beta.0
22
- - @akinon/pz-gpay@2.0.12-beta.0
23
- - @akinon/pz-haso@2.0.12-beta.0
24
- - @akinon/pz-hepsipay@2.0.12-beta.0
25
- - @akinon/pz-masterpass@2.0.12-beta.0
26
- - @akinon/pz-masterpass-rest@2.0.12-beta.0
27
- - @akinon/pz-multi-basket@2.0.12-beta.0
28
- - @akinon/pz-one-click-checkout@2.0.12-beta.0
29
- - @akinon/pz-otp@2.0.12-beta.0
30
- - @akinon/pz-pay-on-delivery@2.0.12-beta.0
31
- - @akinon/pz-saved-card@2.0.12-beta.0
32
- - @akinon/pz-similar-products@2.0.12-beta.0
33
- - @akinon/pz-tabby-extension@2.0.12-beta.0
34
- - @akinon/pz-tamara-extension@2.0.12-beta.0
3
+ ## 2.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - @akinon/next@2.0.12
8
+ - @akinon/pz-akifast@2.0.12
9
+ - @akinon/pz-apple-pay@2.0.12
10
+ - @akinon/pz-b2b@2.0.12
11
+ - @akinon/pz-basket-gift-pack@2.0.12
12
+ - @akinon/pz-bkm@2.0.12
13
+ - @akinon/pz-checkout-gift-pack@2.0.12
14
+ - @akinon/pz-click-collect@2.0.12
15
+ - @akinon/pz-credit-payment@2.0.12
16
+ - @akinon/pz-cybersource-uc@2.0.12
17
+ - @akinon/pz-flow-payment@2.0.12
18
+ - @akinon/pz-google-pay@2.0.12
19
+ - @akinon/pz-gpay@2.0.12
20
+ - @akinon/pz-haso@2.0.12
21
+ - @akinon/pz-hepsipay@2.0.12
22
+ - @akinon/pz-masterpass@2.0.12
23
+ - @akinon/pz-masterpass-rest@2.0.12
24
+ - @akinon/pz-multi-basket@2.0.12
25
+ - @akinon/pz-one-click-checkout@2.0.12
26
+ - @akinon/pz-otp@2.0.12
27
+ - @akinon/pz-pay-on-delivery@2.0.12
28
+ - @akinon/pz-saved-card@2.0.12
29
+ - @akinon/pz-similar-products@2.0.12
30
+ - @akinon/pz-tabby-extension@2.0.12
31
+ - @akinon/pz-tamara-extension@2.0.12
32
+ - @akinon/pz-theme@2.0.12
33
+ - @akinon/pz-virtual-try-on@2.0.12
35
34
 
36
35
  ## 2.0.11
37
36
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "2.0.12-beta.0",
3
+ "version": "2.0.12",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -24,33 +24,33 @@
24
24
  "test:middleware": "jest middleware-matcher.test.ts --bail"
25
25
  },
26
26
  "dependencies": {
27
- "@akinon/next": "2.0.12-beta.0",
28
- "@akinon/pz-akifast": "2.0.12-beta.0",
29
- "@akinon/pz-apple-pay": "2.0.12-beta.0",
30
- "@akinon/pz-b2b": "2.0.12-beta.0",
31
- "@akinon/pz-basket-gift-pack": "2.0.12-beta.0",
32
- "@akinon/pz-bkm": "2.0.12-beta.0",
33
- "@akinon/pz-checkout-gift-pack": "2.0.12-beta.0",
34
- "@akinon/pz-click-collect": "2.0.12-beta.0",
35
- "@akinon/pz-credit-payment": "2.0.12-beta.0",
36
- "@akinon/pz-cybersource-uc": "2.0.12-beta.0",
37
- "@akinon/pz-flow-payment": "2.0.12-beta.0",
38
- "@akinon/pz-google-pay": "2.0.12-beta.0",
39
- "@akinon/pz-gpay": "2.0.12-beta.0",
40
- "@akinon/pz-haso": "2.0.12-beta.0",
41
- "@akinon/pz-hepsipay": "2.0.12-beta.0",
42
- "@akinon/pz-masterpass": "2.0.12-beta.0",
43
- "@akinon/pz-masterpass-rest": "2.0.12-beta.0",
44
- "@akinon/pz-multi-basket": "2.0.12-beta.0",
45
- "@akinon/pz-one-click-checkout": "2.0.12-beta.0",
46
- "@akinon/pz-otp": "2.0.12-beta.0",
47
- "@akinon/pz-pay-on-delivery": "2.0.12-beta.0",
48
- "@akinon/pz-saved-card": "2.0.12-beta.0",
49
- "@akinon/pz-similar-products": "2.0.12-beta.0",
50
- "@akinon/pz-tabby-extension": "2.0.12-beta.0",
51
- "@akinon/pz-tamara-extension": "2.0.12-beta.0",
52
- "@akinon/pz-theme": "2.0.12-beta.0",
53
- "@akinon/pz-virtual-try-on": "2.0.12-beta.0",
27
+ "@akinon/next": "2.0.12",
28
+ "@akinon/pz-akifast": "2.0.12",
29
+ "@akinon/pz-apple-pay": "2.0.12",
30
+ "@akinon/pz-b2b": "2.0.12",
31
+ "@akinon/pz-basket-gift-pack": "2.0.12",
32
+ "@akinon/pz-bkm": "2.0.12",
33
+ "@akinon/pz-checkout-gift-pack": "2.0.12",
34
+ "@akinon/pz-click-collect": "2.0.12",
35
+ "@akinon/pz-credit-payment": "2.0.12",
36
+ "@akinon/pz-cybersource-uc": "2.0.12",
37
+ "@akinon/pz-flow-payment": "2.0.12",
38
+ "@akinon/pz-google-pay": "2.0.12",
39
+ "@akinon/pz-gpay": "2.0.12",
40
+ "@akinon/pz-haso": "2.0.12",
41
+ "@akinon/pz-hepsipay": "2.0.12",
42
+ "@akinon/pz-masterpass": "2.0.12",
43
+ "@akinon/pz-masterpass-rest": "2.0.12",
44
+ "@akinon/pz-multi-basket": "2.0.12",
45
+ "@akinon/pz-one-click-checkout": "2.0.12",
46
+ "@akinon/pz-otp": "2.0.12",
47
+ "@akinon/pz-pay-on-delivery": "2.0.12",
48
+ "@akinon/pz-saved-card": "2.0.12",
49
+ "@akinon/pz-similar-products": "2.0.12",
50
+ "@akinon/pz-tabby-extension": "2.0.12",
51
+ "@akinon/pz-tamara-extension": "2.0.12",
52
+ "@akinon/pz-theme": "2.0.12",
53
+ "@akinon/pz-virtual-try-on": "2.0.12",
54
54
  "@hookform/resolvers": "2.9.0",
55
55
  "@next/third-parties": "16.2.6",
56
56
  "@react-google-maps/api": "2.17.1",
@@ -74,7 +74,7 @@
74
74
  "yup": "0.32.11"
75
75
  },
76
76
  "devDependencies": {
77
- "@akinon/eslint-plugin-projectzero": "2.0.12-beta.0",
77
+ "@akinon/eslint-plugin-projectzero": "2.0.12",
78
78
  "@semantic-release/changelog": "6.0.2",
79
79
  "@semantic-release/exec": "6.0.3",
80
80
  "@semantic-release/git": "10.0.1",
@@ -218,14 +218,31 @@ function stepBackup(cwd, flags) {
218
218
  return branchName;
219
219
  }
220
220
 
221
+ function resolveDistTag(name, value) {
222
+ // Semver-shaped values (16.2.4, ^9.0.0, 5.0.0-beta.25) are written as-is.
223
+ if (/^[~^]?\d+\.\d+\.\d+/.test(value)) return value;
224
+ // Otherwise treat as a dist-tag and resolve via npm view so the actual
225
+ // semver is what lands in package.json, not the floating tag string.
226
+ try {
227
+ const out = execSync(`npm view ${name} dist-tags.${value}`, {
228
+ encoding: 'utf-8',
229
+ stdio: ['ignore', 'pipe', 'ignore']
230
+ }).trim();
231
+ return /^\d+\.\d+\.\d+/.test(out) ? out : value;
232
+ } catch (_err) {
233
+ return value;
234
+ }
235
+ }
236
+
221
237
  function bumpDepsSection(section, matrix) {
222
238
  const changes = [];
223
239
  if (!section) return { section: section || {}, changes };
224
240
  for (const [name, version] of Object.entries(matrix)) {
225
- if (section[name] !== undefined && section[name] !== version) {
226
- changes.push(`${name}: ${section[name]} -> ${version}`);
227
- section[name] = version;
228
- }
241
+ if (section[name] === undefined) continue;
242
+ const resolved = resolveDistTag(name, version);
243
+ if (section[name] === resolved) continue;
244
+ changes.push(`${name}: ${section[name]} -> ${resolved}`);
245
+ section[name] = resolved;
229
246
  }
230
247
  return { section, changes };
231
248
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "2.0.12-beta.0",
3
+ "version": "2.0.12",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {