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

Changes for new jsx runtime and bump major version #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## 2.0.0

### Changes to support using the new JSX runtime
- Required for React 19 support
- This is a breaking change and will require coordinated updates to other related packages
- Requires updating to `@grafana/[email protected]` or extending `plugin:react/jsx-runtime` manually in your eslint config
- Requires updating build tooling
- If using esbuild, steps are [here](https://esbuild.github.io/content-types/#auto-import-for-jsx)
- If using Babel, steps are [here](https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#manual-babel-setup)
- Requires running the [React codemod](https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#removing-unused-react-imports)
- this will remove unused React imports
2 changes: 1 addition & 1 deletion base.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"importHelpers": true,
"jsx": "react",
"jsx": "react-jsx",
"lib": [
"dom",
"dom.iterable",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Grafana Labs",
"license": "Apache-2.0",
"name": "@grafana/tsconfig",
"version": "1.3.0-rc1",
"version": "2.0.0",
"description": "Grafana's TypeScript config",
"keywords": [
"grafana",
Expand Down