Skip to content

Releases: lukeed/polka

v1.0.0-next.28

19 Sep 14:22
Compare
Choose a tag to compare
v1.0.0-next.28 Pre-release
Pre-release

Patches

  • Removes node: prefix from all CommonJS modules (#215).
    You will get these files via a require statement.

    The ESM version of each package still has the node: prefix. You will only get this version if you are using import syntax.
    The node: prefix was added in 16.x and back-ported to 14.18 (docs), so ensure you're on at least one of those versions. While native ESM was technically added in 12.x, it's been end-of-life (including security) for ~3 years and its version of "ESM" is significantly broken/different than today's ESM... 12.x was the first (experimental) ESM release.

Chores

  • Add new build script to generate CommonJS modules w/ node: prefix removed: 5ee202f, 228253c
  • Include build step in CI for size logging: 05dae70

Full Changelog: v1.0.0-next.27...v1.0.0-next.28

v1.0.0-next.27

19 Sep 14:16
Compare
Choose a tag to compare
v1.0.0-next.27 Pre-release
Pre-release

Features

Chores

What's Changed


Full Changelog: v1.0.0-next.26...v1.0.0-next.27

v1.0.0-next.26

19 Sep 14:14
Compare
Choose a tag to compare
v1.0.0-next.26 Pre-release
Pre-release

Patches

  • (compression): Use RegExp.exec instead of RegExp.match for performance (#210): 822c80a
    Thank you @bluwy~!

Chores


Full Changelog: v1.0.0-next.25...v1.0.0-next.26

v1.0.0-next.25

07 Mar 22:40
Compare
Choose a tag to compare
v1.0.0-next.25 Pre-release
Pre-release

NEW

  • Add @polka/compression package! (#148): a2105e0, 7745eb4
    A lightweight compression replacement, with opt-in Brotli support.
    Thank you @developit! 🙌

Chores

  • Add a licenses.dev badge to README files: 5ff616a
    This service recursively analyzes entire dependency graphs to ensure that a package (or your project) is using permissive licenses. For example, here's a results table for polka@next and a larger astro example.

Full Changelog: v1.0.0-next.24...v1.0.0-next.25

v1.0.0-next.24

04 Dec 16:31
Compare
Choose a tag to compare
v1.0.0-next.24 Pre-release
Pre-release

Features

Patches


Full Changelog: v1.0.0-next.22...v1.0.0-next.24

v1.0.0-next.22

01 Oct 15:12
Compare
Choose a tag to compare
v1.0.0-next.22 Pre-release
Pre-release

Patches

  • (polka) Ensure error.status is numeric before assigning as status code (#178): 8448ac0
    Thank you @lovasoa

  • (polka) Ensure error.status is 3-digit status code: 561558b

v1.0.0-next.21

01 Oct 13:24
Compare
Choose a tag to compare
v1.0.0-next.21 Pre-release
Pre-release

Breaking

  • (polka) Remove code property support for next() errors: f95a5b4
    Previously any errors or custom error-objects could use the code property to set the response status code. However, this could pose a problem with native Error types that set an error code (eg, "ENOENT") which is an invalid status code.

    Now you must use the status property, which was always supported, but took a backseat to code's existence. Express also supports the status property.
    next({
    -- code: 422,
    ++ status: 422,
       message: 'Invalid content',
    });

Chores

  • (@polka/url) Accomodate an updated error message in test expectant: d30d448

v1.0.0-next.20

28 Aug 00:06
Compare
Choose a tag to compare
v1.0.0-next.20 Pre-release
Pre-release

Breaking

  • (@polka/url): Remove toDecode parameter (#175): e45fe88
    Apparently no one was using it except for me 😆 so I removed it as it was causing cache/mutation conflicts in rare cases downstream.

v1.0.0-next.17

14 Aug 00:36
Compare
Choose a tag to compare
v1.0.0-next.17 Pre-release
Pre-release

Patches

  • (@polka/url): Ensure toDecode value is considered during req._parsedUrl cache match: f64b4bb
    For example, if you parse a URL without decoding it, that previous result should not be reused if you call parse again w/ toDecode set to true this time. Should be true for the reverse situation too.

v1.0.0-next.16

13 Aug 22:14
Compare
Choose a tag to compare
v1.0.0-next.16 Pre-release
Pre-release

Breaking

  • No longer automatically decodes req.url and req.path values anymore (#172): 6ef32a6, 363e1f6
    Previously, these properties had already passed through decodeURIComponent, which could affect Polka's own routing (#142) or external middleware that always expected req.path and/or req.url to remain percent-encoded.

    However, all req.params values are still decoded!

    This change aligns Polka with the default Express decoding behavior.

Chores

  • (url): Mention toDecode parameter in @polka/url README (#168): 363e1f6