vxrn 2.8.0 → 2.8.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxrn",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "sideEffects": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -80,14 +80,14 @@
80
80
  "@react-native-community/cli": "^20.2.0",
81
81
  "@react-native-community/cli-config": "^20.2.0",
82
82
  "@react-native/dev-middleware": "^0.88.0",
83
- "@vxrn/compiler": "2.8.0",
84
- "@vxrn/debug": "2.8.0",
85
- "@vxrn/query-string": "2.8.0",
86
- "@vxrn/resolve": "2.8.0",
87
- "@vxrn/url-parse": "2.8.0",
88
- "@vxrn/utils": "2.8.0",
89
- "@vxrn/vendor": "2.8.0",
90
- "@vxrn/vite-flow": "2.8.0",
83
+ "@vxrn/compiler": "2.8.1",
84
+ "@vxrn/debug": "2.8.1",
85
+ "@vxrn/query-string": "2.8.1",
86
+ "@vxrn/resolve": "2.8.1",
87
+ "@vxrn/url-parse": "2.8.1",
88
+ "@vxrn/utils": "2.8.1",
89
+ "@vxrn/vendor": "2.8.1",
90
+ "@vxrn/vite-flow": "2.8.1",
91
91
  "citty": "^0.1.6",
92
92
  "dotenv": "^17.2.1",
93
93
  "dotenv-expand": "^12.0.2",
@@ -127,20 +127,20 @@
127
127
  "react-native": "0.88.0",
128
128
  "typescript": "7.0.2",
129
129
  "vitest": "^4.1.0",
130
- "@vxrn/vite-plugin-metro": "2.8.0"
130
+ "@vxrn/vite-plugin-metro": "2.8.1"
131
131
  },
132
132
  "publishConfig": {
133
133
  "access": "public"
134
134
  },
135
135
  "peerDependencies": {
136
- "@vxrn/vite-plugin-metro": "2.8.0"
136
+ "@vxrn/vite-plugin-metro": "2.8.1"
137
137
  },
138
138
  "peerDependenciesMeta": {
139
139
  "@vxrn/vite-plugin-metro": {
140
140
  "optional": true
141
141
  }
142
142
  },
143
- "releaseSourceCommit": "9435b113ae773ceebeef9e0a7144d5401b2c986f",
143
+ "releaseSourceCommit": "9c7de1d429903229d3a6ef9a741c5ec57102ba6b",
144
144
  "repository": {
145
145
  "type": "git",
146
146
  "url": "git+https://github.com/onejs/one.git",
@@ -111,7 +111,7 @@ ${accept}`
111
111
  const pending = nextUpdate()
112
112
  if (change === 'edit') {
113
113
  expect(context.routeEdit).toBe('index')
114
- await writeFile(
114
+ await saveFile(
115
115
  join(root, 'app/index.tsx'),
116
116
  "export default 'edited'; globalThis.routeEdit = 'edited'; if (import.meta.hot) import.meta.hot.accept()"
117
117
  )
@@ -119,7 +119,7 @@ ${accept}`
119
119
  expect(context.routeEdit).toBe('edited')
120
120
  } else if (change === 'create') {
121
121
  expect(context.routeMap['/app/[id].tsx']).toBeUndefined()
122
- await writeFile(join(root, 'app/[id].tsx'), "export default 'dynamic'")
122
+ await saveFile(join(root, 'app/[id].tsx'), "export default 'dynamic'")
123
123
  await apply(pending)
124
124
  expect((await context.routeMap['/app/[id].tsx']()).default).toBe('dynamic')
125
125
  } else {
@@ -825,7 +825,7 @@ if (import.meta.hot) import.meta.hot.accept(() => {})
825
825
 
826
826
  const runtime = rn.__rolldown_runtime__
827
827
  await native.engine.registerClient(runtime.clientId)
828
- await writeFile(dependency, 'export const amount = 3')
828
+ await saveFile(dependency, 'export const amount = 3')
829
829
  const update = await updated
830
830
  expect(update.type).toBe('hmr:update')
831
831
  expect(runtime.applyHmrUpdate(update.code, update.changedIds, update.seq)).toBe(
@@ -1078,7 +1078,7 @@ if (import.meta.hot) import.meta.hot.accept(() => {})
1078
1078
  expect(context.renderComponent()).toBe(42)
1079
1079
  const runtime = context.__rolldown_runtime__
1080
1080
  await native.engine.registerClient(runtime.clientId)
1081
- await writeFile(entry, source(2))
1081
+ await saveFile(entry, source(2))
1082
1082
  const update = await updateReceived
1083
1083
  expect(update.type).toBe('hmr:update')
1084
1084
  expect(update.clientId).toBe(runtime.clientId)
@@ -1275,7 +1275,7 @@ if (import.meta.hot) {
1275
1275
  registeredClientId = runtime.clientId
1276
1276
  await engine.registerClient(runtime.clientId)
1277
1277
 
1278
- await writeFile(entry, source('v2'))
1278
+ await saveFile(entry, source('v2'))
1279
1279
  const result = await Promise.race([
1280
1280
  hmrUpdate,
1281
1281
  new Promise((_, reject) =>
@@ -1388,7 +1388,7 @@ if (import.meta.hot) {
1388
1388
  registeredClientId = runtime.clientId
1389
1389
  await engine.registerClient(runtime.clientId)
1390
1390
 
1391
- await writeFile(leaf, `export const value = 'v2'`)
1391
+ await saveFile(leaf, `export const value = 'v2'`)
1392
1392
  const result = await Promise.race([
1393
1393
  hmrUpdate,
1394
1394
  new Promise((_, reject) =>