@tsonic/js 10.0.45 → 10.0.46

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
@@ -15,8 +15,7 @@ This package is part of Tsonic: https://tsonic.org.
15
15
 
16
16
  ```bash
17
17
  mkdir my-app && cd my-app
18
- npx --yes tsonic@latest init --surface js
19
- npx --yes tsonic@latest add npm @tsonic/js
18
+ npx --yes tsonic@latest init --surface @tsonic/js
20
19
  ```
21
20
 
22
21
  ```ts
@@ -38,10 +37,13 @@ npm run dev
38
37
  npx --yes tsonic@latest add npm @tsonic/js
39
38
  ```
40
39
 
41
- If the workspace is not already JS surface, set:
40
+ If the workspace is not already JS surface, set `surface` in
41
+ `tsonic.workspace.json` to `@tsonic/js`:
42
42
 
43
- ```bash
44
- npx --yes tsonic@latest init --surface js
43
+ ```json
44
+ {
45
+ "surface": "@tsonic/js"
46
+ }
45
47
  ```
46
48
 
47
49
  ## Optional direct imports
package/globals.d.ts CHANGED
@@ -257,7 +257,7 @@ declare global {
257
257
  new(): Date;
258
258
  new(value: string | number | long): Date;
259
259
  now(): long;
260
- parse(s: string): long;
260
+ parse(s: string): number;
261
261
  }
262
262
 
263
263
  interface Uint8ArrayConstructor {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsonic/js",
3
- "version": "10.0.45",
3
+ "version": "10.0.46",
4
4
  "description": "TypeScript type definitions for JavaScript Runtime (JSRuntime) library",
5
5
  "main": "index.d.ts",
6
6
  "types": "index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "packageReferences": [
11
11
  {
12
12
  "id": "Tsonic.JSRuntime",
13
- "version": "0.0.7",
13
+ "version": "0.0.8",
14
14
  "types": "@tsonic/js"
15
15
  }
16
16
  ]