From 87835444cde5cb0d246f88657c78b00771a187ce Mon Sep 17 00:00:00 2001 From: "Sakamoto, Kazunori" Date: Sat, 18 Apr 2026 19:28:10 +0900 Subject: [PATCH 1/6] fix: drop old React peer support Co-authored-by: WillBooster (Codex CLI) --- README.md | 2 +- package.json | 30 +++++++++++++++--------------- yarn.lock | 4 ++-- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index aa79dfd..e1e2155 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ This package is a maintained fork of [`suren-atoyan/monaco-react`](https://githu yarn add @willbooster/monaco-react monaco-editor ``` -`react`, `react-dom`, and `monaco-editor` are peer dependencies. React 16.8 through 19 are supported. +`react`, `react-dom`, and `monaco-editor` are peer dependencies. This package supports React 19, Node.js 24 or newer, and is tested with Next.js 16. ## Usage diff --git a/package.json b/package.json index 4809df8..b513995 100644 --- a/package.json +++ b/package.json @@ -14,19 +14,13 @@ "bugs": { "url": "https://github.com/WillBooster/monaco-react/issues" }, - "license": "MIT", - "author": "WillBooster Inc.", "repository": { "type": "git", "url": "git+https://github.com/WillBooster/monaco-react.git" }, - "files": [ - "dist/" - ], + "license": "MIT", + "author": "WillBooster Inc.", "type": "module", - "main": "dist/index.cjs", - "module": "dist/index.js", - "types": "dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", @@ -34,9 +28,12 @@ "import": "./dist/index.js" } }, - "publishConfig": { - "access": "public" - }, + "main": "dist/index.cjs", + "module": "dist/index.js", + "types": "dist/index.d.ts", + "files": [ + "dist/" + ], "scripts": { "build": "tsup", "check-all-for-ai": "yarn check-for-ai && yarn test", @@ -54,6 +51,7 @@ "test/ci-setup": "playwright install chromium", "typecheck": "tsgo --noEmit" }, + "prettier": "@willbooster/prettier-config", "dependencies": { "@willbooster/monaco-loader": "1.0.1" }, @@ -91,12 +89,14 @@ }, "peerDependencies": { "monaco-editor": "^0.55.1", - "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + "react": "^19.2.5", + "react-dom": "^19.2.5" }, - "prettier": "@willbooster/prettier-config", + "packageManager": "yarn@4.14.1", "engines": { "node": ">=24" }, - "packageManager": "yarn@4.14.1" + "publishConfig": { + "access": "public" + } } diff --git a/yarn.lock b/yarn.lock index 79ab04c..fa90dec 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2355,8 +2355,8 @@ __metadata: vitest: "npm:4.1.4" peerDependencies: monaco-editor: ^0.55.1 - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^19.2.5 + react-dom: ^19.2.5 languageName: unknown linkType: soft From f361f19f2f30f13f14f4f298d734a559caf33111 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 18 Apr 2026 10:29:14 +0000 Subject: [PATCH 2/6] [autofix.ci] apply automated fixes --- package.json | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index b513995..3b7e034 100644 --- a/package.json +++ b/package.json @@ -14,13 +14,19 @@ "bugs": { "url": "https://github.com/WillBooster/monaco-react/issues" }, + "license": "MIT", + "author": "WillBooster Inc.", "repository": { "type": "git", "url": "git+https://github.com/WillBooster/monaco-react.git" }, - "license": "MIT", - "author": "WillBooster Inc.", + "files": [ + "dist/" + ], "type": "module", + "main": "dist/index.cjs", + "module": "dist/index.js", + "types": "dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", @@ -28,12 +34,9 @@ "import": "./dist/index.js" } }, - "main": "dist/index.cjs", - "module": "dist/index.js", - "types": "dist/index.d.ts", - "files": [ - "dist/" - ], + "publishConfig": { + "access": "public" + }, "scripts": { "build": "tsup", "check-all-for-ai": "yarn check-for-ai && yarn test", @@ -51,7 +54,6 @@ "test/ci-setup": "playwright install chromium", "typecheck": "tsgo --noEmit" }, - "prettier": "@willbooster/prettier-config", "dependencies": { "@willbooster/monaco-loader": "1.0.1" }, @@ -92,11 +94,9 @@ "react": "^19.2.5", "react-dom": "^19.2.5" }, - "packageManager": "yarn@4.14.1", + "prettier": "@willbooster/prettier-config", "engines": { "node": ">=24" }, - "publishConfig": { - "access": "public" - } + "packageManager": "yarn@4.14.1" } From 2c5a5ff3a764d3c3d155d8944faa1b667e1fd0f7 Mon Sep 17 00:00:00 2001 From: "Sakamoto, Kazunori" Date: Sat, 18 Apr 2026 19:39:25 +0900 Subject: [PATCH 3/6] fix: relax React 19 peer range Co-authored-by: WillBooster (Codex CLI) --- package.json | 30 +++++++++++++++--------------- yarn.lock | 4 ++-- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 3b7e034..abd9110 100644 --- a/package.json +++ b/package.json @@ -14,19 +14,13 @@ "bugs": { "url": "https://github.com/WillBooster/monaco-react/issues" }, - "license": "MIT", - "author": "WillBooster Inc.", "repository": { "type": "git", "url": "git+https://github.com/WillBooster/monaco-react.git" }, - "files": [ - "dist/" - ], + "license": "MIT", + "author": "WillBooster Inc.", "type": "module", - "main": "dist/index.cjs", - "module": "dist/index.js", - "types": "dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", @@ -34,9 +28,12 @@ "import": "./dist/index.js" } }, - "publishConfig": { - "access": "public" - }, + "main": "dist/index.cjs", + "module": "dist/index.js", + "types": "dist/index.d.ts", + "files": [ + "dist/" + ], "scripts": { "build": "tsup", "check-all-for-ai": "yarn check-for-ai && yarn test", @@ -54,6 +51,7 @@ "test/ci-setup": "playwright install chromium", "typecheck": "tsgo --noEmit" }, + "prettier": "@willbooster/prettier-config", "dependencies": { "@willbooster/monaco-loader": "1.0.1" }, @@ -91,12 +89,14 @@ }, "peerDependencies": { "monaco-editor": "^0.55.1", - "react": "^19.2.5", - "react-dom": "^19.2.5" + "react": "^19.0.0", + "react-dom": "^19.0.0" }, - "prettier": "@willbooster/prettier-config", + "packageManager": "yarn@4.14.1", "engines": { "node": ">=24" }, - "packageManager": "yarn@4.14.1" + "publishConfig": { + "access": "public" + } } diff --git a/yarn.lock b/yarn.lock index fa90dec..a555917 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2355,8 +2355,8 @@ __metadata: vitest: "npm:4.1.4" peerDependencies: monaco-editor: ^0.55.1 - react: ^19.2.5 - react-dom: ^19.2.5 + react: ^19.0.0 + react-dom: ^19.0.0 languageName: unknown linkType: soft From 9d1cc7945b1b87c46c6ef536f7e5b222fe615409 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 18 Apr 2026 10:40:20 +0000 Subject: [PATCH 4/6] [autofix.ci] apply automated fixes --- package.json | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index abd9110..dbf6a1e 100644 --- a/package.json +++ b/package.json @@ -14,13 +14,19 @@ "bugs": { "url": "https://github.com/WillBooster/monaco-react/issues" }, + "license": "MIT", + "author": "WillBooster Inc.", "repository": { "type": "git", "url": "git+https://github.com/WillBooster/monaco-react.git" }, - "license": "MIT", - "author": "WillBooster Inc.", + "files": [ + "dist/" + ], "type": "module", + "main": "dist/index.cjs", + "module": "dist/index.js", + "types": "dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", @@ -28,12 +34,9 @@ "import": "./dist/index.js" } }, - "main": "dist/index.cjs", - "module": "dist/index.js", - "types": "dist/index.d.ts", - "files": [ - "dist/" - ], + "publishConfig": { + "access": "public" + }, "scripts": { "build": "tsup", "check-all-for-ai": "yarn check-for-ai && yarn test", @@ -51,7 +54,6 @@ "test/ci-setup": "playwright install chromium", "typecheck": "tsgo --noEmit" }, - "prettier": "@willbooster/prettier-config", "dependencies": { "@willbooster/monaco-loader": "1.0.1" }, @@ -92,11 +94,9 @@ "react": "^19.0.0", "react-dom": "^19.0.0" }, - "packageManager": "yarn@4.14.1", + "prettier": "@willbooster/prettier-config", "engines": { "node": ">=24" }, - "publishConfig": { - "access": "public" - } + "packageManager": "yarn@4.14.1" } From c06914456d468f2d999be09318ff0eabdd51f7e0 Mon Sep 17 00:00:00 2001 From: "Sakamoto, Kazunori" Date: Sat, 18 Apr 2026 19:43:40 +0900 Subject: [PATCH 5/6] fix!: clarify React 19 support BREAKING CHANGE: React and React DOM peer dependencies now require React 19. Co-authored-by: WillBooster (Codex CLI) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e1e2155..8a04610 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ This package is a maintained fork of [`suren-atoyan/monaco-react`](https://githu yarn add @willbooster/monaco-react monaco-editor ``` -`react`, `react-dom`, and `monaco-editor` are peer dependencies. This package supports React 19, Node.js 24 or newer, and is tested with Next.js 16. +`react`, `react-dom`, and `monaco-editor` are peer dependencies. This package supports React 19.x, Node.js 24 or newer, and is tested with Next.js 16. ## Usage From ab55ea99d5f91f9f58d84466b2f71814711d3b88 Mon Sep 17 00:00:00 2001 From: "Sakamoto, Kazunori" Date: Sat, 18 Apr 2026 19:44:17 +0900 Subject: [PATCH 6/6] chore: apply package metadata formatting Co-authored-by: WillBooster (Codex CLI)