File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212
1313.github/workflows/scripts/npm_release_files/create_npm_package_file_test.sh
1414
15- curl -L https://deno.land/x/install/install.sh | sh -s " v1.6.3"
16-
17- export PATH=" $HOME /.deno/bin:$PATH "
18-
1915mkdir dist
2016
2117deno run -r --unstable --allow-read --allow-run --no-check ./.github/workflows/scripts/npm_release_files/babel_ts_serialize.ts > dist/ts_serialize.js
@@ -36,6 +32,7 @@ cd dist
3632cd ../examples/node
3733
3834npm ci
35+
3936npm ln ../../dist
4037
4138npm test
Original file line number Diff line number Diff line change 1212
1313 strategy :
1414 matrix :
15- deno : ["v1.6. x"]
15+ deno : ["v1.x"]
1616 os : [macOS-latest, windows-latest, ubuntu-latest]
1717
1818 steps :
4444
4545 strategy :
4646 matrix :
47- deno : ["v1.6. x"]
47+ deno : ["v1.x"]
4848
4949 steps :
5050 - name : Get github tag
Original file line number Diff line number Diff line change 1717
1818 strategy :
1919 matrix :
20- deno : ["v1.6. x"]
20+ deno : ["v1.x"]
2121 os : [macOS-latest, windows-latest, ubuntu-latest]
2222
2323 steps :
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ and this project adheres to
1212
1313- missing copyright statement
1414- basic benchmark tests
15+ - update deno@1.7.1, std@0.85.0
16+ - change builds to use v1.x
17+ - removed deno install from build script
18+ - deno fmt with new rules
1519
1620## [ v1.2.0] - 2021-01-22
1721
@@ -34,7 +38,8 @@ and this project adheres to
3438### Added
3539
3640- docs for @SerializeProperty short cut functions
37- - new ` strategy/utils.ts ` exposing ` getNewSerializable(type) ` for custom decorators
41+ - new ` strategy/utils.ts ` exposing ` getNewSerializable(type) ` for custom
42+ decorators
3843- fixes #100
3944- fixes #105
4045- fixes #99
Original file line number Diff line number Diff line change 11# Benchmarks
22
3- To run use ` $ deno test -- --benchmark `
3+ To run use ` $ deno test -- --benchmark `
Original file line number Diff line number Diff line change @@ -209,12 +209,12 @@ assertEquals(
209209## Short cutting the ` @SerializeProperty ` decorator
210210
211211While ` @SerializeProperty ` is handy with to and from JSON strategies, it can
212- still be verbose to declare the strategies for each property. You can define your
213- owndecorator functions to wrap ` @SerializeProperty ` and provide the ` toJSONStrategy `
214- and ` fromJSONStrategy ` . An example short cut is providing a ` type ` to use with
215- ` toSerializable ` . ` SerializableConstructor ` and ` getNewSerializable ` are provided
216- to allow a raw serializable type or a function that returns a constructed serializable
217- type enabling constructor arguments:
212+ still be verbose to declare the strategies for each property. You can define
213+ your owndecorator functions to wrap ` @SerializeProperty ` and provide the
214+ ` toJSONStrategy ` and ` fromJSONStrategy ` . An example short cut is providing a
215+ ` type ` to use with ` toSerializable ` . ` SerializableConstructor ` and
216+ ` getNewSerializable ` are provided to allow a raw serializable type or a function
217+ that returns a constructed serializable type enabling constructor arguments:
218218
219219``` ts
220220export function DeserializeAs<T >(
Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ export {
1010 toSerializable ,
1111 TransformKey ,
1212} from "https://deno.land/x/ts_serialize/mod.ts" ;
13- export { readJson } from "https://deno.land/std@0.84 .0/fs/mod.ts" ;
13+ export { readJson } from "https://deno.land/std@0.85 .0/fs/mod.ts" ;
Original file line number Diff line number Diff line change 77 assertEquals ,
88 assertStrictEquals ,
99 fail ,
10- } from "https://deno.land/std@0.84 .0/testing/asserts.ts" ;
10+ } from "https://deno.land/std@0.85 .0/testing/asserts.ts" ;
You can’t perform that action at this time.
0 commit comments