@akinon/projectzero 1.26.0-rc.8 → 1.26.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.
package/CHANGELOG.md CHANGED
@@ -1,30 +1,6 @@
1
1
  # @akinon/projectzero
2
2
 
3
- ## 1.26.0-rc.8
4
-
5
- ## 1.26.0-rc.7
6
-
7
- ## 1.26.0-rc.6
8
-
9
- ## 1.26.0-rc.5
10
-
11
- ## 1.26.0-rc.4
12
-
13
- ## 1.26.0-rc.3
14
-
15
- ### Patch Changes
16
-
17
- - 073fbd2: ZERO-2503: Add check changeset control script
18
-
19
- ## 1.26.0-rc.2
20
-
21
- ## 1.26.0-rc.1
22
-
23
- ## 1.26.0-rc.0
24
-
25
- ### Minor Changes
26
-
27
- - 197d602: ZERO-2459: Warn if akinon-next version is not up to date
3
+ ## 1.26.0
28
4
 
29
5
  ## 1.25.0
30
6
 
@@ -38,12 +14,6 @@
38
14
 
39
15
  - 95510c7: ZERO-2508: Enable rc branch pipeline and add check-publish-version step
40
16
 
41
- ## 1.25.0-rc.0
42
-
43
- ### Minor Changes
44
-
45
- - 197d602: ZERO-2459: Warn if akinon-next version is not up to date
46
-
47
17
  ## 1.24.0
48
18
 
49
19
  ## 1.23.0
@@ -1,45 +1,12 @@
1
1
  import * as fs from 'fs';
2
2
  import path from 'path';
3
3
  import { execSync } from 'child_process';
4
- import semver from 'semver';
5
4
 
6
5
  const Prompt = require('prompt-checkbox');
7
6
 
8
7
  const rootDir = path.resolve(process.cwd());
9
8
 
10
- interface PackageInfo {
11
- 'dist-tags': {
12
- latest: string;
13
- };
14
- }
15
-
16
- interface PackageJson {
17
- dependencies: {
18
- [key: string]: string;
19
- };
20
- }
21
-
22
9
  export default async () => {
23
- async function checkVersion(pkg: PackageJson) {
24
- const packageName = '@akinon/next';
25
- const registryUrl = `https://registry.npmjs.org/${packageName}`;
26
-
27
- try {
28
- const response = await fetch(registryUrl);
29
- const pkgInfo = (await response.json()) as PackageInfo;
30
- const latestVersion = pkgInfo['dist-tags'].latest;
31
-
32
- if (!semver.satisfies(pkg.dependencies['@akinon/next'], latestVersion)) {
33
- console.warn(
34
- `\x1b[43mWarning: The "${packageName}" package is currently at version ${pkg.dependencies['@akinon/next']}. Please upgrade it to the latest version (${latestVersion}) to ensure plugin compatibility.`,
35
- '\x1b[0m\n'
36
- );
37
- }
38
- } catch (error: any) {
39
- console.error(`\x1b[41mError: ${error?.message}`, '\x1b[0m\n');
40
- }
41
- }
42
-
43
10
  function findPluginsFilePath() {
44
11
  const option1 = path.resolve(rootDir, './src/plugins.js');
45
12
  const option2 = path.resolve(rootDir, './packages/akinon-next/plugins.js');
@@ -55,9 +22,6 @@ export default async () => {
55
22
  }
56
23
  }
57
24
 
58
- const pkg: PackageJson = require(path.resolve(rootDir, './package.json'));
59
- await checkVersion(pkg);
60
-
61
25
  const pluginsFilePath = findPluginsFilePath();
62
26
 
63
27
  let installedPlugins: Array<string> = [];
@@ -38,27 +38,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
38
38
  const fs = __importStar(require("fs"));
39
39
  const path_1 = __importDefault(require("path"));
40
40
  const child_process_1 = require("child_process");
41
- const semver_1 = __importDefault(require("semver"));
42
41
  const Prompt = require('prompt-checkbox');
43
42
  const rootDir = path_1.default.resolve(process.cwd());
44
43
  exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
45
- function checkVersion(pkg) {
46
- return __awaiter(this, void 0, void 0, function* () {
47
- const packageName = '@akinon/next';
48
- const registryUrl = `https://registry.npmjs.org/${packageName}`;
49
- try {
50
- const response = yield fetch(registryUrl);
51
- const pkgInfo = (yield response.json());
52
- const latestVersion = pkgInfo['dist-tags'].latest;
53
- if (!semver_1.default.satisfies(pkg.dependencies['@akinon/next'], latestVersion)) {
54
- console.warn(`\x1b[43mWarning: The "${packageName}" package is currently at version ${pkg.dependencies['@akinon/next']}. Please upgrade it to the latest version (${latestVersion}) to ensure plugin compatibility.`, '\x1b[0m\n');
55
- }
56
- }
57
- catch (error) {
58
- console.error(`\x1b[41mError: ${error === null || error === void 0 ? void 0 : error.message}`, '\x1b[0m\n');
59
- }
60
- });
61
- }
62
44
  function findPluginsFilePath() {
63
45
  const option1 = path_1.default.resolve(rootDir, './src/plugins.js');
64
46
  const option2 = path_1.default.resolve(rootDir, './packages/akinon-next/plugins.js');
@@ -72,8 +54,6 @@ exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
72
54
  throw new Error('plugins.js was not found in either of the expected locations.');
73
55
  }
74
56
  }
75
- const pkg = require(path_1.default.resolve(rootDir, './package.json'));
76
- yield checkVersion(pkg);
77
57
  const pluginsFilePath = findPluginsFilePath();
78
58
  let installedPlugins = [];
79
59
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.26.0-rc.8",
3
+ "version": "1.26.0",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {
@@ -15,7 +15,6 @@
15
15
  "license": "ISC",
16
16
  "devDependencies": {
17
17
  "@types/node": "^18.8.0",
18
- "@types/semver": "7.5.8",
19
18
  "@types/temp": "0.9.4"
20
19
  },
21
20
  "dependencies": {