@typescript/native-preview 7.0.0-dev.20260622.1 → 7.0.0-dev.20260624.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": "@typescript/native-preview",
3
- "version": "7.0.0-dev.20260622.1",
3
+ "version": "7.0.0-dev.20260624.1",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Microsoft Corp.",
6
6
  "homepage": "https://www.typescriptlang.org/",
@@ -80,14 +80,14 @@
80
80
  "tinybench": "^6.0.2",
81
81
  "vscode-jsonrpc": "^9.0.0"
82
82
  },
83
- "gitHead": "dc37b5249ab60e2bbce936f71b883e6c8136167e",
83
+ "gitHead": "6d68dd661d656b030149a703b6eeafffe46ee578",
84
84
  "optionalDependencies": {
85
- "@typescript/native-preview-win32-x64": "7.0.0-dev.20260622.1",
86
- "@typescript/native-preview-win32-arm64": "7.0.0-dev.20260622.1",
87
- "@typescript/native-preview-linux-x64": "7.0.0-dev.20260622.1",
88
- "@typescript/native-preview-linux-arm": "7.0.0-dev.20260622.1",
89
- "@typescript/native-preview-linux-arm64": "7.0.0-dev.20260622.1",
90
- "@typescript/native-preview-darwin-x64": "7.0.0-dev.20260622.1",
91
- "@typescript/native-preview-darwin-arm64": "7.0.0-dev.20260622.1"
85
+ "@typescript/native-preview-win32-x64": "7.0.0-dev.20260624.1",
86
+ "@typescript/native-preview-win32-arm64": "7.0.0-dev.20260624.1",
87
+ "@typescript/native-preview-linux-x64": "7.0.0-dev.20260624.1",
88
+ "@typescript/native-preview-linux-arm": "7.0.0-dev.20260624.1",
89
+ "@typescript/native-preview-linux-arm64": "7.0.0-dev.20260624.1",
90
+ "@typescript/native-preview-darwin-x64": "7.0.0-dev.20260624.1",
91
+ "@typescript/native-preview-darwin-arm64": "7.0.0-dev.20260624.1"
92
92
  }
93
93
  }
@@ -1,40 +0,0 @@
1
- import type { SignatureResponse, SymbolResponse, TypeResponse } from "./proto.ts";
2
- /**
3
- * Interface for objects with an ID that can be tracked by the registry.
4
- */
5
- export interface Identifiable {
6
- readonly id: number;
7
- }
8
- /**
9
- * Factory functions for creating API objects.
10
- */
11
- export interface ObjectFactories<TSymbol extends Identifiable, TType extends Identifiable, TSignature extends Identifiable = Identifiable> {
12
- createSymbol(data: SymbolResponse): TSymbol;
13
- createType(data: TypeResponse): TType;
14
- createSignature(data: SignatureResponse): TSignature;
15
- }
16
- /**
17
- * Object registry scoped to a single snapshot.
18
- *
19
- * This registry ensures that the same server-side object ID always maps to
20
- * the same client-side object instance within a snapshot, enabling proper
21
- * object identity semantics across API calls against the same snapshot.
22
- *
23
- * Symbol and type lifetimes are tied to the snapshot - when the snapshot
24
- * is disposed, all its objects are implicitly released.
25
- */
26
- export declare class ObjectRegistry<TSymbol extends Identifiable, TType extends Identifiable, TSignature extends Identifiable = Identifiable> {
27
- private symbols;
28
- private types;
29
- private signatures;
30
- private factories;
31
- constructor(factories: ObjectFactories<TSymbol, TType, TSignature>);
32
- getOrCreateSymbol(data: SymbolResponse): TSymbol;
33
- getOrCreateType(data: TypeResponse): TType;
34
- getOrCreateSignature(data: SignatureResponse): TSignature;
35
- getType(id: number): TType | undefined;
36
- getSymbol(id: number): TSymbol | undefined;
37
- getSignature(id: number): TSignature | undefined;
38
- clear(): void;
39
- }
40
- //# sourceMappingURL=objectRegistry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"objectRegistry.d.ts","sourceRoot":"","sources":["../../src/api/objectRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,iBAAiB,EACjB,cAAc,EACd,YAAY,EACf,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe,CAAC,OAAO,SAAS,YAAY,EAAE,KAAK,SAAS,YAAY,EAAE,UAAU,SAAS,YAAY,GAAG,YAAY;IACrI,YAAY,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC;IAC5C,UAAU,CAAC,IAAI,EAAE,YAAY,GAAG,KAAK,CAAC;IACtC,eAAe,CAAC,IAAI,EAAE,iBAAiB,GAAG,UAAU,CAAC;CACxD;AAED;;;;;;;;;GASG;AACH,qBAAa,cAAc,CACvB,OAAO,SAAS,YAAY,EAC5B,KAAK,SAAS,YAAY,EAC1B,UAAU,SAAS,YAAY,GAAG,YAAY;IAE9C,OAAO,CAAC,OAAO,CAAmC;IAClD,OAAO,CAAC,KAAK,CAAiC;IAC9C,OAAO,CAAC,UAAU,CAAsC;IACxD,OAAO,CAAC,SAAS,CAA8C;gBAEnD,SAAS,EAAE,eAAe,CAAC,OAAO,EAAE,KAAK,EAAE,UAAU,CAAC;IAIlE,iBAAiB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO;IAWhD,eAAe,CAAC,IAAI,EAAE,YAAY,GAAG,KAAK;IAW1C,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,UAAU;IAWzD,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS;IAItC,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS;IAI1C,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS;IAIhD,KAAK,IAAI,IAAI;CAKhB"}
@@ -1,61 +0,0 @@
1
- /**
2
- * Object registry scoped to a single snapshot.
3
- *
4
- * This registry ensures that the same server-side object ID always maps to
5
- * the same client-side object instance within a snapshot, enabling proper
6
- * object identity semantics across API calls against the same snapshot.
7
- *
8
- * Symbol and type lifetimes are tied to the snapshot - when the snapshot
9
- * is disposed, all its objects are implicitly released.
10
- */
11
- export class ObjectRegistry {
12
- symbols = new Map();
13
- types = new Map();
14
- signatures = new Map();
15
- factories;
16
- constructor(factories) {
17
- this.factories = factories;
18
- }
19
- getOrCreateSymbol(data) {
20
- let symbol = this.symbols.get(data.id);
21
- if (symbol) {
22
- return symbol;
23
- }
24
- symbol = this.factories.createSymbol(data);
25
- this.symbols.set(data.id, symbol);
26
- return symbol;
27
- }
28
- getOrCreateType(data) {
29
- let type = this.types.get(data.id);
30
- if (type) {
31
- return type;
32
- }
33
- type = this.factories.createType(data);
34
- this.types.set(data.id, type);
35
- return type;
36
- }
37
- getOrCreateSignature(data) {
38
- let signature = this.signatures.get(data.id);
39
- if (signature) {
40
- return signature;
41
- }
42
- signature = this.factories.createSignature(data);
43
- this.signatures.set(data.id, signature);
44
- return signature;
45
- }
46
- getType(id) {
47
- return this.types.get(id);
48
- }
49
- getSymbol(id) {
50
- return this.symbols.get(id);
51
- }
52
- getSignature(id) {
53
- return this.signatures.get(id);
54
- }
55
- clear() {
56
- this.symbols.clear();
57
- this.types.clear();
58
- this.signatures.clear();
59
- }
60
- }
61
- //# sourceMappingURL=objectRegistry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"objectRegistry.js","sourceRoot":"","sources":["../../src/api/objectRegistry.ts"],"names":[],"mappings":"AAsBA;;;;;;;;;GASG;AACH,MAAM,OAAO,cAAc;IAKf,OAAO,GAAyB,IAAI,GAAG,EAAE,CAAC;IAC1C,KAAK,GAAuB,IAAI,GAAG,EAAE,CAAC;IACtC,UAAU,GAA4B,IAAI,GAAG,EAAE,CAAC;IAChD,SAAS,CAA8C;IAE/D,YAAY,SAAsD;QAC9D,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAED,iBAAiB,CAAC,IAAoB;QAClC,IAAI,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACvC,IAAI,MAAM,EAAE,CAAC;YACT,OAAO,MAAM,CAAC;QAClB,CAAC;QAED,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,CAAC,GAAG,CAA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