vxrn 2.6.18 → 2.6.19

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.
@@ -14,16 +14,48 @@ function hasNitroWebImage(root) {
14
14
  }
15
15
 
16
16
  const NITRO_WEB_IMAGE_MARKER = '# [vxrn/one] nitro web image modular header'
17
+ const WEBP_CODER_MARKER = '# [vxrn/one] webp coder modular header'
17
18
 
18
19
  function injectNitroWebImageModularHeaderIntoPodfile(podfile) {
19
- if (podfile.includes(NITRO_WEB_IMAGE_MARKER) ||
20
- /pod ['"]SDWebImage['"][^\n]*:modular_headers\s*=>\s*true/.test(podfile)) return podfile
21
- const anchor = /^(\s*)config = use_native_modules!.*$/m
22
- const match = podfile.match(anchor)
23
- if (!match) throw new Error('[vxrn] Podfile lost its use_native_modules! anchor')
24
- const insertAt = match.index + match[0].length
25
- return podfile.slice(0, insertAt) + '\n' + match[1] + NITRO_WEB_IMAGE_MARKER +
26
- '\n' + match[1] + "pod 'SDWebImage', :modular_headers => true" + podfile.slice(insertAt)
20
+ if (
21
+ !podfile.includes(NITRO_WEB_IMAGE_MARKER) &&
22
+ !/pod ['"]SDWebImage['"][^\n]*:modular_headers\s*=>\s*true/.test(podfile)
23
+ ) {
24
+ const anchor = /^(\s*)config = use_native_modules!.*$/m
25
+ const match = podfile.match(anchor)
26
+ if (!match) throw new Error('[vxrn] Podfile lost its use_native_modules! anchor')
27
+ const insertAt = match.index + match[0].length
28
+ podfile =
29
+ podfile.slice(0, insertAt) +
30
+ '\n' +
31
+ match[1] +
32
+ NITRO_WEB_IMAGE_MARKER +
33
+ '\n' +
34
+ match[1] +
35
+ "pod 'SDWebImage', :modular_headers => true" +
36
+ podfile.slice(insertAt)
37
+ }
38
+ // One.ImageManipulator encodes webp through SDWebImageWebPCoder, which
39
+ // defines no modules, so static frameworks need its modular headers too.
40
+ if (
41
+ !podfile.includes(WEBP_CODER_MARKER) &&
42
+ !/pod ['"]SDWebImageWebPCoder['"][^\n]*:modular_headers\s*=>\s*true/.test(podfile)
43
+ ) {
44
+ const anchor = /^(\s*)config = use_native_modules!.*$/m
45
+ const match = podfile.match(anchor)
46
+ if (!match) throw new Error('[vxrn] Podfile lost its use_native_modules! anchor')
47
+ const insertAt = match.index + match[0].length
48
+ podfile =
49
+ podfile.slice(0, insertAt) +
50
+ '\n' +
51
+ match[1] +
52
+ WEBP_CODER_MARKER +
53
+ '\n' +
54
+ match[1] +
55
+ "pod 'SDWebImageWebPCoder', :modular_headers => true" +
56
+ podfile.slice(insertAt)
57
+ }
58
+ return podfile
27
59
  }
28
60
 
29
61
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxrn",
3
- "version": "2.6.18",
3
+ "version": "2.6.19",
4
4
  "sideEffects": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -81,15 +81,15 @@
81
81
  "@react-native-community/cli": "^20.2.0",
82
82
  "@react-native-community/cli-config": "^20.2.0",
83
83
  "@react-native/dev-middleware": "^0.87.1",
84
- "@vxrn/compiler": "2.6.18",
85
- "@vxrn/debug": "2.6.18",
86
- "@vxrn/query-string": "2.6.18",
87
- "@vxrn/resolve": "2.6.18",
88
- "@vxrn/url-parse": "2.6.18",
89
- "@vxrn/utils": "2.6.18",
90
- "@vxrn/vendor": "2.6.18",
91
- "@vxrn/vite-flow": "2.6.18",
92
- "@vxrn/vite-plugin-metro": "2.6.18",
84
+ "@vxrn/compiler": "2.6.19",
85
+ "@vxrn/debug": "2.6.19",
86
+ "@vxrn/query-string": "2.6.19",
87
+ "@vxrn/resolve": "2.6.19",
88
+ "@vxrn/url-parse": "2.6.19",
89
+ "@vxrn/utils": "2.6.19",
90
+ "@vxrn/vendor": "2.6.19",
91
+ "@vxrn/vite-flow": "2.6.19",
92
+ "@vxrn/vite-plugin-metro": "2.6.19",
93
93
  "citty": "^0.1.6",
94
94
  "dotenv": "^17.2.1",
95
95
  "dotenv-expand": "^12.0.2",
@@ -119,7 +119,7 @@
119
119
  "devDependencies": {
120
120
  "@biomejs/biome": "2.3.3",
121
121
  "@jridgewell/gen-mapping": "^0.3.5",
122
- "@tamagui/build": "3.0.7",
122
+ "@tamagui/build": "3.0.9",
123
123
  "@types/find-node-modules": "^2.1.2",
124
124
  "@types/node": "^24.10.0",
125
125
  "@types/ws": "^8.18.1",
@@ -133,7 +133,7 @@
133
133
  "publishConfig": {
134
134
  "access": "public"
135
135
  },
136
- "releaseSourceCommit": "36867c8a9754398e5ed511c7d6c4beaf2d8ed181",
136
+ "releaseSourceCommit": "d9ca52ca8d6d6616f161708cbed988c415f056d9",
137
137
  "repository": {
138
138
  "type": "git",
139
139
  "url": "git+https://github.com/onejs/one.git",
@@ -1967,8 +1967,10 @@ export function renderPrebuildFile(args: {
1967
1967
  .replace(/HelloWorld/g, appName)
1968
1968
  .replace(/helloworld/g, appName.toLowerCase())
1969
1969
 
1970
- let rendered = content
1971
- if (rendered !== null) {
1970
+ if (content !== null) {
1971
+ // a plain string binding: narrowing `string | null` through this block's
1972
+ // reassignments made type checking this file take many minutes.
1973
+ let rendered = content
1972
1974
  // platform ids first: the generic helloworld rename below would
1973
1975
  // otherwise rewrite the placeholder package before it is remapped.
1974
1976
  const replacements: Array<[string, string]> = []
@@ -2884,9 +2886,10 @@ end`
2884
2886
  if (value === undefined) continue
2885
2887
  rendered = rendered.replace(new RegExp(`${setting} = \\d+`, 'g'), `${setting} = ${value}`)
2886
2888
  }
2889
+ return { destRelativePath, content: rendered }
2887
2890
  }
2888
2891
 
2889
- return { destRelativePath, content: rendered }
2892
+ return { destRelativePath, content }
2890
2893
  }
2891
2894
 
2892
2895
  export const generateForPlatform = async (
@@ -1 +1 @@
1
- {"version":3,"file":"prebuildWithoutExpo.d.ts","sourceRoot":"","sources":["../../src/exports/prebuildWithoutExpo.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,iBAAiB,EACjB,KAAK,iBAAiB,EAEvB,MAAM,+BAA+B,CAAA;AAsEtC,YAAY,EAAE,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