Skip to content

Releases: lukeed/cfw

v0.3.0

04 Sep 17:46
Compare
Choose a tag to compare

Features

  • Add config.cron support (#10): 146d953
    You may now define CRON triggers via your cfw configuration file; example JSON below:

    {
      "name": "hello",
      "subdomain": true,
      "profile": "personal",
      "module": true,
      "cron": [
        "*/15 * * * *",
        "*/45 * * * *"
      ]
    }

Patches

  • Avoid the fs.rmdir deprecation message on Node 16+: ee047a5

Chores

v0.2.0

15 Aug 00:33
Compare
Choose a tag to compare

Features

  • Add config.subdomain option for workers.dev support (#7, #9): 3a26e6a, ae4ccd0
    Include subdomain: true in your cfw configuration file to deploy to your account's subdomain.

  • Add config.module option for deploying Module Worker: 6ffc62a
    Include module: true in your cfw configuration file to deploy a Module Worker.

  • Add config.usage option for Worker's Usage Model: 557a000
    Relies on account default; valid options are "bundled" and "unbound"

  • Minify build output by default: 6f19b63
    Disable via the --no-minify argument.

  • Upgrade to [email protected] version: 039d5ac, 57176e9

Patches

  • (types) Make Globals type more strict w/ string-inference: ef16501

Chores

v0.1.0

25 Mar 20:34
Compare
Choose a tag to compare

Breaking

  • Now uses esbuild instead of rollup for bundling: 7015697, f60251d
    This only affects the config.build function hook, if you had been using it.

  • Now requires Node 12.10+ runtime: 7e6d20d, b895c12
    Previously was only a Node 10.x requirement

  • Only ship cfw as an ESM file: ed0a4b7, 09c49ab
    Because Node 12.10+ is now required, there's no need to ship a CommonJS runtime (or both)

Features

  • Support cfw.cjs and cfw.mjs config files: 62f93f4
  • Add TypeScript definition file for Config interface: b6999a8
  • Throw build error if config.build() produces invalid configuration: 37a839a

Chores

  • (build) Update "build errors" message: 08c9945
  • (utils) use Set for worker argv filters: b68a41f
  • (utils) Merge exists & assert helpers: 402c8f4
  • Bump typescript version: d0e4ae7
  • Inject $$VERSION$$ at build time: 7945050
  • Convert bin.js to TypeScript main entry: bf06dec
  • Replace premove with fs.rmdir native: b895c12