Shiro
Shiro copied to clipboard
fix(deps): update all non-major dependencies (minor)
This PR contains the following updates:
Release Notes
aws/aws-sdk-js-v3 (@aws-sdk/client-s3)
v3.582.0
Note: Version bump only for package @aws-sdk/client-s3
clerk/javascript (@clerk/nextjs)
v5.1.0
Minor Changes
- Add support for GoogleOneTap. New APIs listed: (#3392) by @panteliselef
React component
-
<GoogleOneTap/>
Customize the UX of the prompt
<GoogleOneTap
cancelOnTapOutside={false}
itpSupport={false}
fedCmSupport={false}
/>
Use the component from with Vanilla JS
-
Clerk.openGoogleOneTap(props: GoogleOneTapProps)
-
Clerk.closeGoogleOneTap()
Low level APIs for custom flows
-
await Clerk.authenticateWithGoogleOneTap({ token: 'xxxx'})
-
await Clerk.handleGoogleOneTapCallback()
We recommend using this two methods together in order and let Clerk to perform the correct redirections.
google.accounts.id.initialize({
callback: async response => {
const signInOrUp = await Clerk.authenticateWithGoogleOneTap({ token: response.credential });
await Clerk.handleGoogleOneTapCallback(signInOrUp, {
signInForceRedirectUrl: window.location.href,
});
},
});
In case you want to handle the redirection and session management yourself you can do so like this
google.accounts.id.initialize({
callback: async response => {
const signInOrUp = await Clerk.authenticateWithGoogleOneTap({ token: response.credential });
if (signInOrUp.status === 'complete') {
await Clerk.setActive({
session: signInOrUp.createdSessionId,
});
}
},
});
Patch Changes
floating-ui/floating-ui (@floating-ui/react-dom)
v2.1.0
Minor Changes
- feat: support dependency array as a second argument of all middleware. This ensures stateful options can be kept reactive when making them derived (passing a function that returns the options):
const [value, setValue] = React.useState(0);
const offset1 = offset(value); // reactive
const offset2 = offset(() => value); // NOT reactive
const offset3 = offset(() => value, [value]); // reactive
This also includes size
's apply
function:
size(
{
apply() {
value; // reactive
},
},
[value],
);
shikijs/shiki (@shikijs/transformers)
v1.6.0
🚀 Features
- Scoped color replacements - by @QuentinRoy in https://github.com/shikijs/shiki/issues/680 (ed31e)
- New
regexp
grammar - by @antfu (8ea85)
View changes on GitHub
TanStack/query (@tanstack/query-async-storage-persister)
v5.37.1
Version 5.37.1 - 5/18/2024, 8:42 AM
Changes
Fix
Chore
- Update dependencies (#7449) (
78e4bc1
) by Lachlan Collins - Update to pnpm v9 (#7448) (
38fa8c4
) by Lachlan Collins
Packages
- @tanstack/query-devtools@5.37.1
- @tanstack/query-persist-client-core@5.37.1
- @tanstack/react-query@5.37.1
- @tanstack/react-query-devtools@5.37.1
- @tanstack/react-query-persist-client@5.37.1
- @tanstack/react-query-next-experimental@5.37.1
- @tanstack/solid-query@5.37.1
- @tanstack/solid-query-devtools@5.37.1
- @tanstack/solid-query-persist-client@5.37.1
- @tanstack/svelte-query@5.37.1
- @tanstack/svelte-query-devtools@5.37.1
- @tanstack/svelte-query-persist-client@5.37.1
- @tanstack/vue-query@5.37.1
- @tanstack/vue-query-devtools@5.37.1
- @tanstack/angular-query-devtools-experimental@5.37.1
- @tanstack/angular-query-experimental@5.37.1
- @tanstack/query-async-storage-persister@5.37.1
- @tanstack/query-sync-storage-persister@5.37.1
vitejs/vite-plugin-react (@vitejs/plugin-react)
v4.3.0
Fix support for React compiler
Don't set retainLines: true
when the React compiler is used. This creates whitespace issues and the compiler is modifying the JSX too much to get correct line numbers after that. If you want to use the React compiler and get back correct line numbers for tools like vite-plugin-react-click-to-component to work, you should update your config to something like:
export default defineConfig(({ command }) => {
const babelPlugins = [['babel-plugin-react-compiler', {}]]
if (command === 'serve') {
babelPlugins.push(['@​babel/plugin-transform-react-jsx-development', {}])
}
return {
plugins: [react({ babel: { plugins: babelPlugins } })],
}
})
Support HMR for class components
This is a long overdue and should fix some issues people had with HMR when migrating from CRA.
Configuration
📅 Schedule: Branch creation - "after 9pm,before 9am" in timezone Asia/Shanghai, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.