From 93a45a5e32ad1ebddba6283627551830c1e621ec Mon Sep 17 00:00:00 2001 From: Alex / KATT Date: Sat, 30 Sep 2023 22:08:24 +0200 Subject: [PATCH] fix: `serializer` -> `serialize` (#4) --- CHANGELOG.md | 12 +++++++----- src/tson.ts | 2 +- src/types.test.ts | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 70b9e88b..3cd70e21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,16 +1,18 @@ - - # [0.3.0](https://github.com/KATT/tupleson/compare/0.2.0...0.3.0) (2023-09-30) - ### Features -* add readme ([#3](https://github.com/KATT/tupleson/issues/3)) ([b4e5ed6](https://github.com/KATT/tupleson/commit/b4e5ed679df7b56f901da0b937d2ba44d60ae356)) +- add readme ([#3](https://github.com/KATT/tupleson/issues/3)) ([b4e5ed6](https://github.com/KATT/tupleson/commit/b4e5ed679df7b56f901da0b937d2ba44d60ae356)) # 0.2.0 (2023-09-30) ### Features - add `createTupleson` fn and more ([#2](https://github.com/KATT/tupleson/issues/2)) ([72910ae](https://github.com/KATT/tupleson/commit/72910ae35c55581b860207e8e45ac098f5bef6ad)) + +# 0.1.0 (2023-09-30) + +### Features + - initial version ([#1](https://github.com/KATT/tupleson/issues/1)) ([ccce25b](https://github.com/KATT/tupleson/commit/ccce25b6a039cf2e5c1a774c1ab022f0946ca8d5)) -- initialized repo ✨ ([c9e92a4](https://github.com/KATT/tupleson/commit/c9e92a42c97a8bc1ee3a9214f65626425c8598e3)) \ No newline at end of file +- initialized repo ✨ ([c9e92a4](https://github.com/KATT/tupleson/commit/c9e92a42c97a8bc1ee3a9214f65626425c8598e3)) diff --git a/src/tson.ts b/src/tson.ts index 158f8812..421cd69b 100644 --- a/src/tson.ts +++ b/src/tson.ts @@ -189,6 +189,6 @@ function mapOrReturn( export const createTupleson = (opts: TsonOptions) => ({ deserialize: tsonDeserializer(opts), parse: tsonParser(opts), - serializer: tsonSerializer(opts), + serialize: tsonSerializer(opts), stringify: tsonStringifier(opts), }); diff --git a/src/types.test.ts b/src/types.test.ts index 5bfd9a8b..a8a8d274 100644 --- a/src/types.test.ts +++ b/src/types.test.ts @@ -18,7 +18,7 @@ test("types", () => { } { - const serialized = t.serializer(expected); + const serialized = t.serialize(expected); // ^? const deserialized = t.deserialize(serialized); // ^?