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

feat: next.js 15 from codemod #908

Merged
merged 62 commits into from
Feb 16, 2025
Merged
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
f1aeb00
feat: next.js 15 from codemod
mbifulco Dec 7, 2024
3d11d11
chore: deps
mbifulco Dec 10, 2024
92863f5
Merge remote-tracking branch 'origin/main' into f/next-next
mbifulco Dec 10, 2024
3ab82b8
chore: deps
mbifulco Dec 10, 2024
78f63a7
fix: lint command
mbifulco Dec 10, 2024
e1595b9
fix: lint
mbifulco Dec 10, 2024
f680024
fix: lint
mbifulco Dec 10, 2024
d9de2d7
fix: lints
mbifulco Dec 10, 2024
421e50c
feat: eslint 9
mbifulco Dec 10, 2024
bc6de1d
chore: trpc latest alpha
mbifulco Dec 10, 2024
8d93714
fix: derek jiti
mbifulco Dec 10, 2024
869c488
fix: logical error
mbifulco Dec 12, 2024
4120bd9
test: is this the problem?
mbifulco Dec 12, 2024
f33ae89
test: is it the tag component
mbifulco Dec 12, 2024
e43d69e
chore: deps
mbifulco Dec 12, 2024
00c3819
chore: not the tags page, lol
mbifulco Dec 12, 2024
a912415
fix: make sure all newsletters have frontmatter
mbifulco Dec 12, 2024
9e90a82
chore: don't track this yet
mbifulco Dec 12, 2024
aea5eb4
feat: add otel and +mdx to format command
mbifulco Dec 12, 2024
1cad9b8
chore: format all the mdx
mbifulco Dec 12, 2024
b137503
fix: some logic hardening for these guys
mbifulco Dec 12, 2024
63b5926
Merge branch 'main' into f/next-next
mbifulco Dec 21, 2024
350408e
chore: logic update
mbifulco Dec 21, 2024
d615283
chore: some deps
mbifulco Dec 21, 2024
c888941
fix: being an edgelord is breaking the build
mbifulco Dec 21, 2024
0a00722
fix?: surely vercel/otel wasn't to blame
mbifulco Dec 21, 2024
ca57c8c
chore: rm more @opentelemetry stuff
mbifulco Dec 21, 2024
2f5778e
fix: lockfile
mbifulco Dec 21, 2024
9ca56f0
feat: depcheck and clean up deps
mbifulco Dec 21, 2024
132a9df
fix: harden
mbifulco Dec 21, 2024
5cdea1a
chore: comment
mbifulco Dec 21, 2024
7cd3f54
feat: simplify alltags
mbifulco Dec 21, 2024
e5bcebc
fix: is this date evil y/n
mbifulco Dec 21, 2024
d9cd039
chore: fresh lockfile
mbifulco Dec 21, 2024
ad4aef3
chore: lockfile
mbifulco Dec 21, 2024
6c4ef0d
Merge remote-tracking branch 'origin/main' into f/next-next
mbifulco Dec 22, 2024
f280450
Merge remote-tracking branch 'origin/main' into f/next-next
mbifulco Jan 4, 2025
4a98df8
chore: deps
mbifulco Jan 4, 2025
dafba59
lints
mbifulco Jan 4, 2025
9ccba8f
Merge remote-tracking branch 'origin/main' into f/next-next
mbifulco Feb 15, 2025
dbb5183
chore: update deps
mbifulco Feb 15, 2025
1843619
fix: trpc is set up to use edge runtime
mbifulco Feb 15, 2025
23941cf
fix: keep edge compatibility by removing mailchecker
mbifulco Feb 15, 2025
e76cd07
fix: get all tags more defensively
mbifulco Feb 15, 2025
775cfd9
chore: add some temporary telemetry
mbifulco Feb 15, 2025
7e10a21
chore: rename some .js to .ts/.tsx
mbifulco Feb 15, 2025
dcdd856
Revert "chore: add some temporary telemetry"
mbifulco Feb 15, 2025
535b3bd
chore: refactor, harden, try/catch, print errors, etc
mbifulco Feb 15, 2025
18fad57
more error checking I guess?
mbifulco Feb 15, 2025
32fe390
feat: slugs everywhere
mbifulco Feb 16, 2025
56f80a5
fix: frontmatter
mbifulco Feb 16, 2025
1772a97
fix: oh god more slugs. they're everywhere!
mbifulco Feb 16, 2025
a116d16
fix: slugs
mbifulco Feb 16, 2025
dd61ef0
fix: better contentTypeLoader
mbifulco Feb 16, 2025
a7067a0
chore: for now, don't minify
mbifulco Feb 16, 2025
2434453
fix: circular dependency!
mbifulco Feb 16, 2025
518bacd
chore: un-minify
mbifulco Feb 16, 2025
d67b136
fix: blast up these files into separate utilities
mbifulco Feb 16, 2025
1b40cc0
chore: here we go again
mbifulco Feb 16, 2025
152f3e3
feat: ignore millionlint files
mbifulco Feb 16, 2025
33861ec
chore: rm space
mbifulco Feb 16, 2025
99e88c9
feat: an implementation to cache tags to disk?
mbifulco Feb 16, 2025
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
Prev Previous commit
Next Next commit
lints
mbifulco committed Jan 4, 2025

Verified

This commit was signed with the committer’s verified signature.
emma-sg Emma Segal-Grossman
commit dafba5914150212c5c67e6d4530cd1faeec83f5b
4 changes: 0 additions & 4 deletions src/hooks/useLocalStorage.tsx
Original file line number Diff line number Diff line change
@@ -34,7 +34,6 @@ const getLocalStorageServerSnapshot = () => {

export function useLocalStorage<T>(key: string, initialValue: T) {
const getSnapshot = () => {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const stored = JSON.parse(getLocalStorageItem(key) ?? '');
return JSON.stringify({
...initialValue,
@@ -51,11 +50,8 @@ export function useLocalStorage<T>(key: string, initialValue: T) {
const setState = useCallback(
(v: unknown) => {
try {
/* eslint-disable @typescript-eslint/no-unsafe-call */
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const nextState =
typeof v === 'function' ? v(JSON.parse(store || '{}')) : v;
/* eslint-enable @typescript-eslint/no-unsafe-call */

if (nextState === undefined || nextState === null) {
removeLocalStorageItem(key);