@tsonic/core 0.6.3 → 10.0.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/README.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  Core type definitions for Tsonic - a TypeScript to native compiler.
4
4
 
5
+ ## Versioning
6
+
7
+ This repo is versioned by **.NET major**:
8
+
9
+ - **.NET 10** → `versions/10/` → npm: `@tsonic/core@10.x`
10
+
11
+ When publishing, run: `npm publish versions/10 --access public`
12
+
5
13
  ## Installation
6
14
 
7
15
  ```bash
package/lang.d.ts CHANGED
@@ -203,6 +203,6 @@ export type thisarg<T> = T;
203
203
  * Used as the return type of stackalloc.
204
204
  */
205
205
  export interface Span<T> {
206
- readonly length: int;
206
+ readonly Length: int;
207
207
  [index: number]: T;
208
208
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tsonic/core",
3
- "version": "0.6.3",
4
- "description": "Core type definitions for Tsonic - TypeScript to native compiler",
3
+ "version": "10.0.1",
4
+ "description": "Core type definitions for Tsonic (versioned by .NET major)",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "typescript",
@@ -11,7 +11,8 @@
11
11
  "primitives",
12
12
  "interop",
13
13
  "csharp",
14
- "tsonic"
14
+ "tsonic",
15
+ "net10"
15
16
  ],
16
17
  "author": "Tsonic Team",
17
18
  "license": "MIT",
@@ -22,5 +23,8 @@
22
23
  "bugs": {
23
24
  "url": "https://github.com/tsoniclang/core/issues"
24
25
  },
25
- "homepage": "https://github.com/tsoniclang/core#readme"
26
+ "homepage": "https://github.com/tsoniclang/core#readme",
27
+ "peerDependencies": {
28
+ "@tsonic/dotnet": "^10.0.1"
29
+ }
26
30
  }