Astro 7.4.5

7.4.5
Changed 2
  • Makes rendering of string tag names stricter and consistent across `.astro` dynamic tags, JSX, and MDX, so only the leading part of the string that is a valid element name is rendered and characters such as `/` or `=` can no longer change the generated markup behavior changed · inferred, marked in the notes below
  • A string tag name that does not start with a valid element name (for example `'!--'` or `''`) now throws an error instead of producing invalid HTML
Fixed 3
  • Fixes `astro dev status` and other background server commands deleting the lock file of a running dev or preview server when run from a sandbox or as another user that is not permitted to signal its process
  • Fixes `import.meta.env` values containing `$` sequences (such as `$$` or `$&`) being corrupted in `astro build` when server code reads the `import.meta.env` object directly, for example with `const { MY_SECRET } = import.meta.env`
  • Fixes request paths with invalid percent-encoding (e.g. `/%C0%AF` or a bare `%`) being logged as an `Invalid URL encoding` error and routed with the undecoded path, and these requests now return a `400`, the same as a path that is encoded too many times behavior changed · inferred, marked in the notes below

2 changes to check, marked in the notes below

From Astro

Patch Changes
  • #18558 fac3c50 Thanks @astro-factory! - Fixes astro dev status and other background server commands deleting the lock file of a running dev or preview server when run from a sandbox or as another user that is not permitted to signal its process

  • #18559 10dae2f Thanks @astro-factory! - Fixes import.meta.env values containing $ sequences (such as $$ or $&) being corrupted in astro build when server code reads the import.meta.env object directly, for example with const { MY_SECRET } = import.meta.env

  • #18544 e3bec3d Thanks @skezo! - Fixes request paths with invalid percent-encoding (e.g. /%C0%AF or a bare %) being logged as an Invalid URL encoding error and routed with the undecoded path. These requests now return a 400, the same as a path that is encoded too many times. behavior changed · inferred

  • #18520 e023aba Thanks @matthewp! - Makes rendering of string tag names stricter and consistent across .astro dynamic tags, JSX, and MDX. Only the leading part of the string that is a valid element name is rendered, so characters such as / or = can no longer change the generated markup. A string that does not start with a valid element name (for example '!--' or '') now throws an error instead of producing invalid HTML. behavior changed · inferred

View original

Upgraded? How did it go?

Discussion