From 2a42da58ab418423323757d930bba521c12e29a3 Mon Sep 17 00:00:00 2001 From: Joshua Comeau Date: Fri, 27 Dec 2024 10:28:20 -0500 Subject: [PATCH] Bump Bright version, remove note from README --- README.md | 6 +----- package-lock.json | 41 +++++++++++++++++++++++++++++++---------- package.json | 2 +- 3 files changed, 33 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 5a5921f..69a78a9 100644 --- a/README.md +++ b/README.md @@ -2,16 +2,12 @@ This repo is for an exercise in my React course, [The Joy of React](https://joyofreact.com/). -**NOTE:** When installing dependencies for this one, you’ll need to use the `--legacy-peer-deps` flag. This is because the `bright` NPM package has not updated its peer dependencies to be compatible with the newly-released React 19. There isn’t _actually_ an issue — Bright still works with React 19 — but NPM is very strict by default when it comes to peer dependencies. - -See instructions here: - ## Running a development server First, install the dependencies: ```bash -$ npm install --legacy-peer-deps +$ npm install ``` Then, start a local development server: diff --git a/package-lock.json b/package-lock.json index 8a2986e..665d523 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,18 +8,23 @@ "name": "next-bright", "version": "0.1.0", "dependencies": { - "bright": "^0.8.2", + "bright": "^1.0.0", "next": "^15.0.4", "react": "^19.0.0", "react-dom": "^19.0.0" } }, "node_modules/@code-hike/lighter": { - "version": "0.6.6", - "resolved": "https://registry.npmjs.org/@code-hike/lighter/-/lighter-0.6.6.tgz", - "integrity": "sha512-dLkSpowP4NaWDUgay3Mebb8V+wYqVGRD+Tl8wSfWdtIH0z4OUU3UznSsmvvGpCgkdUIF5DhOPRGRowqkNWQsrg==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@code-hike/lighter/-/lighter-1.0.2.tgz", + "integrity": "sha512-gyJikppIy717OlkyUWhLffATabiGfF2eWA3g0HWnogGuaxVoyb1R2AikeOsX04rigcH+yKROOjc2cgRLnaGPQQ==", + "license": "MIT", + "dependencies": { + "ansi-sequence-parser": "1.1.1", + "tm-grammars": "^1.21.10" + }, "funding": { - "url": "https://github.com/code-hike/lighter?sponsor=1" + "url": "https://github.com/sponsors/code-hike" } }, "node_modules/@emnapi/runtime": { @@ -542,19 +547,26 @@ "tslib": "^2.4.0" } }, + "node_modules/ansi-sequence-parser": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ansi-sequence-parser/-/ansi-sequence-parser-1.1.1.tgz", + "integrity": "sha512-vJXt3yiaUL4UU546s3rPXlsry/RnM730G1+HkpKE012AN0sx1eOrxSu95oKDIonskeLTijMgqWZ3uDEe3NFvyg==", + "license": "MIT" + }, "node_modules/bright": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/bright/-/bright-0.8.2.tgz", - "integrity": "sha512-5V5AZ7Fyykz9DVSiauXKXvN+5UlYi2JkK/QXWynW98rHGvM9GtHsEs9v+ml7xX49+zxsk9QUob72i4091VCDvQ==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/bright/-/bright-1.0.0.tgz", + "integrity": "sha512-AX93OXFCdQQrnCmyZ85gazHhKBfKcTLnj7Hx3DM3vJwuU7VONDlB58vh3hJZ9rKWLTULbScAmuapgNgzK4u4fQ==", + "license": "MIT", "dependencies": { - "@code-hike/lighter": "0.6.6", + "@code-hike/lighter": "^1.0.2", "server-only": "^0.0.1" }, "funding": { "url": "https://github.com/code-hike/bright?sponsor=1" }, "peerDependencies": { - "react": "^18" + "react": "^18 || ^19" } }, "node_modules/busboy": { @@ -892,6 +904,15 @@ } } }, + "node_modules/tm-grammars": { + "version": "1.21.10", + "resolved": "https://registry.npmjs.org/tm-grammars/-/tm-grammars-1.21.10.tgz", + "integrity": "sha512-0TSAeQ90vvh0xRGdLw/HZG3K4M9gE1rwhGDB29QtoA5h2eRRD8tlGwukBJKx/y23l9EDbMP3+2QFeJqMsVOgBQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, "node_modules/tslib": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", diff --git a/package.json b/package.json index 83fb7cf..d64dd60 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "start": "next start" }, "dependencies": { - "bright": "^0.8.2", + "bright": "^1.0.0", "next": "^15.0.4", "react": "^19.0.0", "react-dom": "^19.0.0"