Skip to content

docs: fix typos and outdated references in README#286

Open
mahmoodhamdi wants to merge 1 commit intovercel:mainfrom
mahmoodhamdi:docs/readme-cleanup
Open

docs: fix typos and outdated references in README#286
mahmoodhamdi wants to merge 1 commit intovercel:mainfrom
mahmoodhamdi:docs/readme-cleanup

Conversation

@mahmoodhamdi
Copy link
Copy Markdown

Summary

Noticed a few issues while reading the README ahead of the v4 launch:

  • parseStrict example typo: parameter is named s but the function body references str, which would confuse anyone copy-pasting the example
  • Invalid TypeScript in catch clause: catch (error: Error) is not valid TS — catch clause annotations can only be any or unknown
  • Outdated Edge Runtime config: runtime: 'experimental-edge' was renamed to 'edge' back in Next.js 12.3
  • Outdated contribution instructions: referenced npm link workflow, updated to pnpm install + pnpm test to match the actual setup
  • Orphaned footnote: [^1]: Internet Explorer is not supported had no corresponding reference in the document

No code changes — documentation only.

Ref #240

- Fix variable name typo in parseStrict example (`str` → `s`)
- Fix invalid catch clause type annotation (`error: Error` → `error`)
- Update Edge Runtime example to use `runtime: 'edge'` instead of
  the deprecated `'experimental-edge'`
- Remove outdated `canary` install comments from Edge example
- Replace `npm link` workflow with `pnpm install` + `pnpm test`
- Remove orphaned footnote about Internet Explorer

Ref vercel#240
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.

1 participant