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

Bump client packages #5133

Merged
merged 5 commits into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/chromatic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- uses: pnpm/action-setup@v4
with:
version: 9.15.0
version: 10.5.2

- name: Setup Node.js environment
uses: actions/setup-node@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nextjs_bundle_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ jobs:
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
VERCEL_ENV: 'testing'
VERCEL_ENV: "testing"

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
version: 9.15.0
version: 10.5.2

- name: Setup Node.js environment
uses: actions/setup-node@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- uses: pnpm/action-setup@v4
with:
version: 9
version: 10.5.2

- name: Setup Node.js environment
uses: actions/setup-node@v4
Expand All @@ -47,4 +47,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
POLAR_CHECKOUT_EMBED_SCRIPT_ALLOWED_ORIGINS: 'https://polar.sh,https://sandbox.polar.sh'
POLAR_CHECKOUT_EMBED_SCRIPT_ALLOWED_ORIGINS: "https://polar.sh,https://sandbox.polar.sh"
8 changes: 4 additions & 4 deletions .github/workflows/test_client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
VERCEL_ENV: 'testing'
VERCEL_ENV: "testing"

steps:
- name: Check out code
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
version: 9.15.0
version: 10.5.2

- name: Setup Node.js environment
uses: actions/setup-node@v4
Expand Down Expand Up @@ -61,15 +61,15 @@ jobs:
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
VERCEL_ENV: 'testing'
VERCEL_ENV: "testing"

steps:
- name: Check out code
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
version: 9.15.0
version: 10.5.2

- name: Setup Node.js environment
uses: actions/setup-node@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:

- uses: pnpm/action-setup@v4
with:
version: 9.15.0
version: 10.5.2

- name: 📬 Setup Node.js environment for server/emails
uses: actions/setup-node@v4
Expand Down
88 changes: 44 additions & 44 deletions clients/apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,61 +18,61 @@
},
"dependencies": {
"@date-fns/utc": "^2.1.0",
"@dnd-kit/core": "^6.2.0",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@emotion/react": "^11.13.5",
"@emotion/styled": "^11.13.5",
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@heroicons/react": "^2.2.0",
"@hookform/error-message": "^2.0.1",
"@mdx-js/loader": "^3.1.0",
"@mdx-js/react": "^3.1.0",
"@mui/icons-material": "^6.4.3",
"@mui/material": "^6.4.3",
"@next/mdx": "^14.2.18",
"@observablehq/plot": "^0.6.16",
"@mui/icons-material": "^6.4.6",
"@mui/material": "^6.4.6",
"@next/mdx": "^14.2.24",
"@observablehq/plot": "^0.6.17",
"@polar-sh/checkout": "workspace:^",
"@polar-sh/client": "workspace:*",
"@polar-sh/mdx": "workspace:*",
"@polar-sh/sdk": "^0.26.1",
"@polar-sh/sdk": "^0.28.0",
"@polar-sh/ui": "workspace:*",
"@radix-ui/react-dropdown-menu": "^2.1.6",
"@radix-ui/react-toast": "^1.2.6",
"@sentry/nextjs": "^8.54.0",
"@shikijs/rehype": "^2.3.1",
"@sentry/nextjs": "^8.55.0",
"@shikijs/rehype": "^3.1.0",
"@stripe/react-stripe-js": "^3.1.1",
"@stripe/stripe-js": "^5.6.0",
"@stripe/stripe-js": "^5.7.0",
"@tailwindcss/forms": "^0.5.10",
"@tailwindcss/typography": "^0.5.16",
"@tanstack/react-query": "^5.61.3",
"@tanstack/react-query-next-experimental": "^5.61.3",
"@tanstack/react-query": "^5.66.11",
"@tanstack/react-query-next-experimental": "^5.66.11",
"@tanstack/react-table": "^8.20.6",
"@vercel/blob": "^0.14.1",
"class-variance-authority": "^0.7.1",
"crawler-user-agents": "^1.0.159",
"crawler-user-agents": "^1.0.164",
"d3": "^7.9.0",
"d3-scale-chromatic": "^3.1.0",
"date-fns": "^4.1.0",
"event-source-plus": "^0.1.8",
"eventemitter3": "^5.0.1",
"framer-motion": "^12.3.1",
"framer-motion": "^12.4.7",
"geist": "^1.3.1",
"github-slugger": "^2.0.0",
"html-entities": "^2.5.2",
"lodash.debounce": "^4.0.8",
"lucide-react": "^0.474.0",
"markdown-to-jsx": "^7.7.3",
"next": "^14.2.23",
"next-nprogress-bar": "^2.4.4",
"next-themes": "^0.4.3",
"nuqs": "^2.3.2",
"markdown-to-jsx": "^7.7.4",
"next": "^14.2.24",
"next-nprogress-bar": "^2.4.7",
"next-themes": "^0.4.4",
"nuqs": "^2.4.0",
"open-graph-scraper-lite": "^2.1.0",
"openapi-types": "^12.1.3",
"posthog-js-lite": "^3.2.1",
"posthog-js-lite": "^3.4.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-dropzone": "^14.3.5",
"react-focus-lock": "^2.13.2",
"react-dropzone": "^14.3.8",
"react-focus-lock": "^2.13.6",
"react-hook-form": "^7.54.2",
"react-is": "^18.3.1",
"react-timeago": "^7.2.0",
Expand All @@ -81,11 +81,11 @@
"rehype-slug": "^6.0.0",
"remark-flexible-toc": "^1.1.1",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.0",
"sass": "^1.84.0",
"remark-gfm": "^4.0.1",
"sass": "^1.85.1",
"satori": "^0.12.1",
"schema-dts": "^1.1.2",
"shiki": "^2.3.1",
"shiki": "^3.1.0",
"slugify": "^1.6.6",
"tailwind-merge": "^2.6.0",
"tailwindcss-radix": "^3.0.5",
Expand All @@ -94,52 +94,52 @@
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@next/bundle-analyzer": "^14.2.18",
"@storybook/addon-essentials": "^8.5.5",
"@storybook/addon-interactions": "^8.5.5",
"@storybook/addon-links": "^8.5.5",
"@storybook/blocks": "^8.5.5",
"@storybook/cli": "^8.5.5",
"@storybook/nextjs": "^8.5.5",
"@storybook/react": "^8.5.5",
"@storybook/test": "^8.5.5",
"@next/bundle-analyzer": "^14.2.24",
"@storybook/addon-essentials": "^8.6.2",
"@storybook/addon-interactions": "^8.6.2",
"@storybook/addon-links": "^8.6.2",
"@storybook/blocks": "^8.6.2",
"@storybook/cli": "^8.6.2",
"@storybook/nextjs": "^8.6.2",
"@storybook/react": "^8.6.2",
"@storybook/test": "^8.6.2",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^14.3.1",
"@types/d3": "^7.4.3",
"@types/jest": "^29.5.14",
"@types/lodash.debounce": "^4.0.9",
"@types/lunr": "^2.3.7",
"@types/mdx": "^2.0.13",
"@types/node": "^20.17.7",
"@types/node": "^22.13.5",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@types/react-is": "^18.3.0",
"@types/react-is": "^18.3.1",
"@types/react-timeago": "^4.1.7",
"@types/tinycolor2": "^1.4.6",
"@types/web": "^0.0.201",
"@types/web": "^0.0.207",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"autoprefixer": "^10.4.20",
"eslint": "^8.57.1",
"eslint-config-custom": "workspace:*",
"eslint-config-next": "^14.2.18",
"eslint-config-next": "^14.2.24",
"gzip-size": "^7.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"mkdirp": "^3.0.1",
"postcss": "^8.5.1",
"postcss": "^8.5.3",
"prop-types": "^15.8.1",
"react-test-renderer": "^18.3.1",
"remark": "^15.0.1",
"remark-mdx": "^3.1.0",
"storybook": "^8.5.5",
"storybook": "^8.6.2",
"storybook-addon-state": "^1.0.3",
"tailwindcss": "^3.4.15",
"tailwindcss": "^3.4.17",
"tailwindcss-animate": "^1.0.7",
"ts-jest": "^29.2.5",
"ts-jest": "^29.2.6",
"ts-node": "^10.9.2",
"tsconfig": "workspace:*",
"typescript": "5.3.3",
"typescript": "5.7.3",
"unist-util-visit": "^5.0.0"
},
"nextBundleAnalysis": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const ClientPage: React.FC<ClientPageProps> = ({ organization }) => {

const { data, fetchNextPage, hasNextPage } = useCustomers(organization.id, {
query: query ?? undefined,
sorting: [sorting] ?? undefined,
sorting: [sorting],
})

const customers = data?.pages.flatMap((page) => page.items) || []
Expand Down
26 changes: 21 additions & 5 deletions clients/apps/web/src/utils/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,30 @@ export const githubPullReqeustUrl = (
) => `${githubRepoUrl(owner, repo)}/pull/${number}`

export const parseGitHubIssueLink = (url: string): GitHubIssue | undefined => {
// Regex without named groups - using numbered capture groups instead
// Group 1: owner (first pattern)
// Group 2: repo (first pattern)
// Group 3: issue number (first pattern)
// Group 5: owner2 (second pattern)
// Group 6: repo2 (second pattern)
// Group 7: number2 (second pattern)
const re =
/^(?<owner>[a-z0-9][a-z0-9-]*)?(?:\/(?<repo>[a-z0-9_\.-]+))?#(?<number>\d+)|(?:https?:\/\/(?:www\.)?github\.com\/)(?<owner2>[a-z0-9][a-z0-9-]*)?(?:\/(?<repo2>[a-z0-9_\.-]+))?(?:#|\/issues\/)(?<number2>\d+)(#.*)?$/i
/^([a-z0-9][a-z0-9-]*)?(?:\/([a-z0-9_\.-]+))?#(\d+)|(?:https?:\/\/(?:www\.)?github\.com\/)([a-z0-9][a-z0-9-]*)?(?:\/([a-z0-9_\.-]+))?(?:#|\/issues\/)(\d+)(#.*)?$/i

const match = url.match(re)
if (!match || !match.groups) return undefined
if (!match) return undefined

// Extract values from the appropriate capture groups
const owner = match[1] || match[4]
const repo = match[2] || match[5]
const issueNumber = match[3] || match[6]

if (!owner || !repo || !issueNumber) return undefined

return {
raw: match[0],
owner: match.groups.owner || match.groups.owner2,
repo: match.groups.repo || match.groups.repo2,
number: Number.parseInt(match.groups.number || match.groups.number2),
owner,
repo,
number: Number.parseInt(issueNumber),
}
}
17 changes: 4 additions & 13 deletions clients/apps/web/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"lib": ["dom", "dom.iterable", "esnext"],
"strict": true,
"baseUrl": "src/",
"paths": {
"@/*": [
"./*"
],
"@/*": ["./*"]
},
"module": "esnext",
"moduleResolution": "bundler",
Expand Down Expand Up @@ -41,8 +35,7 @@
{
"name": "next"
}
],

]
},
"include": [
"next-env.d.ts",
Expand All @@ -52,7 +45,5 @@
"sentry.*.config.ts",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
"exclude": ["node_modules"]
}
18 changes: 9 additions & 9 deletions clients/examples/checkout-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@
},
"dependencies": {
"@polar-sh/checkout": "workspace:^",
"@polar-sh/sdk": "^0.26.1",
"@polar-sh/sdk": "^0.28.0",
"@stripe/react-stripe-js": "^3.1.1",
"@stripe/stripe-js": "^5.6.0",
"next": "^14.2.23",
"next-themes": "^0.4.3",
"@stripe/stripe-js": "^5.7.0",
"next": "^14.2.24",
"next-themes": "^0.4.4",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/node": "^20.17.7",
"@types/node": "^22.13.5",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"eslint": "^8.57.1",
"eslint-config-next": "^14.2.18",
"postcss": "^8.5.1",
"tailwindcss": "^3.4.15",
"typescript": "5.3.3"
"eslint-config-next": "^14.2.24",
"postcss": "^8.5.3",
"tailwindcss": "^3.4.17",
"typescript": "5.7.3"
}
}
Loading