@fishawack/lab-env 4.41.2 → 4.42.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 +22 -0
- package/commands/create/libs/vars.js +1 -1
- package/globals.js +18 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
## Changelog
|
|
2
2
|
|
|
3
|
+
### 4.42.0 (2025-08-08)
|
|
4
|
+
|
|
5
|
+
#### Features
|
|
6
|
+
|
|
7
|
+
* handle core@9 ([3be2c58](https://bitbucket.org/fishawackdigital/lab-env/commits/3be2c581ab7fde3882f245ea4b68b911abca49b7))
|
|
8
|
+
* support runnin the core as a local git repo ([93b167a](https://bitbucket.org/fishawackdigital/lab-env/commits/93b167a08da11e445bfc6d0549bf8b192400bb84))
|
|
9
|
+
|
|
10
|
+
#### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* update to latest patch of mysql now the version we were using is deprecated ([3e6be12](https://bitbucket.org/fishawackdigital/lab-env/commits/3e6be12dc9841f6d141315820d12f1e59abdd9b8))
|
|
13
|
+
|
|
14
|
+
### 4.42.0-beta.1 (2025-08-08)
|
|
15
|
+
|
|
16
|
+
#### Features
|
|
17
|
+
|
|
18
|
+
* handle core@9 ([3be2c58](https://bitbucket.org/fishawackdigital/lab-env/commits/3be2c581ab7fde3882f245ea4b68b911abca49b7))
|
|
19
|
+
* support runnin the core as a local git repo ([93b167a](https://bitbucket.org/fishawackdigital/lab-env/commits/93b167a08da11e445bfc6d0549bf8b192400bb84))
|
|
20
|
+
|
|
21
|
+
#### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* update to latest patch of mysql now the version we were using is deprecated ([3e6be12](https://bitbucket.org/fishawackdigital/lab-env/commits/3e6be12dc9841f6d141315820d12f1e59abdd9b8))
|
|
24
|
+
|
|
3
25
|
### 4.41.2 (2025-07-25)
|
|
4
26
|
|
|
5
27
|
#### Bug Fixes
|
package/globals.js
CHANGED
|
@@ -217,22 +217,28 @@ if (composer && composer.require && composer.require["laravel/framework"]) {
|
|
|
217
217
|
const versions = getDirectories(path.resolve(__dirname, "./core"))
|
|
218
218
|
.map((d) => path.basename(d))
|
|
219
219
|
.sort((a, b) => +a - +b);
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
220
|
+
|
|
221
|
+
const getCoreVersion = () => {
|
|
222
|
+
if (!pkg) return null;
|
|
223
|
+
|
|
224
|
+
// Check if this is the core package itself
|
|
225
|
+
if (pkg.name === "@fishawack/core") return pkg.version;
|
|
226
|
+
|
|
227
|
+
// Check both dependencies and devDependencies for core packages
|
|
228
|
+
const allDeps = { ...pkg.dependencies, ...pkg.devDependencies };
|
|
229
|
+
return allDeps["@fishawack/core"] || allDeps["@fishawack/config-grunt"];
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
const version = getCoreVersion();
|
|
230
233
|
|
|
231
234
|
if (process.env.FW_NEXT) {
|
|
232
235
|
process.env.VERSION = versions[versions.length - 1];
|
|
233
|
-
} else if (semver.satisfies(version, "<=7.24.0")) {
|
|
236
|
+
} else if (semver.satisfies(semver.coerce(version), "<=7.24.0")) {
|
|
234
237
|
process.env.VERSION = "0";
|
|
235
|
-
} else if (
|
|
238
|
+
} else if (
|
|
239
|
+
semver.satisfies(semver.coerce(version), "8 || 9") ||
|
|
240
|
+
version?.startsWith("file:")
|
|
241
|
+
) {
|
|
236
242
|
process.env.VERSION = "1";
|
|
237
243
|
} else {
|
|
238
244
|
if (
|