@bun-native/core 0.33.11 → 0.34.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/README.md CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  The public TypeScript API of the Bun Native desktop framework.
4
4
 
5
- Part of [Bun Native](https://github.com/AndrewM-F/bun-native), an experimental developer preview. Version 0.33.11 was built from [0f43d3c39260](https://github.com/AndrewM-F/bun-native/tree/0f43d3c39260c638a2e0c0b85051623cc6b2b6ea) 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/0f43d3c39260c638a2e0c0b85051623cc6b2b6ea/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.34.0 was built from [2796520d7849](https://github.com/AndrewM-F/bun-native/tree/2796520d7849194bc215b58a617be820e3bf4505) 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/2796520d7849194bc215b58a617be820e3bf4505/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": "0f43d3c39260c638a2e0c0b85051623cc6b2b6ea",
4
- "tree": "424bf9e6aa1bbc1bebfd3bf710a3c7b43cad2eba",
3
+ "commit": "2796520d7849194bc215b58a617be820e3bf4505",
4
+ "tree": "56d2f4303a50de6bb95ff296d1bb780a11f129a9",
5
5
  "files": {
6
6
  "package.json": {
7
- "bytes": 2260,
8
- "sha256": "8981c885ab8788aae711326a82a07468a3908f57ad1c869c26c85b5eb34c39e7"
7
+ "bytes": 2259,
8
+ "sha256": "0713bd75afb84a486a0042aa34fa0dae28d70f4d742110465ae0e15dff0538df"
9
9
  },
10
10
  "packages/core/package.json": {
11
11
  "bytes": 282,
@@ -16,8 +16,8 @@
16
16
  "sha256": "be41f76ea03059acb892700a172a8df3f07821af79f16332173399aaf6db7731"
17
17
  },
18
18
  "packages/core/src/application.ts": {
19
- "bytes": 67089,
20
- "sha256": "bf60c3fca0f0a08a1a9f9d9db79a28674515bf3ccdc66baf8b8a2fe9942c1b71"
19
+ "bytes": 67150,
20
+ "sha256": "c4169633cf81c76e0163e7eaef67585cd55781c08ce51c615a3f1beb2a4c9600"
21
21
  },
22
22
  "packages/core/src/batches.ts": {
23
23
  "bytes": 6731,
@@ -96,8 +96,8 @@
96
96
  "sha256": "51e2edcc0f1e6d5d92e1f7edf79c6dc6bc5c2f5acc8bffa20b211523f3971bb8"
97
97
  },
98
98
  "packages/core/src/types.ts": {
99
- "bytes": 14315,
100
- "sha256": "5d8196d284e81c064c4c677f4c0c362434fa4e32555607dd3ea27f61453c037d"
99
+ "bytes": 14652,
100
+ "sha256": "29d28598e85514aaafd8f43a8fd46f0dea6799d3d9107703c99aad86a80a5f1e"
101
101
  },
102
102
  "LICENSE": {
103
103
  "bytes": 1075,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bun-native/core",
3
- "version": "0.33.11",
3
+ "version": "0.34.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -18,8 +18,8 @@
18
18
  },
19
19
  "description": "The public TypeScript API of the Bun Native desktop framework.",
20
20
  "dependencies": {
21
- "@bun-native/protocol": "0.33.11",
22
- "@bun-native/runtime": "0.33.11"
21
+ "@bun-native/protocol": "0.34.0",
22
+ "@bun-native/runtime": "0.34.0"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -161,6 +161,9 @@ class Identities {
161
161
 
162
162
  class Application implements NativeApplication {
163
163
  readonly closed: Promise<void>
164
+ get launchPhases() {
165
+ return this.host.launchPhases
166
+ }
164
167
  readonly limits: Readonly<Limits>
165
168
  // NativeHost.launch has negotiated every mandatory protocol feature.
166
169
  readonly capabilities: readonly Capability[]
package/src/types.ts CHANGED
@@ -329,6 +329,12 @@ export interface NativeWindow {
329
329
 
330
330
  export interface NativeApplication {
331
331
  readonly closed: Promise<void>
332
+ /**
333
+ * In-process launch milestones on the `performance` clock (#678): entry to
334
+ * hydration, host spawn and protocol handshake. Instrumentation for startup
335
+ * attribution; it does not gate readiness and adds no work to the launch.
336
+ */
337
+ readonly launchPhases: Readonly<{ entryMs: number; spawnedMs: number; helloMs: number }>
332
338
  readonly limits: Readonly<Limits>
333
339
  readonly capabilities: readonly NativeCapability[]
334
340
  /** Implemented service features and their effective grants, not an OS sandbox. */