@tsonic/js 0.1.2 → 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
  TypeScript type definitions for the JavaScript Runtime (JSRuntime) library.
4
4
 
5
+ ## Versioning
6
+
7
+ This repo is versioned by **.NET major**:
8
+
9
+ - **.NET 10** → `versions/10/` → npm: `@tsonic/js@10.x`
10
+
11
+ When publishing, run: `npm publish versions/10 --access public`
12
+
5
13
  ## Features
6
14
 
7
15
  - **JavaScript-like APIs for .NET** - Array, Map, Set, Date, Math, JSON, and more
@@ -44,7 +52,7 @@ const mapped = arr.map(x => x * 2);
44
52
  import { Map, Set } from "@tsonic/js";
45
53
 
46
54
  const map = new Map<string, number>();
47
- map.set_("key", 42);
55
+ map.set("key", 42);
48
56
 
49
57
  const set = new Set<string>();
50
58
  set.add("value");
@@ -75,9 +83,6 @@ const str = JSON.stringify(obj);
75
83
  - **Members**: camelCase (TypeScript convention)
76
84
  - **Global functions**: camelCase (JavaScript convention)
77
85
 
78
- Some members use a `_` suffix when they would otherwise conflict with a TypeScript keyword
79
- (for example: `Map.get_()` / `Map.set_()` / `Map.delete_()`).
80
-
81
86
  ## Development
82
87
 
83
88
  ### Regenerating Types