@akinon/projectzero 1.89.0-rc.21 → 1.89.0-rc.22
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 +10 -0
- package/app-template/CHANGELOG.md +96 -0
- package/app-template/package.json +18 -18
- package/commands/plugins.ts +20 -30
- package/dist/commands/plugins.js +19 -20
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @akinon/projectzero
|
|
2
2
|
|
|
3
|
+
## 1.89.0-rc.22
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 64699d3f: ZERO-2761: Fix invalid import for plugin module
|
|
8
|
+
- e974d8e: ZERO-3406: Fix rc build
|
|
9
|
+
- 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
|
|
10
|
+
- 33377cfd: ZERO-3267: Refactor import statement for ROUTES in error-page component
|
|
11
|
+
- 5ccd96d: ZERO-3388: resolve plugin installation bug with prompt package
|
|
12
|
+
|
|
3
13
|
## 1.89.0-rc.21
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
@@ -1,5 +1,101 @@
|
|
|
1
1
|
# projectzeronext
|
|
2
2
|
|
|
3
|
+
## 1.89.0-rc.22
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 63774a6a: ZERO-3351: Add commerce redirection ignore list functionality and related utility
|
|
8
|
+
- 4434c510: ZERO-3321: remove csp test script
|
|
9
|
+
- 82174637: ZERO-2887: Add LoaderSpinner to Filters component
|
|
10
|
+
- 3670f522: ZERO-3301 :Upgrade react-number-format to the latest version
|
|
11
|
+
- 64699d3f: ZERO-2761: Fix invalid import for plugin module
|
|
12
|
+
- e974d8e: ZERO-3406: Fix rc build
|
|
13
|
+
- 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
|
|
14
|
+
- 448adefb: ZERO-3321: move csp test to akinon-next
|
|
15
|
+
- e9ce5edb: ZERO-3321: check last CSP header in test
|
|
16
|
+
- 33377cfd: ZERO-3267: Refactor import statement for ROUTES in error-page component
|
|
17
|
+
- 4e379cd: ZERO-3365: Added variant selection completion check
|
|
18
|
+
- 100f03a9: ZERO-3321: add test for Content-Security-Policy header in Next.js config
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [5dfeea04]
|
|
23
|
+
- Updated dependencies [823d82f]
|
|
24
|
+
- Updated dependencies [2657d0c]
|
|
25
|
+
- Updated dependencies [63774a6a]
|
|
26
|
+
- Updated dependencies [2d9b2b2c]
|
|
27
|
+
- Updated dependencies [5e1feca6]
|
|
28
|
+
- Updated dependencies [d8fad39]
|
|
29
|
+
- Updated dependencies [72bfcbf]
|
|
30
|
+
- Updated dependencies [40a46853]
|
|
31
|
+
- Updated dependencies [1044bce]
|
|
32
|
+
- Updated dependencies [68bbcb2]
|
|
33
|
+
- Updated dependencies [2ba89b3]
|
|
34
|
+
- Updated dependencies [1e53e17a]
|
|
35
|
+
- Updated dependencies [f49bb74f]
|
|
36
|
+
- Updated dependencies [e9541a13]
|
|
37
|
+
- Updated dependencies [ad0bec9]
|
|
38
|
+
- Updated dependencies [9b7d0de]
|
|
39
|
+
- Updated dependencies [72fd4d67]
|
|
40
|
+
- Updated dependencies [c53ef7b9]
|
|
41
|
+
- Updated dependencies [310556e]
|
|
42
|
+
- Updated dependencies [64699d3f]
|
|
43
|
+
- Updated dependencies [e974d8e]
|
|
44
|
+
- Updated dependencies [b31333e]
|
|
45
|
+
- Updated dependencies [bf354de4]
|
|
46
|
+
- Updated dependencies [7727ae55]
|
|
47
|
+
- Updated dependencies [c9b8c6f]
|
|
48
|
+
- Updated dependencies [d552629f]
|
|
49
|
+
- Updated dependencies [448adefb]
|
|
50
|
+
- Updated dependencies [17f87524]
|
|
51
|
+
- Updated dependencies [65d3b862]
|
|
52
|
+
- Updated dependencies [bbe18b9f]
|
|
53
|
+
- Updated dependencies [17bfadc4]
|
|
54
|
+
- Updated dependencies [4920742c]
|
|
55
|
+
- Updated dependencies [b6e5b624]
|
|
56
|
+
- Updated dependencies [6c3629c2]
|
|
57
|
+
- Updated dependencies [7e56d6b6]
|
|
58
|
+
- Updated dependencies [dfaceff]
|
|
59
|
+
- Updated dependencies [33377cfd]
|
|
60
|
+
- Updated dependencies [43c182ee]
|
|
61
|
+
- Updated dependencies [d662786]
|
|
62
|
+
- Updated dependencies [943a239]
|
|
63
|
+
- Updated dependencies [e68e120]
|
|
64
|
+
- Updated dependencies [eeb20bea]
|
|
65
|
+
- Updated dependencies [fec9638a]
|
|
66
|
+
- Updated dependencies [3bf63c8a]
|
|
67
|
+
- Updated dependencies [ec9ff89]
|
|
68
|
+
- Updated dependencies [9be2c081]
|
|
69
|
+
- Updated dependencies [f2c92d5c]
|
|
70
|
+
- Updated dependencies [9c3a22a]
|
|
71
|
+
- Updated dependencies [7bd3d992]
|
|
72
|
+
- Updated dependencies [fdd255ee]
|
|
73
|
+
- Updated dependencies [a1463fd]
|
|
74
|
+
- Updated dependencies [99b3fd6]
|
|
75
|
+
- Updated dependencies [07248e09]
|
|
76
|
+
- Updated dependencies [acf03209]
|
|
77
|
+
- Updated dependencies [387356b6]
|
|
78
|
+
- Updated dependencies [49eeebfa]
|
|
79
|
+
- Updated dependencies [3f9b8d7e]
|
|
80
|
+
- Updated dependencies [b2ee69b9]
|
|
81
|
+
- Updated dependencies [0cabbda]
|
|
82
|
+
- @akinon/next@1.89.0-rc.22
|
|
83
|
+
- @akinon/pz-akifast@1.89.0-rc.22
|
|
84
|
+
- @akinon/pz-basket-gift-pack@1.89.0-rc.22
|
|
85
|
+
- @akinon/pz-bkm@1.89.0-rc.22
|
|
86
|
+
- @akinon/pz-tamara-extension@1.89.0-rc.22
|
|
87
|
+
- @akinon/pz-masterpass@1.89.0-rc.22
|
|
88
|
+
- @akinon/pz-credit-payment@1.89.0-rc.22
|
|
89
|
+
- @akinon/pz-checkout-gift-pack@1.89.0-rc.22
|
|
90
|
+
- @akinon/pz-one-click-checkout@1.89.0-rc.22
|
|
91
|
+
- @akinon/pz-pay-on-delivery@1.89.0-rc.22
|
|
92
|
+
- @akinon/pz-click-collect@1.89.0-rc.22
|
|
93
|
+
- @akinon/pz-gpay@1.89.0-rc.22
|
|
94
|
+
- @akinon/pz-b2b@1.89.0-rc.22
|
|
95
|
+
- @akinon/pz-otp@1.89.0-rc.22
|
|
96
|
+
- @akinon/pz-tabby-extension@1.89.0-rc.22
|
|
97
|
+
- @akinon/pz-saved-card@1.89.0-rc.22
|
|
98
|
+
|
|
3
99
|
## 1.89.0-rc.21
|
|
4
100
|
|
|
5
101
|
### Minor Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "projectzeronext",
|
|
3
|
-
"version": "1.89.0-rc.
|
|
3
|
+
"version": "1.89.0-rc.22",
|
|
4
4
|
"private": true,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -24,22 +24,22 @@
|
|
|
24
24
|
"test:middleware": "jest middleware-matcher.test.ts --bail"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@akinon/next": "1.89.0-rc.
|
|
28
|
-
"@akinon/pz-akifast": "1.89.0-rc.
|
|
29
|
-
"@akinon/pz-b2b": "1.89.0-rc.
|
|
30
|
-
"@akinon/pz-basket-gift-pack": "1.89.0-rc.
|
|
31
|
-
"@akinon/pz-bkm": "1.89.0-rc.
|
|
32
|
-
"@akinon/pz-checkout-gift-pack": "1.89.0-rc.
|
|
33
|
-
"@akinon/pz-click-collect": "1.89.0-rc.
|
|
34
|
-
"@akinon/pz-credit-payment": "1.89.0-rc.
|
|
35
|
-
"@akinon/pz-gpay": "1.89.0-rc.
|
|
36
|
-
"@akinon/pz-masterpass": "1.89.0-rc.
|
|
37
|
-
"@akinon/pz-one-click-checkout": "1.89.0-rc.
|
|
38
|
-
"@akinon/pz-otp": "1.89.0-rc.
|
|
39
|
-
"@akinon/pz-pay-on-delivery": "1.89.0-rc.
|
|
40
|
-
"@akinon/pz-saved-card": "1.89.0-rc.
|
|
41
|
-
"@akinon/pz-tabby-extension": "1.89.0-rc.
|
|
42
|
-
"@akinon/pz-tamara-extension": "1.89.0-rc.
|
|
27
|
+
"@akinon/next": "1.89.0-rc.22",
|
|
28
|
+
"@akinon/pz-akifast": "1.89.0-rc.22",
|
|
29
|
+
"@akinon/pz-b2b": "1.89.0-rc.22",
|
|
30
|
+
"@akinon/pz-basket-gift-pack": "1.89.0-rc.22",
|
|
31
|
+
"@akinon/pz-bkm": "1.89.0-rc.22",
|
|
32
|
+
"@akinon/pz-checkout-gift-pack": "1.89.0-rc.22",
|
|
33
|
+
"@akinon/pz-click-collect": "1.89.0-rc.22",
|
|
34
|
+
"@akinon/pz-credit-payment": "1.89.0-rc.22",
|
|
35
|
+
"@akinon/pz-gpay": "1.89.0-rc.22",
|
|
36
|
+
"@akinon/pz-masterpass": "1.89.0-rc.22",
|
|
37
|
+
"@akinon/pz-one-click-checkout": "1.89.0-rc.22",
|
|
38
|
+
"@akinon/pz-otp": "1.89.0-rc.22",
|
|
39
|
+
"@akinon/pz-pay-on-delivery": "1.89.0-rc.22",
|
|
40
|
+
"@akinon/pz-saved-card": "1.89.0-rc.22",
|
|
41
|
+
"@akinon/pz-tabby-extension": "1.89.0-rc.22",
|
|
42
|
+
"@akinon/pz-tamara-extension": "1.89.0-rc.22",
|
|
43
43
|
"@hookform/resolvers": "2.9.0",
|
|
44
44
|
"@next/third-parties": "14.1.0",
|
|
45
45
|
"@react-google-maps/api": "2.17.1",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"yup": "0.32.11"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@akinon/eslint-plugin-projectzero": "1.89.0-rc.
|
|
65
|
+
"@akinon/eslint-plugin-projectzero": "1.89.0-rc.22",
|
|
66
66
|
"@semantic-release/changelog": "6.0.2",
|
|
67
67
|
"@semantic-release/exec": "6.0.3",
|
|
68
68
|
"@semantic-release/git": "10.0.1",
|
package/commands/plugins.ts
CHANGED
|
@@ -2,8 +2,7 @@ import * as fs from 'fs';
|
|
|
2
2
|
import path from 'path';
|
|
3
3
|
import { execSync } from 'child_process';
|
|
4
4
|
import semver from 'semver';
|
|
5
|
-
|
|
6
|
-
const Prompt = require('prompt-checkbox');
|
|
5
|
+
import { checkbox } from '@inquirer/prompts';
|
|
7
6
|
|
|
8
7
|
const rootDir = path.resolve(process.cwd());
|
|
9
8
|
|
|
@@ -120,36 +119,25 @@ export default async () => {
|
|
|
120
119
|
}
|
|
121
120
|
];
|
|
122
121
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
answer.replace(/\d\)\s/, '')
|
|
136
|
-
);
|
|
137
|
-
|
|
138
|
-
const values = formattedAnswers.map(
|
|
139
|
-
(answer) => definedPlugins.find((p) => p.name === answer)?.value
|
|
140
|
-
);
|
|
141
|
-
|
|
142
|
-
if (formattedAnswers.length) {
|
|
143
|
-
console.log(`\nInstalling ${formattedAnswers.join(', ')}.`);
|
|
144
|
-
} else {
|
|
145
|
-
console.log(`\nUninstalling all plugins.`);
|
|
122
|
+
try {
|
|
123
|
+
const answers = await checkbox({
|
|
124
|
+
message: 'Please check/uncheck plugins to install/uninstall.',
|
|
125
|
+
choices: definedPlugins.map((plugin) => ({
|
|
126
|
+
name: plugin.name,
|
|
127
|
+
value: plugin.value,
|
|
128
|
+
checked: installedPlugins.includes(plugin.value)
|
|
129
|
+
}))
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
if (!answers.length) {
|
|
133
|
+
console.log('\x1b[33m%s\x1b[0m', `\nUninstalling all plugins.`);
|
|
146
134
|
}
|
|
147
135
|
|
|
148
|
-
console.log(`\nPlease wait...`);
|
|
136
|
+
console.log('\x1b[36m%s\x1b[0m', `\nPlease wait...`);
|
|
149
137
|
|
|
150
138
|
fs.writeFileSync(
|
|
151
139
|
pluginsFilePath,
|
|
152
|
-
`module.exports = ${JSON.stringify(
|
|
140
|
+
`module.exports = ${JSON.stringify(answers)};\n`,
|
|
153
141
|
{
|
|
154
142
|
encoding: 'utf-8'
|
|
155
143
|
}
|
|
@@ -159,11 +147,13 @@ export default async () => {
|
|
|
159
147
|
|
|
160
148
|
console.log(
|
|
161
149
|
'\x1b[32m%s\x1b[0m',
|
|
162
|
-
`\n
|
|
163
|
-
|
|
150
|
+
`\n✓ ${
|
|
151
|
+
answers.length
|
|
164
152
|
? 'Installed selected plugins'
|
|
165
153
|
: 'Uninstalled all plugins'
|
|
166
154
|
}.\n`
|
|
167
155
|
);
|
|
168
|
-
})
|
|
156
|
+
} catch (error) {
|
|
157
|
+
process.exit(1);
|
|
158
|
+
}
|
|
169
159
|
};
|
package/dist/commands/plugins.js
CHANGED
|
@@ -39,7 +39,7 @@ const fs = __importStar(require("fs"));
|
|
|
39
39
|
const path_1 = __importDefault(require("path"));
|
|
40
40
|
const child_process_1 = require("child_process");
|
|
41
41
|
const semver_1 = __importDefault(require("semver"));
|
|
42
|
-
const
|
|
42
|
+
const prompts_1 = require("@inquirer/prompts");
|
|
43
43
|
const rootDir = path_1.default.resolve(process.cwd());
|
|
44
44
|
function checkVersion(pkg) {
|
|
45
45
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -133,29 +133,28 @@ exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
133
133
|
value: 'pz-tamara-extension'
|
|
134
134
|
}
|
|
135
135
|
];
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
console.log(`\nInstalling ${formattedAnswers.join(', ')}.`);
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
console.log(`\nUninstalling all plugins.`);
|
|
136
|
+
try {
|
|
137
|
+
const answers = yield (0, prompts_1.checkbox)({
|
|
138
|
+
message: 'Please check/uncheck plugins to install/uninstall.',
|
|
139
|
+
choices: definedPlugins.map((plugin) => ({
|
|
140
|
+
name: plugin.name,
|
|
141
|
+
value: plugin.value,
|
|
142
|
+
checked: installedPlugins.includes(plugin.value)
|
|
143
|
+
}))
|
|
144
|
+
});
|
|
145
|
+
if (!answers.length) {
|
|
146
|
+
console.log('\x1b[33m%s\x1b[0m', `\nUninstalling all plugins.`);
|
|
151
147
|
}
|
|
152
|
-
console.log(`\nPlease wait...`);
|
|
153
|
-
fs.writeFileSync(pluginsFilePath, `module.exports = ${JSON.stringify(
|
|
148
|
+
console.log('\x1b[36m%s\x1b[0m', `\nPlease wait...`);
|
|
149
|
+
fs.writeFileSync(pluginsFilePath, `module.exports = ${JSON.stringify(answers)};\n`, {
|
|
154
150
|
encoding: 'utf-8'
|
|
155
151
|
});
|
|
156
152
|
(0, child_process_1.execSync)('yarn install', { stdio: 'pipe' });
|
|
157
|
-
console.log('\x1b[32m%s\x1b[0m', `\n
|
|
153
|
+
console.log('\x1b[32m%s\x1b[0m', `\n✓ ${answers.length
|
|
158
154
|
? 'Installed selected plugins'
|
|
159
155
|
: 'Uninstalled all plugins'}.\n`);
|
|
160
|
-
}
|
|
156
|
+
}
|
|
157
|
+
catch (error) {
|
|
158
|
+
process.exit(1);
|
|
159
|
+
}
|
|
161
160
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/projectzero",
|
|
3
|
-
"version": "1.89.0-rc.
|
|
3
|
+
"version": "1.89.0-rc.22",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "CLI tool to manage your Project Zero Next project",
|
|
6
6
|
"bin": {
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"@types/temp": "0.9.4"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
+
"@inquirer/prompts": "7.5.0",
|
|
22
23
|
"loading-spinner": "1.2.1",
|
|
23
|
-
"prompt-checkbox": "2.2.0",
|
|
24
24
|
"semver": "7.6.2",
|
|
25
25
|
"temp": "0.9.4",
|
|
26
26
|
"yargs": "^17.6.0"
|