Patch Changes
-
#1731
16f051d3
Thanks @CarmenPopoviciu! - Add custom _routes.json support for Pages Functions projects -
#1762
23f89216
Thanks @petebacondarwin! - Use getBasePath() when trying to specify paths to files relative to the
base of the Wrangler package directory rather than trying to compute the
path from Node.js constants like **dirname and **filename. This is
because the act of bundling the source code can move the file that contains
these constants around potentially breaking the relative path to the desired files.Fixes #1755
-
#1763
75f3ae82
Thanks @CarmenPopoviciu! - Adddescription
field to _routes.jsonWhen generating routes for Functions projects, let's add a description
so we know what wrangler version generated this config -
#1538
2c9caf74
Thanks @rozenmd! - chore: refactor wrangler.dev API to not need React/InkPrior to this change,
wrangler.unstable_dev()
would only support running one instance of wrangler at a time, as Ink only lets you render one instance of React. This resulted in test failures in CI.This change creates pure JS/TS versions of these React hooks:
- useEsbuild
- useLocalWorker
- useCustomBuild
- useTmpDir
As a side-effect of removing React, tests should run faster in CI.
-
#1775
8163b8cf
Thanks @CarmenPopoviciu! - Add unit tests forwrangler pages publish