Releases: lukeed/worktop
v0.8.0-next.18
Breaking
-
Changed matching behavior of optional wildcard routes (eg;
/books/*?): 0f4d4a6
Seeregexparam@3.0release notes for more info. -
Changed the
context.paramswildcard value key from"wild"to"*": d770b39
Seeregexparam@3.0release notes for more info.API.add('GET', '/foo/*', (req, context) => { -- let value = context.params.wild; ++ let value = context.params['*']; });
Full Changelog: v0.8.0-next.16...v0.8.0-next.18
v0.8.0-next.16
Patches
- Upgrade
mrmimeversion (#180): 8c5855c
Seemrmime@2.0release notes
Thank you @benmccann~!
Full Changelog: v0.8.0-next.15...v0.8.0-next.16
v0.8.0-next.15
Patches
- Add
typesconditions for"exports"map (#175): bdc0695 - fix(cfw): fix
structuredClonetypo (#163): 406f5e3
Thank you @leader22 - fix(cfw): add
structuredCloneandqueueMicrotasktypes: 4f251a4 - fix(cfw): add
HTMLRewritertypes: 1bb1e7e - fix(cfw): declare
Headers.getAllmethod signature: 3f8c224
Chores
Full Changelog: v0.8.0-next.14...v0.8.0-next.15
v0.8.0-next.14
Breaking
Patches
- (
worktop/cfw.kv): Ensure internalCacheentity keys are URL-friendly: d1f9d5c - (
worktop/cfw.kv): Accept type-argument inEntitydefinition: 6f47542
Chores
Full Changelog: v0.8.0-next.13...v0.8.0-next.14
v0.8.0-next.13
Features
Patches
-
(
worktop/cfw) Updaterequest.cftype definitions (#157): 2c1589b, 24e758d
Thank you @eugene1g -
(
worktop/cache) Only allow RFC7231 status codes to be cached (#143): a3fd957
Chores
- Use
bundt@nextfor building monorepo packages (#152): 42b8dc5, e7d537a - (WIP/DEFERRED) Contribute
Databaseclass fromworktop/cfw.durable(#148, #149): f402194, f9f6f10, 867322f
Thank you @eidam!
Full Changelog: v0.8.0-next.12...v0.8.0-next.13
v0.8.0-next.12
Patches
- (
worktop/cfw): Do not passctxparameter thru torundirectly: 235d800
v0.8.0-next.11
Features
- (
worktop/cfw): AddModule.Servicetype interface: 2f5dd4d
Definition provided for the Workers Services beta
v0.8.0-next.10
Breaking
IMPORTANT
There are several breaking changes in this release.
Going forward, worktop is a platform agnostic framework, offering a core set of modules that will work anywhere that supports the core set of Web APIs that are necessary. At time of this release, this includes Cloudflare Workers, Service Workers (web), and Deno. Adding Node.js support is planned for a near-future release.As part of this, worktop needed to rearrange — aka separate — the Cloudflare-specific methods & TypeScript interfaces away from the core modules and move them into namespaced submodules specific to Cloudflare. This pattern will be followed for other platforms with their own platform-specific types and/or behaviors, too.
For example, as shown below, the
worktop/kvmodule has been renamed toworktop/cfw.kvbecause it belongs to (and only works with) Cloudflare. Similarly, there's aworktop/wscore module, which includes shared WebSocket utility, but there are also thewoktop/deno.wsandworktop/cfw.wsmodules, which include implementations specific to Deno and Cloudflare, respectively.It is highly recommended you follow along #125, #132, #134, and #139 for more information and explanations.
-
(
worktop/cache): Generalizeworktop/cachemodule (#139): 985150b
Add acacheargument to thelookup,save, andsyncmethods.
Note: Existing users can useworktop/cfw.cachefor a drop-in replacement. -
(
worktop/ws): Move thelistenmethod & CF-specific types to the newworktop/cfw.wsmodule (#134): 504328d
Previously, theworktop/wsmodule had Cloudflare-specific information within it.
It's now general-purpose and all Cloudflare-specific contents have been moved to the (new)worktop/cfw.wsmodule. See #133 for more info -
Rename
worktop/kvtoworktop/cfw.kv: abf3d8a -
Rename
worktop/kv.assetstoworktop/cfw.kv.assets: 78ab152 -
Rename
worktop/durabletoworktop/cfw.durable: 92339d3 -
(
worktop/sw): Removedreplyandlisten; usestartinstead. -
(
worktop/cache): Removedreplyandlisten; usestartinstead. -
(
worktop/module): Deleted. Seeworktop/cfwinstead. -
(
worktop/ws): MoveWebSocketPairglobal type toworktop/cfwmodule: 9572f22 -
(
worktop): MoveCronEventtoworktop/cfwmodule: e3af56c -
(
worktop): MoveBindingstoworktop/cfwmodule: 88f7d93
Features
-
Adds Deno support via the new
worktop/denomodule: 5bae9a5
Offers astartexport which can run a worktopRouterin Deno Deploy or a standard Deno runtime. -
Add
worktop/deno.wsmodule: 91d8e73
A WebSocket module specifically for the Deno environment; see #133 -
Add
worktop/cfw.cachemodule (#139): 3f516de
A module for the Cache API specifically for the Cloudflare environment.
Patches
- (
worktop/sw): Ensurectx.waitUntilis forwarded: 61a558f
In Cloudflare environment, the previous...ctxdestructure hid thewaitUntil&passThroughmethods.
Full Changelog: v0.8.0-next.9...v0.8.0-next.10
v0.8.0-next.9
Patches
- (
durable): Correctstate.blockConcurrencyWhiletypes & usage (#116, #120 ): 1f9e34f
Thank you @ConProgramming~! - (
cache): Do not cache aResponsewith a101status code (#121): 9457785 - (
router): Mark thecontextparameter withinInitializeras optional (#120): ce6872b - (
cors) Removeoriginscope hoisting (#118): 88f0433
Chores
- Update the README and "kv-todos" examples (#111): 4d9f210
Thank you @itsmatteomanf~! - Bump
typescriptversion: 428a2d4
Full Changelog: v0.8.0-next.8...v0.8.0-next.9