Releases: jasonkuhrt/alge
Releases · jasonkuhrt/alge
0.4.1
Fixes
- d3bf417 static types for multiple encoders
Improvements
- bf54451 tests: fix
Chores
- 6bb8c98 update pnpm to v7.9.3 (#104)
- 14a5908 update devdependencies (non-major) (#103)
- e31a4ce simplify example
- ca0764c update devdependencies (non-major) (#102)
- 3cdc0c1 update devdependencies (non-major) (#101)
- f565ead update dependency @types/semver to v7.3.12 (#100)
- c8be628 update dependency @types/semver to v7.3.11 (#99)
- 0541fc9 update devdependencies (non-major) to v5.33.0 (#98)
0.4.0
0.3.0
Features
-
52d97b1 pattern matching (#92)
Here's a sneak peak:
const result = Alge.match(shape) .Circle({ radius: 13 }, () => `Got an unlucky circle!`) .Circle((circle) => `Got a circle of radius ${circle.radius}!`) .Square({ size: 13 }, () => `Got an unlucky square!`) .Square((square) => `Got a square of size ${square.size}!`) .done()
Read more details and examples In the docs.
Chores
0.2.0
BREAKING CHANGES
Features
- 91809c7 pass predefined zod object to ADT Builder
- 14784f6 can now pass predefined zod object (#91)
- 8e416bf respect zod defaults and use zod input validation (#90)
- a2fd165 data shorthand (#87)
- 9f04492 record shorthand (#86)
- 923a139 (breaking) rename variant & datum to record (#85)
Docs
0.1.1
0.1.0
BREAKING CHANGES
- 5ea597d dedicated chain method for schema
- e67578a rename create to data
- a3b8267 clean up main exports (#27)
- 689861f User Mistake on no variants & method rename (#7)
Features
- 11f9e6e custom codecs (#55)
- 678c7a6 esm support (#62)
- 4f34ce6 constructor defaults (#45)
- b110c86 compose datums into data variants
- 183f204 add datum builder
- 5ea597d (breaking) dedicated chain method for schema
- e67578a (breaking) rename create to data
- 97b22b4 Infer<typeof ...> type utility (#28)
- ff6c694 give decode access to schema (#25)
- 73f728e decodeOrThrow codec method (#22)
- cd9cfea adt-level codec
- 501a315 variant extend method
- 6346264 allow decode to fail
- 47d1d6d implement adt level zod schema
- 1afc828 variant codecs
- 11571eb allow no constructor input on optional schema
- 05c5f38 strict is() predicate method
- c5e771f variant method is$
- 3292c43 add variant method
create
(#16) - 559b91d variant names are dynamically and statically available (#9)
- dc8b315 statically check for premature .done() calls
- 689861f (breaking) User Mistake on no variants & method rename (#7)
- 2b20b29 initial api (#4)
Fixes
- 938b516 remove expect-error directives now that TS is smarter (#53)
- 737ae65 lock file update
- 150a25a lock file update
- b280f18 lock file update
- 2a1746b restore ci to normal
- 5fcf6d2 try using dripip gh action
- e027c79 test ci fix 3
- d8631d6 test ci fix 2
- fd1b4b1 test ci fix
- 6630064 ci publishing secret
Improvements
- d1e50da deps: update dependency remeda to v1 (#73)
- 27c0d08 deps: update dependency remeda to ^0.2.0 (#72)
- c4c6d43 refactor: directory structures
- af18ab5 refactor: symbol under internals
- 5265d09 refactor: builder types in types dir
- 7fd348e refactor: controller types
- 6c8b6c2 refactor: move data tests to tests dir
- cf7f267 refactor: reorganize internal types
- 667cdb9 refactor: data builder reuses datum builder (#52)
- 6bca6ad deps: update dependency remeda to ^0.0.35 (#39)
- 13ec351 deps: update dependency remeda to ^0.0.34 (#36)
- a0bb168 deps: update to latest
- 5f71dc1 refactor: removed unused parse code
- 7017701 refactor: remove unused import
- a3b8267 (breaking) improve: clean up main exports (#27)
- af0081d tests: cover more code
- c860bcc "chore: initial commit"
Chores
- ceece12 refactor
- 68fdaca trigger run
- 4b23021 trigger run
- 0f9170a trigger run
- 3457674 restore test run
- 70c4f0a debug
- 456b07e debug
- b12cb93 debug
- 85c3597 debug
- bdd44f5 debug
- 4afe317 debug
- f97e543 debug
- eeed8e7 run corepack
- ef731d0 refactor
- bccb0a4 fix warnings
- 7cbc173 try fix
- 28bd364 specify pnpm action ver
- c262421 use pnpm gh action
- 65c4226 enable corepack
- e5f7150 switch to pnpm
- 1e83766 update dependency jest-watch-typeahead to v2 (#70)
- 52cb0bd update yarn to v3.2.2 (#71)
- 4aed8a1 update devdependencies (non-major) (#69)
- 91356db update dependency @swc/core to v1.2.210 (#68)
- d5dd830 update devdependencies (non-major) (#67)
- d5e9977 update dependency @swc/core to v1.2.205 (#66)
- e6790ba update dependency @types/jest to v28.1.3 (#65)
- f5c963e update devdependencies (non-major) to v5.29.0 (#64)
- 5fc6689 pin dependency @tsconfig/node16 to 1.0.3 (#63)
- 65d9ac7 update devdependencies (non-major) (#61)
- 768daa1 update dependency @types/jest to v28.1.2 (#60)
- 8471bf2 update devdependencies (non-major) (#59)
- 4be34ac update devdependencies (non-major) (#58)
- a111c4f update dependency @swc/core to v1.2.203 (#57)
- 2f4d174 update devdependencies (non-major) (#56)
- 1ae88d0 update dependency @swc/core to v1.2.198 (#54)
- 81d92e4 update devdependencies (non-major) to v28.1.1 (#51)
- 6501dca update devdependencies (non-major) to v5.27.1 (#50)
- cb3d51b update dependency @swc/core to v1.2.197 (#49)
- 61eae4c update dependency @types/jest to v28.1.1 (#48)
- d1bab5e update devdependencies (non-major) (#44)
- 2d7f12f update dependency ts-jest to v28.0.4 (#43)
- ee364d0 update dependency @types/jest to v28 (#42)
- e4bc7ff update dependency @types/jest to v27.5.2 (#41)
- f3379cd update devdependencies (non-major) (#40)
- dca49db update devdependencies (non-major) (#38)
- baefe04 update devdependencies (non-major) (#37)
- 668aa8f update devdependencies (major) (major) (#29)
- 1f7a446 update devdependencies (non-major) (#35)
- 8bca531 update devdependencies (non-major) (#33)
- 00315c9 update yarn to v3.2.1 (#34)
- 537a259 update dependency @swc/core to v1.2.182 (#32)
- 0199266 update devdependencies (non-major) (#31)
- 961ee09 simplify github token passing
- f31d52e update devdependencies (non-major) (#30)
- 0af161c allow importing naturally from ~/
- ae8f9e2 pin dependencies (#26)
- 077f01d correctly enforce backtick formatting
- 9717c4e centralize setup steps (#24)
- ba32c17 centralize test job (#23)
- 954fc0a update devdependencies (non-major) (#21)
- e7d6aa1 update devdependencies (non-major) (#19)
- 210dda3 pin dependency eslint to 8.13.0 (#20)
- bdf7fed mention new example
- c009aea add example
- a95ce43 update dependency @swc/core to v1.2.164 (#17)
- 41e083a show installation
- c5d7059 update actions/checkout action to v3 (#13)
- 427c79d update actions/setup-node action to v3 (#12)
- fa21f2d pin dependency eslint-plugin-codegen to 0.16.1 (#18)
- ba43ff2 trigger ci
- f7272c1 update readme
- 485f511 update devdependencies (non-major) to v5.18.0 (#15)
- af6dd8b update devdependencies (non-major) (#14)
- 640be9a update dependency tsd to v0.20.0 (#11)
- 1a6be5e use action from prisma org
- e97c15f speed up trunk ci
- 901c06a update devdependencies (non-major) (#8)
- 801b90f refactor release work
- fd0516c update actions/setup-node action to v3 (#5)
- 0255a71 fix ci to use yarn 2 (#6)
- 78be7e0 pin dependency @jest/types to 27.5.1 (#1)
- 433cd69 update actions/checkout action to v3 (#2)