Skip to content

Commit

Permalink
chore: Drop mirrorring to next-usequerystate
Browse files Browse the repository at this point in the history
BREAKING CHANGE: package is now only updating on the `nuqs` name.

The debugging printouts no longer check for next-usequerystate, only nuqs.
  • Loading branch information
franky47 committed Oct 22, 2024
1 parent 8d2ba24 commit 4616a7b
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 46 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Are you using:
- ✅/❌ The app router
- ✅/❌ The pages router
- ✅/❌ The `basePath` option in your Next.js config
- ✅/❌ The experimental `windowHistorySupport` flag in your Next.js config
- ✅/❌ The experimental `windowHistorySupport` flag in your Next.js config _(only relevant for Next.js 14.0.3 or 14.0.4)_

## Description

Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Mirror to next-usequerystate
run: ./scripts/mirror.sh
working-directory: packages/nuqs
continue-on-error: true
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Invalidate ISR cache for NPM in the docs
run: curl -s "https://nuqs.47ng.com/api/isr?tag=npm&token=${{ secrets.ISR_TOKEN }}"
2 changes: 1 addition & 1 deletion packages/docs/content/docs/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ bun add nuqs
<Callout title={<>What happened to `next-usequerystate`?</>}>
It was a mouthful to type, so I decided to abbreviate it to `nuqs`.

The `nuqs` name was introduced in 1.14.0, and `next-usequerystate` will mirror
The `nuqs` name was introduced in 1.14.0, and `next-usequerystate` mirrored
its versions for the rest of the 1.x.x range. The next major version update
(2.0.0) and subsequent versions will only be published under the `nuqs` name.
</Callout>
1 change: 0 additions & 1 deletion packages/docs/src/app/(pages)/_landing/demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export async function LandingDemo() {
!line.includes('className="') && !line.includes('data-interacted=')
)
.join('\n')
.replaceAll('next-usequerystate', 'nuqs')
return (
<>
<Suspense
Expand Down
6 changes: 2 additions & 4 deletions packages/docs/src/app/playground/debug-control.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@ export default function DebugControl() {
if (typeof localStorage === 'undefined') {
return false
}
return (
localStorage.getItem('debug')?.includes('next-usequerystate') ?? false
)
return localStorage.getItem('debug')?.includes('nuqs') ?? false
})
const update = React.useCallback(() => {
setChecked(c => {
const checked = !c
if (typeof localStorage !== 'undefined') {
if (checked) {
localStorage.setItem('debug', 'next-usequerystate')
localStorage.setItem('debug', 'nuqs')
} else {
localStorage.removeItem('debug')
}
Expand Down
33 changes: 0 additions & 33 deletions packages/nuqs/scripts/mirror.sh

This file was deleted.

0 comments on commit 4616a7b

Please sign in to comment.