@stryke/fs 0.33.56 → 0.33.57
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 +17 -0
- package/README.md +3 -3
- package/dist/install.d.mts.map +1 -1
- package/dist/semver-fns.d.cts.map +1 -1
- package/dist/semver-fns.d.mts.map +1 -1
- package/dist/semver-fns.mjs.map +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Stryke - Fs
|
|
4
4
|
|
|
5
|
+
## [0.33.57](https://github.com/storm-software/stryke/releases/tag/fs%400.33.57) (03/11/2026)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Run prettier on workspace packages' files ([dfe7ab3e](https://github.com/storm-software/stryke/commit/dfe7ab3e))
|
|
10
|
+
- **monorepo:** Format workspace source files ([a97707ea](https://github.com/storm-software/stryke/commit/a97707ea))
|
|
11
|
+
|
|
12
|
+
### Updated Dependencies
|
|
13
|
+
|
|
14
|
+
- Updated **string-format** to **v0.17.3**
|
|
15
|
+
- Updated **type-checks** to **v0.5.38**
|
|
16
|
+
- Updated **convert** to **v0.6.53**
|
|
17
|
+
- Updated **helpers** to **v0.10.3**
|
|
18
|
+
- Updated **types** to **v0.10.52**
|
|
19
|
+
- Updated **json** to **v0.14.7**
|
|
20
|
+
- Updated **path** to **v0.26.19**
|
|
21
|
+
|
|
5
22
|
## [0.33.56](https://github.com/storm-software/stryke/releases/tag/fs%400.33.56) (03/11/2026)
|
|
6
23
|
|
|
7
24
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
</div>
|
|
23
23
|
|
|
24
24
|
<br />
|
|
25
|
-
This package is part of Storm Software's
|
|
25
|
+
This package is part of Storm Software's **🌩️ Stryke** monorepo. Stryke packages TypeScript utility packages with shared functionality common to many Storm Software applications.
|
|
26
26
|
|
|
27
27
|
<br />
|
|
28
28
|
|
|
29
29
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
30
30
|
|
|
31
|
-
[](https://github.com/storm-software/stryke) [](http://commitizen.github.io/cz-cli/)  
|
|
32
32
|
|
|
33
33
|
> [!IMPORTANT] Important
|
|
34
|
-
> This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and
|
|
34
|
+
> This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be available through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.
|
|
35
35
|
|
|
36
36
|
<div align="center">
|
|
37
37
|
<a href="https://github.com/storm-software/stryke" target="_blank"><b>Be sure to ⭐ this repository on GitHub so you can keep up to date on any daily progress!</b></a>
|
package/dist/install.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.mts","names":[],"sources":["../src/install.ts"],"sourcesContent":[],"mappings":";;;;;;AA8BA;;;;;AAGU,iBAHY,OAAA,CAGZ,IAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EADE,qBACF,CAAA,EAAP,OAAO,CAAC,UAAD,CAAA,OAAmB,cAAnB,CAAA,CAAA;AAQV;;;;;;AAyBa,iBAzBS,OAAA,
|
|
1
|
+
{"version":3,"file":"install.d.mts","names":[],"sources":["../src/install.ts"],"sourcesContent":[],"mappings":";;;;;;AA8BA;;;;;AAGU,iBAHY,OAAA,CAGZ,IAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EADE,qBACF,CAAA,EAAP,OAAO,CAAC,UAAD,CAAA,OAAmB,cAAnB,CAAA,CAAA;AAQV;;;;;;AAyBa,iBAzBS,OAAA,CA2BV,KAAA,EAAA,MAAA,EAAA,EAAA,OAAqB,CAAA,EAzBrB,qBAyBqB,CAAA,EAxB9B,OAwB8B,CAxBtB,UAwBsB,CAAA,OAxBJ,cAwBI,CAAA,CAAA;;;;;;;cAFpB,wCAED,0BAAqB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semver-fns.d.cts","names":[],"sources":["../src/semver-fns.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"semver-fns.d.cts","names":[],"sources":["../src/semver-fns.ts"],"sourcesContent":[],"mappings":";;;KAuBY,WAAA;cAUC,eAAe;AAV5B;AAUA;AAkBA;AAUA;;;;AAGS,cAbI,YAaJ,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,KAAA,CAAA,EAAA,OAAA,EAAA,GAbgD,MAahD,GAAA,IAAA;AAUT;AAUA;AAcA;AAgBA;AAaA;AAeA;AAuBA;AAYa,cApHA,aAmJZ,EAAA,CAAA,OAAA,EAAA,MAAA,GAAA,MAAA,GAlJ4B,MAkJ5B,GAAA,IAAA,GAAA,SAAA,EAAA,OAAA,CAAA,EAjJW,aAiJX,EAAA,GAhJE,MAgJF,GAAA,IAAA;;;;;;;cAtIY,+BAA8B;;;;;;;cAU9B,8BAA6B;;;;;;;;;;;cAc7B;;;;;;;;;;;cAgBA;;;;;;;;cAaA,mCACO,SAAS;;;;;;;;;cAchB,qCACO,2CACF;;;;;;;cAqBL,kDAAiD;;;;;;;;;cAYjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semver-fns.d.mts","names":[],"sources":["../src/semver-fns.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"semver-fns.d.mts","names":[],"sources":["../src/semver-fns.ts"],"sourcesContent":[],"mappings":";;;KAuBY,WAAA;cAUC,eAAe;AAV5B;AAUA;AAkBA;AAUA;;;;AAGS,cAbI,YAaJ,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,KAAA,CAAA,EAAA,OAAA,EAAA,GAbgD,MAahD,GAAA,IAAA;AAUT;AAUA;AAcA;AAgBA;AAaA;AAeA;AAuBA;AAYa,cApHA,aAmJZ,EAAA,CAAA,OAAA,EAAA,MAAA,GAAA,MAAA,GAlJ4B,MAkJ5B,GAAA,IAAA,GAAA,SAAA,EAAA,OAAA,CAAA,EAjJW,aAiJX,EAAA,GAhJE,MAgJF,GAAA,IAAA;;;;;;;cAtIY,+BAA8B;;;;;;;cAU9B,8BAA6B;;;;;;;;;;;cAc7B;;;;;;;;;;;cAgBA;;;;;;;;cAaA,mCACO,SAAS;;;;;;;;;cAchB,qCACO,2CACF;;;;;;;cAqBL,kDAAiD;;;;;;;;;cAYjD"}
|
package/dist/semver-fns.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semver-fns.mjs","names":["RELEASE_TYPES: ReleaseType[]"],"sources":["../src/semver-fns.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isObject } from \"@stryke/type-checks/is-object\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport type { CoerceOptions, Range, SemVer } from \"semver\";\nimport {
|
|
1
|
+
{"version":3,"file":"semver-fns.mjs","names":["RELEASE_TYPES: ReleaseType[]"],"sources":["../src/semver-fns.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isObject } from \"@stryke/type-checks/is-object\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport type { CoerceOptions, Range, SemVer } from \"semver\";\nimport { coerce, inc, parse, satisfies, valid, validRange } from \"semver\";\n\nexport type ReleaseType =\n | \"major\"\n | \"premajor\"\n | \"minor\"\n | \"preminor\"\n | \"patch\"\n | \"prepatch\"\n | \"prerelease\"\n | \"release\";\n\nexport const RELEASE_TYPES: ReleaseType[] = [\n \"major\",\n \"premajor\",\n \"minor\",\n \"preminor\",\n \"patch\",\n \"prepatch\",\n \"prerelease\",\n \"release\"\n];\n\n/**\n * Parse a semver string into a SemVer object\n *\n * @param semver - The semver string to parse\n * @param loose - Whether to use loose parsing\n * @returns The parsed SemVer object\n */\nexport const parseVersion = (semver: string, loose = true) =>\n parse(semver, loose);\n\n/**\n * Coerce a version string into a valid SemVer string\n *\n * @param version - The version string or number or {@link SemVer} to coerce\n * @param options - Options to use when coercing the version\n * @returns The coerced SemVer string or null if invalid\n */\nexport const coerceVersion = (\n version: string | number | SemVer | null | undefined,\n options?: CoerceOptions\n): SemVer | null => {\n return coerce(version, options);\n};\n\n/**\n * Type check for {@link SemVer}\n *\n * @param val - The value to check\n * @returns Whether the value is a valid {@link SemVer}\n */\nexport const isSemver = (val: any): val is SemVer => {\n return isObject(val) && \"version\" in val;\n};\n\n/**\n * Type check for {@link Range}\n *\n * @param val - The value to check\n * @returns Whether the value is a valid {@link Range}\n */\nexport const isRange = (val: any): val is Range => {\n return isObject(val) && \"range\" in val;\n};\n\n/**\n * Check if a {@link SemVer} string is valid\n *\n * @remarks\n * If you're looking for type checking, please use the {@link isSemver} function.\n *\n * @param semver - The semver string to check\n * @param loose - Whether to use loose parsing\n * @returns Whether the semver string is valid\n */\nexport const isValidSemver = (semver: any, loose = true): boolean => {\n return (\n (isString(semver) || isSemver(semver)) && valid(semver, loose) !== null\n );\n};\n\n/**\n * Check if a {@link Range} string is valid\n *\n * @remarks\n * If you're looking for type checking, please use the {@link isRange} function.\n *\n * @param range - The range string to check\n * @param loose - Whether to use loose parsing\n * @returns Whether the range string is valid\n */\nexport const isValidRange = (range: any, loose = true): boolean => {\n return (\n (isString(range) || isRange(range)) && validRange(range, loose) !== null\n );\n};\n\n/**\n * Check if a {@link SemVer} or {@link Range} string is valid\n *\n * @param version - The semver string to check\n * @param loose - Whether to use loose parsing\n * @returns Whether the semver string is valid\n */\nexport const isValidVersion = (\n version: string | SemVer | Range | null | undefined,\n loose = true\n) => {\n return isValidSemver(version, loose) || isValidRange(version, loose);\n};\n\n/**\n * Check if a semver string satisfies a range\n *\n * @param version - The semver string to check\n * @param range - The range to check against\n * @param loose - Whether to use loose parsing\n * @returns Whether the semver string satisfies the range\n */\nexport const satisfiesVersion = (\n version: string | SemVer | null | undefined,\n range: string | Range | null | undefined,\n loose = true\n) => {\n if (\n !version ||\n !range ||\n !isValidSemver(version, loose) ||\n !isValidRange(range, loose)\n ) {\n return false;\n }\n\n return satisfies(version, range, { loose });\n};\n\n/**\n * Check if a string is a valid relative version keyword\n *\n * @param val - The string to check\n * @returns Whether the string is a valid relative version keyword\n */\nexport const isRelativeVersionKeyword = (val: string): val is ReleaseType => {\n return RELEASE_TYPES.includes(val as ReleaseType);\n};\n\n/**\n * Derive a new semver version from the current version and a version specifier\n *\n * @param currentSemverVersion - The current semver version\n * @param semverSpecifier - The semver specifier to use\n * @param preid - The pre-release identifier to use\n * @returns The derived new semver version\n */\nexport const deriveNewSemverVersion = (\n currentSemverVersion: string,\n semverSpecifier: string,\n preid?: string\n) => {\n if (!valid(currentSemverVersion)) {\n throw new Error(\n `Invalid semver version \"${currentSemverVersion}\" provided.`\n );\n }\n\n let newVersion = semverSpecifier;\n\n if (isRelativeVersionKeyword(semverSpecifier)) {\n // Derive the new version from the current version combined with the new version specifier.\n const derivedVersion = inc(currentSemverVersion, semverSpecifier, preid!);\n\n if (!derivedVersion) {\n throw new Error(\n `Unable to derive new version from current version \"${currentSemverVersion}\" and version specifier \"${semverSpecifier}\"`\n );\n }\n newVersion = derivedVersion;\n } else if (!valid(semverSpecifier)) {\n // Ensure the new version specifier is a valid semver version, given it is not a valid semver keyword\n throw new Error(\n `Invalid semver version specifier \"${semverSpecifier}\" provided. Please provide either a valid semver version or a valid semver version keyword.`\n );\n }\n\n return newVersion;\n};\n"],"mappings":";;;;;AAiCA,MAAaA,gBAA+B;CAC1C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;;;;;;;;AASD,MAAa,gBAAgB,QAAgB,QAAQ,SACnD,MAAM,QAAQ,MAAM;;;;;;;;AAStB,MAAa,iBACX,SACA,YACkB;AAClB,QAAO,OAAO,SAAS,QAAQ;;;;;;;;AASjC,MAAa,YAAY,QAA4B;AACnD,QAAO,SAAS,IAAI,IAAI,aAAa;;;;;;;;AASvC,MAAa,WAAW,QAA2B;AACjD,QAAO,SAAS,IAAI,IAAI,WAAW;;;;;;;;;;;;AAarC,MAAa,iBAAiB,QAAa,QAAQ,SAAkB;AACnE,SACG,SAAS,OAAO,IAAI,SAAS,OAAO,KAAK,MAAM,QAAQ,MAAM,KAAK;;;;;;;;;;;;AAcvE,MAAa,gBAAgB,OAAY,QAAQ,SAAkB;AACjE,SACG,SAAS,MAAM,IAAI,QAAQ,MAAM,KAAK,WAAW,OAAO,MAAM,KAAK;;;;;;;;;AAWxE,MAAa,kBACX,SACA,QAAQ,SACL;AACH,QAAO,cAAc,SAAS,MAAM,IAAI,aAAa,SAAS,MAAM;;;;;;;;;;AAWtE,MAAa,oBACX,SACA,OACA,QAAQ,SACL;AACH,KACE,CAAC,WACD,CAAC,SACD,CAAC,cAAc,SAAS,MAAM,IAC9B,CAAC,aAAa,OAAO,MAAM,CAE3B,QAAO;AAGT,QAAO,UAAU,SAAS,OAAO,EAAE,OAAO,CAAC;;;;;;;;AAS7C,MAAa,4BAA4B,QAAoC;AAC3E,QAAO,cAAc,SAAS,IAAmB;;;;;;;;;;AAWnD,MAAa,0BACX,sBACA,iBACA,UACG;AACH,KAAI,CAAC,MAAM,qBAAqB,CAC9B,OAAM,IAAI,MACR,2BAA2B,qBAAqB,aACjD;CAGH,IAAI,aAAa;AAEjB,KAAI,yBAAyB,gBAAgB,EAAE;EAE7C,MAAM,iBAAiB,IAAI,sBAAsB,iBAAiB,MAAO;AAEzE,MAAI,CAAC,eACH,OAAM,IAAI,MACR,sDAAsD,qBAAqB,2BAA2B,gBAAgB,GACvH;AAEH,eAAa;YACJ,CAAC,MAAM,gBAAgB,CAEhC,OAAM,IAAI,MACR,qCAAqC,gBAAgB,6FACtD;AAGH,QAAO"}
|
package/package.json
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/fs",
|
|
3
|
-
"version": "0.33.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.33.57",
|
|
4
|
+
"private": false,
|
|
5
5
|
"description": "A package containing various file system utilities that expand the functionality of NodeJs's built-in `fs` module.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "github",
|
|
8
8
|
"url": "https://github.com/storm-software/stryke.git",
|
|
9
9
|
"directory": "packages/fs"
|
|
10
10
|
},
|
|
11
|
-
"
|
|
12
|
-
"main": "./dist/index.cjs",
|
|
13
|
-
"module": "./dist/index.mjs",
|
|
11
|
+
"type": "module",
|
|
14
12
|
"exports": {
|
|
15
13
|
".": { "require": "./dist/index.cjs", "import": "./dist/index.mjs" },
|
|
16
14
|
"./buffer": {
|
|
@@ -102,17 +100,17 @@
|
|
|
102
100
|
"./yaml": { "require": "./dist/yaml.cjs", "import": "./dist/yaml.mjs" },
|
|
103
101
|
"./*": "./*"
|
|
104
102
|
},
|
|
103
|
+
"main": "./dist/index.cjs",
|
|
104
|
+
"module": "./dist/index.mjs",
|
|
105
105
|
"types": "./dist/index.d.cts",
|
|
106
|
-
"peerDependencies": { "nx": "^22.5.4" },
|
|
107
|
-
"peerDependenciesMeta": { "nx": { "optional": true } },
|
|
108
106
|
"dependencies": {
|
|
109
107
|
"@antfu/install-pkg": "^1.1.0",
|
|
110
108
|
"@ltd/j-toml": "^1.38.0",
|
|
111
|
-
"@storm-software/config-tools": "^1.189.
|
|
112
|
-
"@stryke/convert": "^0.6.
|
|
113
|
-
"@stryke/helpers": "^0.10.
|
|
114
|
-
"@stryke/path": "^0.26.
|
|
115
|
-
"@stryke/string-format": "^0.17.
|
|
109
|
+
"@storm-software/config-tools": "^1.189.27",
|
|
110
|
+
"@stryke/convert": "^0.6.53",
|
|
111
|
+
"@stryke/helpers": "^0.10.3",
|
|
112
|
+
"@stryke/path": "^0.26.19",
|
|
113
|
+
"@stryke/string-format": "^0.17.3",
|
|
116
114
|
"chalk": "^5.6.2",
|
|
117
115
|
"defu": "^6.1.4",
|
|
118
116
|
"glob": "^11.1.0",
|
|
@@ -128,6 +126,8 @@
|
|
|
128
126
|
"tinyexec": "^0.3.2",
|
|
129
127
|
"tsdown": "^0.17.2"
|
|
130
128
|
},
|
|
129
|
+
"peerDependencies": { "nx": "^22.5.4" },
|
|
130
|
+
"peerDependenciesMeta": { "nx": { "optional": true } },
|
|
131
131
|
"publishConfig": { "access": "public" },
|
|
132
|
-
"gitHead": "
|
|
132
|
+
"gitHead": "ddce65fd9bee48318f22b8b7ee85475285dbf507"
|
|
133
133
|
}
|