json-as 0.9.12 → 0.9.13

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 CHANGED
@@ -20,6 +20,7 @@ v0.9.9a - Remove extraneous logs from transform
20
20
  v0.9.10 - Fix transform type checks. switch to nodekind checks
21
21
  v0.9.11 - Remove MpZ--implement custom serializers and deserializers in the works
22
22
  v0.9.12 - Add compat with aspect
23
+ v0.9.13 - Fix empty strings not indexing correctly
23
24
 
24
25
  [UNRELEASED] v1.0.0
25
26
  - Allow nullable primitives
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  __| || __|| || | | ___ | _ || __|
4
4
  | | ||__ || | || | | ||___|| ||__ |
5
5
  |_____||_____||_____||_|___| |__|__||_____|
6
- v0.9.11
6
+ v0.9.13
7
7
  </pre>
8
8
  </h5>
9
9
 
@@ -15,7 +15,7 @@ import { _intTo16, intTo16 } from "../custom/util";
15
15
  @inline export function serializeString(data: string): string {
16
16
  const len = data.length << 1;
17
17
  if (len === 0) {
18
- bs.write_16(2228258); /* {} */
18
+ bs.write_32(2228258); /* "" */
19
19
  return bs.out<string>();
20
20
  }
21
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-as",
3
- "version": "0.9.12",
3
+ "version": "0.9.13",
4
4
  "description": "The only JSON library you'll need for AssemblyScript. SIMD enabled",
5
5
  "types": "assembly/index.ts",
6
6
  "author": "Jairus Tanaka",
@@ -15,7 +15,7 @@
15
15
  ],
16
16
  "license": "MIT",
17
17
  "scripts": {
18
- "test": "ast test",
18
+ "test": "ast test && rm -rf ./build/",
19
19
  "pretest": "rm -rf ./build/ && ast build",
20
20
  "build:test": "rm -rf ./build/ && JSON_DEBUG=true asc assembly/test.ts --transform ./transform -o ./build/test.wasm",
21
21
  "build:bench": "asc bench/benchmark.ts -o bench/benchmark.wasm --transform ./transform --optimizeLevel 3 --shrinkLevel 0 --converge --noAssert --uncheckedBehavior always --runtime stub --enable simd",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@json-as/transform",
3
- "version": "0.9.12",
3
+ "version": "0.9.13",
4
4
  "description": "The only JSON library you'll need for AssemblyScript. SIMD enabled",
5
5
  "main": "./lib/index.js",
6
6
  "author": "Jairus Tanaka",