Skip to content

chore: version packages - #20

Merged
paalamugan merged 1 commit into
mainfrom
changeset-release/main
Oct 22, 2026
Merged

paalamugan merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@paalstack/react-components@1.6.1

Patch Changes

  • ecdfb07 Thanks @paalamugan! - fix(components): give Form a method prop, defaulting to post, so a native submit can never put credentials in the URL
    • Add a method prop to Form ('get' | 'post'), defaulting to 'post'.
    • A <form> with no method attribute is a GET. The browser only runs React's own onSubmit once the form is hydrated, so a submit in the window between the server-rendered HTML and hydration falls through to the browser's native submit - which appends every field value to the URL. For a sign-in form that is the password: in the address bar, in browser history, in the proxy's access log, and in the Referer header of the next navigation. post keeps those values in the request body instead.
    • This is the default, so a consumer needs no change to be protected. Pass method="get" to opt back into the old behaviour.
    • Make the components package's jest setup able to load the library's own ESM-only dependencies (intl-messageformat and its @formatjs/* deps, reached through @/shared/lib -> format). Without it no component test could load the component under test, which is why the package had no component tests at all.
    • Add the first component test in packages/components: the rendered <form> always carries a method, defaulting to 'post'.

@paalstack/react-ui@1.7.1

Patch Changes

  • ecdfb07 Thanks @paalamugan! - fix(components): give Form a method prop, defaulting to post, so a native submit can never put credentials in the URL
    • Add a method prop to Form ('get' | 'post'), defaulting to 'post'.
    • A <form> with no method attribute is a GET. The browser only runs React's own onSubmit once the form is hydrated, so a submit in the window between the server-rendered HTML and hydration falls through to the browser's native submit - which appends every field value to the URL. For a sign-in form that is the password: in the address bar, in browser history, in the proxy's access log, and in the Referer header of the next navigation. post keeps those values in the request body instead.
    • This is the default, so a consumer needs no change to be protected. Pass method="get" to opt back into the old behaviour.
    • Make the components package's jest setup able to load the library's own ESM-only dependencies (intl-messageformat and its @formatjs/* deps, reached through @/shared/lib -> format). Without it no component test could load the component under test, which is why the package had no component tests at all.
    • Add the first component test in packages/components: the rendered <form> always carries a method, defaulting to 'post'.

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from b70a5bf to 8b9bbf0 Compare October 22, 2026 04:24
@paalamugan
paalamugan merged commit 79e36f6 into main Oct 22, 2026
@paalamugan
paalamugan deleted the changeset-release/main branch October 22, 2026 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant