json-as 1.1.3 → 1.1.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 2025-05-23 - 1.1.5
4
+
5
+ - fix: index.js didn't point to correct file, thus creating a compiler crash
6
+
7
+ ## 2025-05-23 - 1.1.4
8
+
9
+ - revert: grouping properties in favor of memory.compare
10
+
3
11
  ## 2025-05-23 - 1.1.3
4
12
 
5
13
  - feat: group properties of structs before code generation
@@ -205,4 +213,4 @@
205
213
  - feat: reduce memory usage so that it is viable for low-memory environments
206
214
  - feat: write to a central buffer and reduce memory overhead
207
215
  - feat: rewrite the transform to properly resolve schemas and link them together
208
- - feat: pre-allocate and compute the minimum size of a schema to avoid memory out of range errors
216
+ - feat: pre-allocate and compute the minimum size of a schema to avoid memory out of range errors
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
7
7
  █████ ███████ ██████ ██ ████ ██ ██ ███████
8
8
  </span>
9
- AssemblyScript - v1.1.3
9
+ AssemblyScript - v1.1.5
10
10
  </pre>
11
11
  </h6>
12
12
 
package/index.ts CHANGED
@@ -1,26 +1 @@
1
- class SrvInfo {
2
- accessUrl: string = "https://example.com";
3
- cardTypes: number[] = [1, 2, 3];
4
- customService: string = "Contact us at support@example.com";
5
- invoiceApplicationStatus: number = 1;
6
- isCertification: bool = true;
7
- isOnlineRecharge: bool = false;
8
- loginTypes: number[] = [0, 1]; // e.g. 0 = password, 1 = OTP
9
- record: string = "ICP 12345678";
10
- regCompanyAudit: number = 2;
11
- regCompanyPipeline: number[] = [101, 102, 103];
12
- regPwdLimit: number = 8; // min password length
13
- serverTime: i64 = 1650000000000; // dummy timestamp
14
- srvDescription: string = "A demo service for handling customer operations.";
15
- srvHiddenMenu: string[] = ["admin", "beta"];
16
- srvHost: string = "srv.example.com";
17
- srvId: number = 999;
18
- srvKeywords: string[] = ["finance", "payments", "online"];
19
- srvLogoImgUrl: string = "https://example.com/logo.png";
20
- srvName: string = "ExampleService";
21
- srvPageId: number = 5;
22
- thirdAuthUrl: string = "https://auth.example.com";
23
- userCenterStyle: number = 1; // e.g. 1 = modern, 0 = legacy
24
- }
25
-
26
- console.log(JSON.stringify(new SrvInfo()))
1
+ export { JSON } from "./assembly/index";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-as",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "author": "Jairus Tanaka",
5
5
  "description": "The only JSON library you'll need for AssemblyScript. SIMD enabled",
6
6
  "types": "assembly/index.ts",