@jscad/json-serializer 2.0.8 → 2.0.12
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 +32 -0
- package/package.json +3 -3
- package/tests/geom3ToJson.test.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,38 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.0.12](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/json-serializer@2.0.11...@jscad/json-serializer@2.0.12) (2021-12-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @jscad/json-serializer
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.0.11](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/json-serializer@2.0.10...@jscad/json-serializer@2.0.11) (2021-12-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @jscad/json-serializer
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [2.0.10](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/json-serializer@2.0.9...@jscad/json-serializer@2.0.10) (2021-11-07)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @jscad/json-serializer
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [2.0.9](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/json-serializer@2.0.8...@jscad/json-serializer@2.0.9) (2021-10-17)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @jscad/json-serializer
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
6
38
|
## [2.0.8](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/json-serializer@2.0.7...@jscad/json-serializer@2.0.8) (2021-10-04)
|
|
7
39
|
|
|
8
40
|
**Note:** Version bump only for package @jscad/json-serializer
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jscad/json-serializer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
4
4
|
"description": "JSON Serializer for JSCAD",
|
|
5
5
|
"repository": "https://github.com/jscad/OpenJSCAD.org",
|
|
6
6
|
"main": "index.js",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
],
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@jscad/modeling": "2.
|
|
30
|
+
"@jscad/modeling": "2.7.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"ava": "3.15.0",
|
|
34
34
|
"nyc": "15.1.0"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "c8ac21281a7acf5a5575b940c18353c598ffa1a4"
|
|
37
37
|
}
|
|
@@ -21,7 +21,7 @@ test('3D Geometry to JSON', (t) => {
|
|
|
21
21
|
t.is(countOf('transforms', obs1[0]), 1)
|
|
22
22
|
t.is(countOf('[', obs1[0]), 33)
|
|
23
23
|
t.is(countOf(']', obs1[0]), 33)
|
|
24
|
-
t.is(countOf(',', obs1[0]),
|
|
24
|
+
t.is(countOf(',', obs1[0]), 87)
|
|
25
25
|
|
|
26
26
|
const geom2 = primitives.sphere({ segments: 12 })
|
|
27
27
|
const obs2 = serialize({}, geom2)
|
|
@@ -29,12 +29,12 @@ test('3D Geometry to JSON', (t) => {
|
|
|
29
29
|
t.is(countOf('transforms', obs2[0]), 1)
|
|
30
30
|
t.is(countOf('[', obs2[0]), 339)
|
|
31
31
|
t.is(countOf(']', obs2[0]), 339)
|
|
32
|
-
t.is(countOf(',', obs2[0]),
|
|
32
|
+
t.is(countOf(',', obs2[0]), 807)
|
|
33
33
|
|
|
34
34
|
const obs3 = serialize({}, geom1, geom2, ['hello', 'goodbye'])
|
|
35
35
|
t.is(countOf('polygons', obs3[0]), 2)
|
|
36
36
|
t.is(countOf('transforms', obs3[0]), 2)
|
|
37
37
|
t.is(countOf('[', obs3[0]), 371)
|
|
38
38
|
t.is(countOf(']', obs3[0]), 371)
|
|
39
|
-
t.is(countOf(',', obs3[0]),
|
|
39
|
+
t.is(countOf(',', obs3[0]), 897)
|
|
40
40
|
})
|