Skip to content

Commit 1725833

Browse files
author
Scott Hardy
authored
Merge pull request #116 from GameBridgeAI/deno_build_update
v1.2.1-rc
2 parents bf27cd0 + 9da0f87 commit 1725833

8 files changed

Lines changed: 19 additions & 17 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_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
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:
@@ -44,7 +44,7 @@ jobs:
4444

4545
strategy:
4646
matrix:
47-
deno: ["v1.6.x"]
47+
deno: ["v1.x"]
4848

4949
steps:
5050
- name: Get github tag

.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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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

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>(

examples/deno/deps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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";

test_deps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ export {
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";

0 commit comments

Comments
 (0)