@bun-native/cli 0.37.10 → 0.37.11
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 +1 -1
- package/bun-native-source.json +7 -7
- package/package.json +11 -11
- package/src/scripts/native/package-stamp.ts +17 -6
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.
|
|
5
|
+
Part of [Bun Native](https://github.com/AndrewM-F/bun-native), an experimental developer preview. Version 0.37.11 was built from [580b4fdd670b](https://github.com/AndrewM-F/bun-native/tree/580b4fdd670bc81e4f0da5003b740b41b0ec8468) 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/580b4fdd670bc81e4f0da5003b740b41b0ec8468/docs/getting-started.md); `bun-native host install` fetches the matching release host. The license notice is in LICENSE.
|
package/bun-native-source.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"commit": "
|
|
4
|
-
"tree": "
|
|
3
|
+
"commit": "580b4fdd670bc81e4f0da5003b740b41b0ec8468",
|
|
4
|
+
"tree": "6e092a5f0e1ebdebe32e68dffcafd8c7e5950be4",
|
|
5
5
|
"files": {
|
|
6
6
|
"package.json": {
|
|
7
7
|
"bytes": 2260,
|
|
8
|
-
"sha256": "
|
|
8
|
+
"sha256": "7c33937116bb7ad839c645c21378ba7045c052fbbac70c2049158614a4dbae6f"
|
|
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":
|
|
92
|
-
"sha256": "
|
|
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":
|
|
145
|
-
"sha256": "
|
|
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.
|
|
3
|
+
"version": "0.37.11",
|
|
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.
|
|
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.
|
|
38
|
-
"@bun-native/solid": "0.37.
|
|
37
|
+
"@bun-native/core": "0.37.11",
|
|
38
|
+
"@bun-native/solid": "0.37.11",
|
|
39
39
|
"solid-js": "1.9.20"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@bun-native/cli": "0.37.
|
|
42
|
+
"@bun-native/cli": "0.37.11",
|
|
43
43
|
"@types/bun": "1.4.4",
|
|
44
|
-
"oxlint": "1.
|
|
44
|
+
"oxlint": "1.95.0"
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"react": {
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@bun-native/core": "0.37.
|
|
50
|
-
"@bun-native/react": "0.37.
|
|
49
|
+
"@bun-native/core": "0.37.11",
|
|
50
|
+
"@bun-native/react": "0.37.11",
|
|
51
51
|
"react": "19.3.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@bun-native/cli": "0.37.
|
|
54
|
+
"@bun-native/cli": "0.37.11",
|
|
55
55
|
"@types/bun": "1.4.4",
|
|
56
|
-
"oxlint": "1.
|
|
57
|
-
"@types/react": "19.3.
|
|
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
|
|
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.
|
|
20
|
-
*
|
|
21
|
-
*
|
|
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
|
-
|
|
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(
|