0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00
astro/.changeset
Ben Holmes c0c509b6bf
Actions experimental release (#10858)
* feat: port astro-actions poc

* feat: basic blog example

* feat: basic validationError class

* feat: standard error types and safe() wrapper

* refactor: move enhanceProps to astro:actions

* fix: throw internal server errors

* chore: refine enhance: true error message

* fix: remove FormData fallback from route

* refactor: clarify what enhance: true allows

* feat: progressively enhanced comments

* chore: changeset

* refactor: enhance -> acceptFormData

* wip: migrate actions to core

* feat: working actions demo from astro core!

* chore: changeset

* chore: delete old changeset

* fix: Function type lint

* refactor: expose defineAction from `astro:actions`

* fix: add null check to experimental

* fix: export `types/actions.d.ts`

* feat: more robust form data parsing

* feat: support formData from rpc call

* feat: remove acceptFormData flag requirement

* feat: add actions.d.ts type reference on startup

* refactor: actionNameProps -> getNameProps

* fix: actions type import

* chore: expose zod from `astro:actions`

* fix: zod export path

* feat: add explicit `accept` property

* Use zod package instead of relative path outside of src

* feat: clean up error throwing and handling flow

* fix: make `accept` optional

* docs: beef up actions experimental docs

* fix: defineAction type narrowing on `accept`

* fix: bad `getNameProps()` arg type

* refactor: move to single `error` object + `isInputError()` util

* fix: move res.json() parse to avoid double parse

* feat: support async zod schemas

* feat: serialize and expose zod properties on input error

* feat: test input error in comment example

* fix: remove ZodError import

* fix: add actions-module to files export

* fix: use workspace for test pkg versions

* refactor: default export -> server export

* fix: type inference for json vs. form

* refactor: accept form -> defineFormAction

* refactor: better callSafely signature

* feat: block action calls from the server with RFC link

* feat: move getActionResult to global

* refactor: getNameProps -> getActionProps

* refactor: body.toString()

* edit: capitAl

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* edit: highlight `actions`

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* edit: add actions file name

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* edit: not you can. You DO

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* edit: declare with feeling

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* edit: clarify what the `handler` does

* edit: schema -> input

* edit: add FormData mdn reference

* edit: add defineFormAction() explainer

* refactor: inline getDotAstroTypeRefs

* edit: yeah yeah maybe

* fix: existsSync test mock

* refactor: use callSafely in middleware

* test: upgradeFormData()

* chore: stray console log

* refactor: extract helper functions

* fix: include status in error response

* fix: return `undefined` when there's no action result

* fix: content-type

* test: e2e like button action

* test: comment e2e

* fix: existsSync mock for other sync test

* test: action dev server raw fetch

* test: build preview

* chore: fix lock

* fix: add dotAstroDir to existsSync

* chore: slim down e2e fixture

* chore: remove unneeded disabled test

* refactor: better api context error

* fix: return `false` for envDts

* refactor: defineFormAction -> defineAction with accept

* fix: check FormData on getActionProps

* edit: uppercase

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* fix: add switch default for 500

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* fix: add `toLowerCase()` on content-type check

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* chore: use VIRTUAL_MODULE_ID for plugin

* fix: remove incorrect ts-ignore

* chore: remove unneeded POST method check

* refactor: route callSafely

* refactor: error switch case to map

* chore: add link to trpc error code table

* fix: add readable error on failed json.stringify

* refactor: add param -> callerParam with comment

* feat: always return safe from getActionResult()

* refactor: move actions module to templates/

* refactor: remove unneeded existsSync on dotAstro

* fix: hasContentType util for toLowerCase()

* chore: comment on 415 code

* refactor: upgradeFormData -> formDataToObj

* fix: avoid leaking stack in production

* refactor: defineProperty with write false

* fix: revert package.json back to spaces

* edit: use config docs for changeset

* refactor: stringifiedActionsPath -> stringifiedActionsImport

* fix: avoid double-handling for route

* fix: support zero arg actions

* refactor: move actionHandler to helper fn

* fix: restore mdast deps

* docs: add `output` to config

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: bholmesdev <bholmesdev@gmail.com>
2024-05-08 07:53:17 -04:00
..
blue-geese-visit.md MDX integration v3 (#10935) 2024-05-08 10:25:27 +01:00
chilly-items-help.md MDX integration v3 (#10935) 2024-05-08 10:25:27 +01:00
config.json
forty-wolves-turn.md fix: don't include port twice from x-forwarded-host and x-forwarded-port headers (#10917) 2024-05-03 15:01:25 -04:00
fresh-masks-agree.md MDX integration v3 (#10935) 2024-05-08 10:25:27 +01:00
friendly-plants-leave.md MDX integration v3 (#10935) 2024-05-08 10:25:27 +01:00
great-turtles-greet.md fix(page-data): add key to allPages (#10625) 2024-05-08 11:33:19 +01:00
grumpy-pillows-develop.md Improve content collection styles and scripts build perf (#10959) 2024-05-08 10:24:47 +01:00
large-glasses-jam.md MDX integration v3 (#10935) 2024-05-08 10:25:27 +01:00
little-dryers-stare.md feat(preact): add support for devtools (#10938) 2024-05-03 15:21:37 -04:00
metal-crabs-applaud.md feat: Add new component to toolbar library (#10906) 2024-05-08 10:26:00 +01:00
nervous-waves-shop.md Support passing inline Astro config to getViteConfig() (#10963) 2024-05-08 11:19:54 +01:00
pink-ligers-share.md feat: rewriting (experimental) (#10867) 2024-05-08 10:26:31 +01:00
README.md
shaggy-moons-peel.md Actions experimental release (#10858) 2024-05-08 07:53:17 -04:00
short-phones-breathe.md Support React 19 (#10942) 2024-05-07 13:13:03 -04:00
slimy-cobras-end.md MDX integration v3 (#10935) 2024-05-08 10:25:27 +01:00
small-oranges-report.md MDX integration v3 (#10935) 2024-05-08 10:25:27 +01:00
smart-rats-mate.md MDX integration v3 (#10935) 2024-05-08 10:25:27 +01:00
spicy-keys-own.md Preserve content modules properly in cache (#10889) 2024-05-06 11:27:07 -04:00
strong-peaches-learn.md fix(astro): handle AstroUserError during sync and exports types (#10955) 2024-05-06 17:35:17 +02:00
sweet-goats-own.md MDX integration v3 (#10935) 2024-05-08 10:25:27 +01:00
tame-avocados-relax.md MDX integration v3 (#10935) 2024-05-08 10:25:27 +01:00
thin-rabbits-wait.md feat(vue): add support for devtools (#10929) 2024-05-06 16:02:06 +02:00
tough-numbers-build.md Import metric table from astro:db (#10947) 2024-05-06 22:02:54 +02:00
twelve-dolphins-roll.md feat: Add new component to toolbar library (#10906) 2024-05-08 10:26:00 +01:00
violet-snails-call.md MDX integration v3 (#10935) 2024-05-08 10:25:27 +01:00
young-chicken-exercise.md MDX integration v3 (#10935) 2024-05-08 10:25:27 +01:00

Changesets

Hello and welcome! This folder has been automatically generated by @changesets/cli, a build tool that works with multi-package repos, or single-package repos to help you version and publish your code. You can find the full documentation for it in our repository

We have a quick list of common questions to get you started engaging with this project in our documentation