@bun-native/cli 0.37.10 → 0.37.12

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.md CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  Create, check, run and AOT-build Bun Native desktop applications.
4
4
 
5
- Part of [Bun Native](https://github.com/AndrewM-F/bun-native), an experimental developer preview. Version 0.37.10 was built from [df31d170925c](https://github.com/AndrewM-F/bun-native/tree/df31d170925cb51a1c78ba9acda53e1d6a686cd0) and published from GitHub Actions with npm provenance. Use the Bun revision pinned in that commit's toolchain.json. Start with the [getting-started guide](https://github.com/AndrewM-F/bun-native/blob/df31d170925cb51a1c78ba9acda53e1d6a686cd0/docs/getting-started.md); `bun-native host install` fetches the matching release host. The license notice is in LICENSE.
5
+ Part of [Bun Native](https://github.com/AndrewM-F/bun-native), an experimental developer preview. Version 0.37.12 was built from [cd80150255d6](https://github.com/AndrewM-F/bun-native/tree/cd80150255d693f109c4f1ffae4c5d84bdac9ff1) and published from GitHub Actions with npm provenance. Use the Bun revision pinned in that commit's toolchain.json. Start with the [getting-started guide](https://github.com/AndrewM-F/bun-native/blob/cd80150255d693f109c4f1ffae4c5d84bdac9ff1/docs/getting-started.md); `bun-native host install` fetches the matching release host. The license notice is in LICENSE.
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "commit": "df31d170925cb51a1c78ba9acda53e1d6a686cd0",
4
- "tree": "7e2825042857a5c89fadd1cc1b9fc142293f54ae",
3
+ "commit": "cd80150255d693f109c4f1ffae4c5d84bdac9ff1",
4
+ "tree": "84156e0cc0254cf686eb846abf76af8c49747f61",
5
5
  "files": {
6
6
  "package.json": {
7
7
  "bytes": 2260,
8
- "sha256": "f2239111f5af7020dd1e9e5d14644c0c268fc1331a87f96cc31cc791770d67cc"
8
+ "sha256": "4e9b4230b6e1e16d7d7f3594c25d146517ae822de719e2c760f712c92a3bad6f"
9
9
  },
10
10
  ".oxfmtrc.json": {
11
11
  "bytes": 430,
@@ -88,8 +88,8 @@
88
88
  "sha256": "79fd8a3a0f4e74f4e312cb511beec9e4893eb18b7ddef8c1179dcff47fc3e858"
89
89
  },
90
90
  "scripts/native/package-stamp.ts": {
91
- "bytes": 7982,
92
- "sha256": "b622a5c2e60da5f804425b37181e573008b1c468afbf9cfe6cab472145cc6e3a"
91
+ "bytes": 8173,
92
+ "sha256": "0d2d71d9bbc7e0da5d4fb33b49fa6305617d9ca27f8145efcdf8d105428f422c"
93
93
  },
94
94
  "scripts/native/paths.ts": {
95
95
  "bytes": 806,
@@ -141,7 +141,7 @@
141
141
  "sha256": "2c6573032ee32feb20c1ffbbb9a44213a407c81aec284d4dee5355f29e277397"
142
142
  },
143
143
  "dependencyLock": {
144
- "bytes": 28710,
145
- "sha256": "bcb9fb02ef98d0ef7cd39772ebbc5906ed02f0ebd1a6e806b6cb0e1d56583b60"
144
+ "bytes": 28444,
145
+ "sha256": "51a84021725673c75a07fea229c48a2d8dadc00c8deb14e826ce1525cf3aa2d0"
146
146
  }
147
147
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bun-native/cli",
3
- "version": "0.37.10",
3
+ "version": "0.37.12",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "description": "Create, check, run and AOT-build Bun Native desktop applications.",
19
19
  "dependencies": {
20
- "oxlint": "1.94.0"
20
+ "oxlint": "1.95.0"
21
21
  },
22
22
  "repository": {
23
23
  "type": "git",
@@ -34,27 +34,27 @@
34
34
  "templates": {
35
35
  "solid": {
36
36
  "dependencies": {
37
- "@bun-native/core": "0.37.10",
38
- "@bun-native/solid": "0.37.10",
37
+ "@bun-native/core": "0.37.12",
38
+ "@bun-native/solid": "0.37.12",
39
39
  "solid-js": "1.9.20"
40
40
  },
41
41
  "devDependencies": {
42
- "@bun-native/cli": "0.37.10",
42
+ "@bun-native/cli": "0.37.12",
43
43
  "@types/bun": "1.4.4",
44
- "oxlint": "1.94.0"
44
+ "oxlint": "1.95.0"
45
45
  }
46
46
  },
47
47
  "react": {
48
48
  "dependencies": {
49
- "@bun-native/core": "0.37.10",
50
- "@bun-native/react": "0.37.10",
49
+ "@bun-native/core": "0.37.12",
50
+ "@bun-native/react": "0.37.12",
51
51
  "react": "19.3.1"
52
52
  },
53
53
  "devDependencies": {
54
- "@bun-native/cli": "0.37.10",
54
+ "@bun-native/cli": "0.37.12",
55
55
  "@types/bun": "1.4.4",
56
- "oxlint": "1.94.0",
57
- "@types/react": "19.3.0",
56
+ "oxlint": "1.95.0",
57
+ "@types/react": "19.3.3",
58
58
  "@types/react-reconciler": "0.34.1"
59
59
  }
60
60
  }
@@ -1,4 +1,4 @@
1
- import { lstat, mkdir, rename, rm, writeFile } from 'node:fs/promises'
1
+ import { lstat, mkdir, readdir, rename, rm, writeFile } from 'node:fs/promises'
2
2
  import { dirname, join, relative, resolve, sep } from 'node:path'
3
3
  import { isDeepStrictEqual } from 'node:util'
4
4
  import toolchain from '../../toolchain.json'
@@ -12,13 +12,14 @@ import { userCache } from './context.ts'
12
12
  * the consumer lock, and walks and hashes every installed file. `build`, `create`
13
13
  * and `doctor` always do that. The light commands (`check`, `format`, `lint`,
14
14
  * `dev` and each watch remount) may instead accept a stamp that the last full
15
- * verification left in `.bun-native/verified.json`. The stamp records the
15
+ * verification left in the user cache. The stamp records the
16
16
  * manifest digest and the lstat identity (device, inode, mode, size, mtime and
17
17
  * ctime in nanoseconds) of every path that verification read: the manifest,
18
18
  * each archive, `bun.lock`, `node_modules`, each required package root, each of
19
- * its directories and installed files, and the verifier's own modules. Any
20
- * write, replacement, added or removed entry changes one of those identities,
21
- * and a miss falls back to full verification. A stamp hit trusts file system
19
+ * its directories and installed files, and the verifier's own modules. Each
20
+ * directory also records its sorted entry names because its timestamps can
21
+ * remain unchanged after an addition or removal. A miss falls back to full
22
+ * verification. A stamp hit trusts file system
22
23
  * metadata; it is a cache for local edit loops, not a security boundary.
23
24
  */
24
25
  export type VerifiedPackageSet = {
@@ -57,7 +58,17 @@ const verifier = [
57
58
  async function identity(path: string): Promise<string | undefined> {
58
59
  const stats = await lstat(path, { bigint: true })
59
60
  if (!stats.isFile() && !stats.isDirectory()) return undefined
60
- return [stats.dev, stats.ino, stats.mode, stats.size, stats.mtimeNs, stats.ctimeNs].join(':')
61
+ const metadata = [
62
+ stats.dev,
63
+ stats.ino,
64
+ stats.mode,
65
+ stats.size,
66
+ stats.mtimeNs,
67
+ stats.ctimeNs,
68
+ ].join(':')
69
+ return stats.isDirectory()
70
+ ? `${metadata}:${JSON.stringify((await readdir(path)).sort())}`
71
+ : metadata
61
72
  }
62
73
 
63
74
  async function identities(