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

Upgrade to Clerk Core 2 #2

Open
wants to merge 25 commits into
base: main
Choose a base branch
from

Conversation

wobsoriano
Copy link

@wobsoriano wobsoriano commented Apr 9, 2024

Hi! Appreciate you doing this module.

This PR updates vue-clerk and h3-clerk versions, fix incorrect imports and updated the playground.

Update: This PR now upgrades the h3-clerk and vue-clerk to Clerk Core 2 versions

@RodrigoProjects
Copy link
Owner

Thanks for the updates! Will wait for the ready for review :)

src/runtime/plugin.ts Outdated Show resolved Hide resolved
src/module.ts Outdated
getContents: () => [
'export default {',
` vueClerkConfig: ${options.vueClerk ? JSON.stringify(options.vueClerk) : 'null'}`,
` vueClerkOptions: ${options.vueClerk ? JSON.stringify(options.vueClerk) : 'null'},`,
` h3ClerkOptions: ${options.vueClerk ? JSON.stringify(options.h3Clerk) : 'null'},`,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this will not be included in client build?

src/module.ts Outdated Show resolved Hide resolved
@wobsoriano wobsoriano marked this pull request as ready for review April 9, 2024 20:10
getContents: () => [
'export default {',
` vueClerkConfig: ${options.vueClerk ? JSON.stringify(options.vueClerk) : 'null'}`,
` vueClerkOptions: ${options.vueClerk ? JSON.stringify(options.vueClerk) : 'null'},`,
` h3ClerkOptions: ${options.h3Clerk ? JSON.stringify(options.h3Clerk) : 'null'},`,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this will not be included in client bundle 👀

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It all depends on where it is imported! Let me check

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should create a server and client plugin and only import the template of the config we need in each enviroment.

Which means creating 2 templates, one for the client config and another for the server config if it makes sense

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RodrigoProjects would you be interested in doing that?

@wobsoriano wobsoriano changed the title Update vue and h3 clerk versions Upgrade to Clerk Core 2 Jun 14, 2024
@wobsoriano
Copy link
Author

@RodrigoProjects pushed more updates that will upgrade this to Clerk Core 2.

pnpm-lock.yaml Outdated
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a bun lockfile so I believe this is extra

"h3-clerk": "^0.3.8",
"vue-clerk": "^0.1.1"
"@nuxt/kit": "^3.12.1",
"@nuxtjs/tailwindcss": "^6.12.0",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#4 - I agree with this. Do we really need tailwind as dep?

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.

None yet

2 participants