Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actions experimental release #10858

Merged
merged 110 commits into from May 8, 2024
Merged

Actions experimental release #10858

merged 110 commits into from May 8, 2024

Commits on May 8, 2024

  1. feat: port astro-actions poc

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    26f4c53 View commit details
    Browse the repository at this point in the history
  2. feat: basic blog example

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    af6a962 View commit details
    Browse the repository at this point in the history
  3. feat: basic validationError class

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    0a99d69 View commit details
    Browse the repository at this point in the history
  4. feat: standard error types and safe() wrapper

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    056ecd6 View commit details
    Browse the repository at this point in the history
  5. refactor: move enhanceProps to astro:actions

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    eff1c18 View commit details
    Browse the repository at this point in the history
  6. fix: throw internal server errors

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    ed137a3 View commit details
    Browse the repository at this point in the history
  7. chore: refine enhance: true error message

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    b3f654d View commit details
    Browse the repository at this point in the history
  8. fix: remove FormData fallback from route

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    7c65ccc View commit details
    Browse the repository at this point in the history
  9. refactor: clarify what enhance: true allows

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    2aee27b View commit details
    Browse the repository at this point in the history
  10. feat: progressively enhanced comments

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    953d9cd View commit details
    Browse the repository at this point in the history
  11. chore: changeset

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    47a8f61 View commit details
    Browse the repository at this point in the history
  12. refactor: enhance -> acceptFormData

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    8d36b63 View commit details
    Browse the repository at this point in the history
  13. wip: migrate actions to core

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    9a00ba2 View commit details
    Browse the repository at this point in the history
  14. feat: working actions demo from astro core!

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    e867bac View commit details
    Browse the repository at this point in the history
  15. chore: changeset

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    43f4403 View commit details
    Browse the repository at this point in the history
  16. chore: delete old changeset

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    5590280 View commit details
    Browse the repository at this point in the history
  17. fix: Function type lint

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    bbf1bf7 View commit details
    Browse the repository at this point in the history
  18. refactor: expose defineAction from astro:actions

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    7d94c48 View commit details
    Browse the repository at this point in the history
  19. fix: add null check to experimental

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    5dde337 View commit details
    Browse the repository at this point in the history
  20. fix: export types/actions.d.ts

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    045d615 View commit details
    Browse the repository at this point in the history
  21. feat: more robust form data parsing

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    d52488e View commit details
    Browse the repository at this point in the history
  22. feat: support formData from rpc call

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    1284383 View commit details
    Browse the repository at this point in the history
  23. feat: remove acceptFormData flag requirement

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    d8e52bf View commit details
    Browse the repository at this point in the history
  24. feat: add actions.d.ts type reference on startup

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    6625501 View commit details
    Browse the repository at this point in the history
  25. refactor: actionNameProps -> getNameProps

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    96d0a39 View commit details
    Browse the repository at this point in the history
  26. fix: actions type import

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    141e04a View commit details
    Browse the repository at this point in the history
  27. chore: expose zod from astro:actions

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    4074356 View commit details
    Browse the repository at this point in the history
  28. fix: zod export path

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    179d523 View commit details
    Browse the repository at this point in the history
  29. feat: add explicit accept property

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    8dd2524 View commit details
    Browse the repository at this point in the history
  30. Use zod package instead of relative path outside of src

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    cd8efd3 View commit details
    Browse the repository at this point in the history
  31. feat: clean up error throwing and handling flow

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    cb2bd8b View commit details
    Browse the repository at this point in the history
  32. fix: make accept optional

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    b1f927f View commit details
    Browse the repository at this point in the history
  33. docs: beef up actions experimental docs

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    542af7b View commit details
    Browse the repository at this point in the history
  34. fix: defineAction type narrowing on accept

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    a308c8d View commit details
    Browse the repository at this point in the history
  35. fix: bad getNameProps() arg type

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    92b82b2 View commit details
    Browse the repository at this point in the history
  36. refactor: move to single error object + isInputError() util

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    feab5e1 View commit details
    Browse the repository at this point in the history
  37. fix: move res.json() parse to avoid double parse

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    63b1892 View commit details
    Browse the repository at this point in the history
  38. feat: support async zod schemas

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    012085b View commit details
    Browse the repository at this point in the history
  39. feat: serialize and expose zod properties on input error

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    7fb26a8 View commit details
    Browse the repository at this point in the history
  40. feat: test input error in comment example

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    e333e82 View commit details
    Browse the repository at this point in the history
  41. fix: remove ZodError import

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    d041807 View commit details
    Browse the repository at this point in the history
  42. fix: add actions-module to files export

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    d042f32 View commit details
    Browse the repository at this point in the history
  43. fix: use workspace for test pkg versions

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    efcd9ec View commit details
    Browse the repository at this point in the history
  44. refactor: default export -> server export

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    6681a71 View commit details
    Browse the repository at this point in the history
  45. fix: type inference for json vs. form

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    c2ea11c View commit details
    Browse the repository at this point in the history
  46. refactor: accept form -> defineFormAction

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    cff5241 View commit details
    Browse the repository at this point in the history
  47. refactor: better callSafely signature

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    b17b0a4 View commit details
    Browse the repository at this point in the history
  48. feat: block action calls from the server with RFC link

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    347ba41 View commit details
    Browse the repository at this point in the history
  49. feat: move getActionResult to global

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    d366925 View commit details
    Browse the repository at this point in the history
  50. refactor: getNameProps -> getActionProps

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    2672640 View commit details
    Browse the repository at this point in the history
  51. refactor: body.toString()

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    894ed76 View commit details
    Browse the repository at this point in the history
  52. edit: capitAl

    Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
    2 people authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    ab9bf88 View commit details
    Browse the repository at this point in the history
  53. edit: highlight actions

    Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
    2 people authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    21d828f View commit details
    Browse the repository at this point in the history
  54. edit: add actions file name

    Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
    2 people authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    eb75c24 View commit details
    Browse the repository at this point in the history
  55. edit: not you can. You DO

    Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
    2 people authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    c0c9f3d View commit details
    Browse the repository at this point in the history
  56. edit: declare with feeling

    Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
    2 people authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    24e0de2 View commit details
    Browse the repository at this point in the history
  57. edit: clarify what the handler does

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    be6ae6b View commit details
    Browse the repository at this point in the history
  58. edit: schema -> input

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    3dc82b8 View commit details
    Browse the repository at this point in the history
  59. edit: add FormData mdn reference

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    d9249a0 View commit details
    Browse the repository at this point in the history
  60. edit: add defineFormAction() explainer

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    2866c01 View commit details
    Browse the repository at this point in the history
  61. refactor: inline getDotAstroTypeRefs

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    fa68332 View commit details
    Browse the repository at this point in the history
  62. edit: yeah yeah maybe

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    84bf0d6 View commit details
    Browse the repository at this point in the history
  63. fix: existsSync test mock

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    36f9d2d View commit details
    Browse the repository at this point in the history
  64. refactor: use callSafely in middleware

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    04cc449 View commit details
    Browse the repository at this point in the history
  65. test: upgradeFormData()

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    6183068 View commit details
    Browse the repository at this point in the history
  66. chore: stray console log

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    01daa05 View commit details
    Browse the repository at this point in the history
  67. refactor: extract helper functions

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    4fb465f View commit details
    Browse the repository at this point in the history
  68. fix: include status in error response

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    95c5aff View commit details
    Browse the repository at this point in the history
  69. fix: return undefined when there's no action result

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    60a4b10 View commit details
    Browse the repository at this point in the history
  70. fix: content-type

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    7302d80 View commit details
    Browse the repository at this point in the history
  71. test: e2e like button action

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    84773b8 View commit details
    Browse the repository at this point in the history
  72. test: comment e2e

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    7a97673 View commit details
    Browse the repository at this point in the history
  73. fix: existsSync mock for other sync test

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    cddb4fd View commit details
    Browse the repository at this point in the history
  74. test: action dev server raw fetch

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    2992b71 View commit details
    Browse the repository at this point in the history
  75. test: build preview

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    b34d286 View commit details
    Browse the repository at this point in the history
  76. chore: fix lock

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    b629fc5 View commit details
    Browse the repository at this point in the history
  77. fix: add dotAstroDir to existsSync

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    b054178 View commit details
    Browse the repository at this point in the history
  78. chore: slim down e2e fixture

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    071cedd View commit details
    Browse the repository at this point in the history
  79. chore: remove unneeded disabled test

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    70166af View commit details
    Browse the repository at this point in the history
  80. refactor: better api context error

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    8475f4a View commit details
    Browse the repository at this point in the history
  81. fix: return false for envDts

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    b981432 View commit details
    Browse the repository at this point in the history
  82. refactor: defineFormAction -> defineAction with accept

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    fd5b93f View commit details
    Browse the repository at this point in the history
  83. fix: check FormData on getActionProps

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    63a77dc View commit details
    Browse the repository at this point in the history
  84. edit: uppercase

    Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
    2 people authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    1112927 View commit details
    Browse the repository at this point in the history
  85. fix: add switch default for 500

    Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
    2 people authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    56b9a23 View commit details
    Browse the repository at this point in the history
  86. fix: add toLowerCase() on content-type check

    Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
    2 people authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    c8aa956 View commit details
    Browse the repository at this point in the history
  87. chore: use VIRTUAL_MODULE_ID for plugin

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    331a93a View commit details
    Browse the repository at this point in the history
  88. fix: remove incorrect ts-ignore

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    4916b59 View commit details
    Browse the repository at this point in the history
  89. chore: remove unneeded POST method check

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    ba3c510 View commit details
    Browse the repository at this point in the history
  90. refactor: route callSafely

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    50210f4 View commit details
    Browse the repository at this point in the history
  91. refactor: error switch case to map

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    63e2322 View commit details
    Browse the repository at this point in the history
  92. chore: add link to trpc error code table

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    b212681 View commit details
    Browse the repository at this point in the history
  93. fix: add readable error on failed json.stringify

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    ec9b7bf View commit details
    Browse the repository at this point in the history
  94. refactor: add param -> callerParam with comment

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    4fd7f6f View commit details
    Browse the repository at this point in the history
  95. feat: always return safe from getActionResult()

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    bb362b0 View commit details
    Browse the repository at this point in the history
  96. refactor: move actions module to templates/

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    9634999 View commit details
    Browse the repository at this point in the history
  97. refactor: remove unneeded existsSync on dotAstro

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    b7dd73c View commit details
    Browse the repository at this point in the history
  98. fix: hasContentType util for toLowerCase()

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    53463fb View commit details
    Browse the repository at this point in the history
  99. chore: comment on 415 code

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    6ea2483 View commit details
    Browse the repository at this point in the history
  100. refactor: upgradeFormData -> formDataToObj

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    99ab252 View commit details
    Browse the repository at this point in the history
  101. fix: avoid leaking stack in production

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    9fb39ee View commit details
    Browse the repository at this point in the history
  102. refactor: defineProperty with write false

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    2290788 View commit details
    Browse the repository at this point in the history
  103. fix: revert package.json back to spaces

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    87a3a28 View commit details
    Browse the repository at this point in the history
  104. edit: use config docs for changeset

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    4a5410f View commit details
    Browse the repository at this point in the history
  105. refactor: stringifiedActionsPath -> stringifiedActionsImport

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    280e279 View commit details
    Browse the repository at this point in the history
  106. fix: avoid double-handling for route

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    44b0532 View commit details
    Browse the repository at this point in the history
  107. fix: support zero arg actions

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    c6417c3 View commit details
    Browse the repository at this point in the history
  108. refactor: move actionHandler to helper fn

    bholmesdev authored and bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    f2677a8 View commit details
    Browse the repository at this point in the history
  109. fix: restore mdast deps

    bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    3383e78 View commit details
    Browse the repository at this point in the history
  110. docs: add output to config

    bholmesdev committed May 8, 2024
    Configuration menu
    Copy the full SHA
    ceff804 View commit details
    Browse the repository at this point in the history