@vxrn/compiler 2.0.0-beta.45.1 → 2.0.0-beta.46.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/compiler",
3
- "version": "2.0.0-beta.45.1",
3
+ "version": "2.0.0-beta.46.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./package.json": "./package.json",
@@ -36,8 +36,8 @@
36
36
  "@babel/plugin-transform-react-jsx": "^7.27.1",
37
37
  "@babel/plugin-transform-regenerator": "^7.28.4",
38
38
  "@jridgewell/remapping": "^2.3.0",
39
- "@vxrn/utils": "2.0.0-beta.45.1",
40
- "@vxrn/vite-native-client": "2.0.0-beta.45.1",
39
+ "@vxrn/utils": "2.0.0-beta.46.1",
40
+ "@vxrn/vite-native-client": "2.0.0-beta.46.1",
41
41
  "babel-plugin-react-compiler": "^1.0.0",
42
42
  "babel-plugin-syntax-hermes-parser": "^0.36.1",
43
43
  "babel-plugin-transform-flow-enums": "^0.0.2",
@@ -1,5 +1,6 @@
1
1
  import fs from 'node:fs'
2
2
  import os from 'node:os'
3
+ import { createRequire } from 'node:module'
3
4
  import path from 'node:path'
4
5
  import { afterEach, describe, expect, it } from 'vitest'
5
6
  import { configureVXRNCompilerPlugin } from './configure'
@@ -381,7 +382,12 @@ describe('transformWorklets', () => {
381
382
  expect(typeof scaleFn).toBe('function')
382
383
  expect(scaleFn.__workletHash).toBeDefined()
383
384
  expect(typeof scaleFn.__workletHash).toBe('number')
384
- expect(scaleFn.__pluginVersion).toBe('0.10.1')
385
+ // /app has no package.json, so the stamp comes from the worklets runtime
386
+ // this workspace actually installs
387
+ const installedWorklets = createRequire(path.resolve(process.cwd(), 'package.json'))(
388
+ 'react-native-worklets/package.json'
389
+ ).version
390
+ expect(scaleFn.__pluginVersion).toBe(installedWorklets)
385
391
  expect(scaleFn.__closure).toEqual({ multiplier: 5 })
386
392
  expect(scaleFn.__initData).toBeDefined()
387
393
  expect(scaleFn.__initData.code).toContain('__closure')