Skip to content

Commit af0a0dc

Browse files
author
Scott Hardy
committed
update deno@1.7.1, change biulds to us v1.x, removed deno install from buildscript, deno fmt with new rules
1 parent bf27cd0 commit af0a0dc

5 files changed

Lines changed: 11 additions & 13 deletions

File tree

.github/workflows/scripts/build.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ fi
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-
1915
mkdir dist
2016

2117
deno 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
3632
cd ../examples/node
3733

3834
npm ci
35+
3936
npm ln ../../dist
4037

4138
npm test

.github/workflows/ts_serialize_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
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:

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ and this project adheres to
3434
### Added
3535

3636
- docs for @SerializeProperty short cut functions
37-
- new `strategy/utils.ts` exposing `getNewSerializable(type)` for custom decorators
37+
- new `strategy/utils.ts` exposing `getNewSerializable(type)` for custom
38+
decorators
3839
- fixes #100
3940
- fixes #105
4041
- fixes #99

benchmarks/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Benchmarks
22

3-
To run use `$ deno test -- --benchmark`
3+
To run use `$ deno test -- --benchmark`

docs/serializable.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,12 @@ assertEquals(
209209
## Short cutting the `@SerializeProperty` decorator
210210

211211
While `@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
220220
export function DeserializeAs<T>(

0 commit comments

Comments
 (0)