github lukeed/worktop v0.4.0

latest releases: v0.8.0-next.18, v0.8.0-next.16, v0.8.0-next.17...
3 years ago

Breaking

  • (router): Allow find() to return void: f6cadf3

Features

  • Add worktop/cors module (#1, #22): c2e83e7, 9482d6a, 9eee191

  • Add compose utility to main worktop module (#23): b7103b7, c5d49c1
    Note: Updated #7 to add explicit type-safety at later date.

  • Add named UID and UUID types from worktop/utils module (#21): dc600c3, 35c2a1b
    More explicit type interfaces by default, while still satisfying string types.

  • Allow Router.prepare function to return Response instance directly: 50383e8
    This makes it a true Handler signature.

Patches

  • (response): Make res.send stringify non-obj/str data to String: dd597db
    Otherwise TextEncoder throws when determining byteLength

  • Add __PURE__ directives for better tree-shaking: ed4159a, 1fa1b5f

Examples

Chores

  • (examples) Update playground links: 0326044
  • Squash /bin devDependencies into root package.json file: 54663a1

Don't miss a new worktop release

NewReleases is sending notifications on new releases.