@nuxtjp/local-runtime 0.1.3 → 0.1.4

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/README.ja.md CHANGED
@@ -9,7 +9,7 @@
9
9
  `0.1.1`はnpmで公開済みです。Node `^22.19.0`または`^24.11.0`、Nuxt `^4.5.1`、Vue `^3.5.40`を使用してください。
10
10
 
11
11
  ```sh
12
- npm install @nuxtjp/local-runtime@0.1.0
12
+ npm install @nuxtjp/local-runtime@0.1.4
13
13
  ```
14
14
 
15
15
  ```ts
package/README.md CHANGED
@@ -6,10 +6,10 @@ Connect a browser interface to one explicitly configured local Rust runtime, aft
6
6
 
7
7
  ## Install and use
8
8
 
9
- Version `0.1.1` is published on npm. Use Node `^22.19.0` or `^24.11.0`, Nuxt `^4.5.1` and Vue `^3.5.40`.
9
+ Install the package version `0.1.4` after it is available on npm. Use Node `^22.19.0` or `^24.11.0`, Nuxt `^4.5.1` and Vue `^3.5.40`.
10
10
 
11
11
  ```sh
12
- npm install @nuxtjp/local-runtime@0.1.0
12
+ npm install @nuxtjp/local-runtime@0.1.4
13
13
  ```
14
14
 
15
15
  ```ts
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^4.5.1"
6
6
  },
7
- "version": "0.1.3",
7
+ "version": "0.1.4",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "unknown"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxtjp/local-runtime",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Fail-closed Nuxt client for a loopback local runtime",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -89,7 +89,8 @@
89
89
  },
90
90
  "patchedDependencies": {
91
91
  "braces@3.0.3": "patches/braces@3.0.3.patch",
92
- "node-forge@1.4.0": "patches/node-forge@1.4.0.patch"
92
+ "node-forge@1.4.0": "patches/node-forge@1.4.0.patch",
93
+ "simple-git@4.0.2": "security/patches/simple-git@4.0.2.patch"
93
94
  }
94
95
  }
95
96
  }
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 Steve King
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -19,3 +19,5 @@ The RSA test creates an ephemeral key in memory and never reads a user key. Patc
19
19
  Run `pnpm audit --json` on the installed application and retain the report. Only the two backported braces/node-forge advisories may remain; any other advisory, including simple-git, its argument parser, or esbuild, blocks validation. Run the dependency regression command on each install to reject missing or older active versions.
20
20
 
21
21
  The code patch inputs retain third-party notices in `LICENSE-braces` (MIT) and `LICENSE-node-forge`. The original dependencies remain registry packages; the shipped files configure and test the consumer rather than silently replacing its package manager.
22
+
23
+ The simple-git 4.0.2 compatibility patch restores only the legacy ESM default factory used by Nuxt devtools. It aliases the existing, fixed `simpleGit` factory and does not change argument validation, executable selection, or Git execution. The named factory remains identical. `LICENSE-simple-git` retains its upstream MIT notice. A fresh consumer build and type check with devtools enabled are mandatory release checks.
@@ -57,3 +57,14 @@ test('active dependency graph uses every required upstream security version', ()
57
57
  for (const manifest of matches) assert.equal(JSON.parse(fs.readFileSync(manifest, 'utf8')).version, version, name);
58
58
  }
59
59
  });
60
+
61
+ // Preserve the ESM entry point expected by current Nuxt devtools without downgrading Git protections.
62
+ test('fixed simple-git retains named and legacy ESM factory exports', async () => {
63
+ const { pathToFileURL } = require('node:url');
64
+ const { installedDependencies } = require('./resolved-dependency.cjs');
65
+ for (const manifest of installedDependencies(process.cwd(), 'simple-git', '4.0.2')) {
66
+ const module = await import(pathToFileURL(path.join(path.dirname(manifest), 'dist/index.mjs')).href);
67
+ assert.equal(typeof module.simpleGit, 'function');
68
+ assert.equal(module.default, module.simpleGit);
69
+ }
70
+ });
@@ -0,0 +1,11 @@
1
+ --- a/dist/index.mjs
2
+ +++ b/dist/index.mjs
3
+ @@ -2890,6 +2890,7 @@
4
+ xe as TaskConfigurationError,
5
+ Sn as grepQueryBuilder,
6
+ ko as pathspec,
7
+ - wo as simpleGit
8
+ + wo as simpleGit,
9
+ + wo as default
10
+ };
11
+ //# sourceMappingURL=index.mjs.map
@@ -3,7 +3,7 @@ import { existsSync, lstatSync, readFileSync, mkdirSync, writeFileSync, renameSy
3
3
  import { join, resolve } from 'node:path'
4
4
  import { randomUUID } from 'node:crypto'
5
5
 
6
- const patches = ['braces@3.0.3', 'node-forge@1.4.0']
6
+ const patches = ['braces@3.0.3', 'node-forge@1.4.0', 'simple-git@4.0.2']
7
7
  function regular(path) {
8
8
  const stat = lstatSync(path)
9
9
  if (stat.isSymbolicLink() || !stat.isFile() || stat.size > 1024 * 1024) {