@nativescript/ios 9.1.0-rc.0 → 9.1.0-rc.2

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.
@@ -505,7 +505,7 @@
505
505
  repositoryURL = "https://github.com/NativeScript/ios-spm.git";
506
506
  requirement = {
507
507
  kind = exactVersion;
508
- version = "9.1.0-rc.0";
508
+ version = "9.1.0-rc.2";
509
509
  };
510
510
  };
511
511
  /* End XCRemoteSwiftPackageReference section */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nativescript/ios",
3
3
  "description": "NativeScript Runtime for iOS",
4
- "version": "9.1.0-rc.0",
4
+ "version": "9.1.0-rc.2",
5
5
  "keywords": [
6
6
  "NativeScript",
7
7
  "iOS",
@@ -23,6 +23,8 @@
23
23
  "scripts": {
24
24
  "prepare": "husky",
25
25
  "apply-patches": "./apply_patches.sh",
26
+ "setup-xcode-env": "./tools/update-xcode-env.sh",
27
+ "open-xcode": "./tools/update-xcode-env.sh && open v8ios.xcodeproj",
26
28
  "build-ios": "node prepare-target ios && ./build_all_ios.sh",
27
29
  "build-vision": "node prepare-target visionos && ./build_all_vision.sh",
28
30
  "setup-ci": "./build_metadata_generator.sh",
@@ -23,4 +23,39 @@ declare module "ns:util" {
23
23
  * `console.*` routes its arguments through this.
24
24
  */
25
25
  export function format(format?: unknown, ...args: unknown[]): string;
26
+
27
+ export interface TextEncoderInstance {
28
+ readonly encoding: "utf-8";
29
+ encode(input?: string): Uint8Array;
30
+ encodeInto(
31
+ source: string,
32
+ destination: Uint8Array
33
+ ): { read: number; written: number };
34
+ }
35
+
36
+ export interface TextDecoderInstance {
37
+ readonly encoding: string;
38
+ readonly fatal: boolean;
39
+ readonly ignoreBOM: boolean;
40
+ decode(
41
+ input?: ArrayBufferLike | ArrayBufferView,
42
+ options?: { stream?: boolean }
43
+ ): string;
44
+ }
45
+
46
+ /**
47
+ * The WHATWG `TextEncoder`, which is the very object the global of that name
48
+ * holds: `require("ns:util").TextEncoder === globalThis.TextEncoder`. The
49
+ * members are declared here rather than taken from `globalThis` so the
50
+ * declaration stands on its own, without a DOM lib in the program.
51
+ */
52
+ export const TextEncoder: { new (): TextEncoderInstance };
53
+
54
+ /** The WHATWG `TextDecoder`, likewise identical to the global. */
55
+ export const TextDecoder: {
56
+ new (
57
+ label?: string,
58
+ options?: { fatal?: boolean; ignoreBOM?: boolean }
59
+ ): TextDecoderInstance;
60
+ };
26
61
  }