diff --git a/.changeset/fluffy-crabs-rhyme.md b/.changeset/fluffy-crabs-rhyme.md deleted file mode 100644 index 9548f46ac53..00000000000 --- a/.changeset/fluffy-crabs-rhyme.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -update version of lit-labs/react to latest lit/react. diff --git a/package-lock.json b/package-lock.json index 65761b1359b..8394b00ba12 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5101,19 +5101,14 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@lit-labs/react": { + "version": "1.2.1", + "license": "BSD-3-Clause" + }, "node_modules/@lit-labs/ssr-dom-shim": { "version": "1.2.0", "license": "BSD-3-Clause" }, - "node_modules/@lit/react": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@lit/react/-/react-1.0.6.tgz", - "integrity": "sha512-QIss8MPh6qUoFJmuaF4dSHts3qCsA36S3HcOLiNPShxhgYPr4XJRnCBKPipk85sR9xr6TQrOcDMfexwbNdJHYA==", - "license": "BSD-3-Clause", - "peerDependencies": { - "@types/react": "17 || 18" - } - }, "node_modules/@manypkg/find-root": { "version": "1.1.0", "dev": true, @@ -30453,7 +30448,7 @@ "dependencies": { "@github/relative-time-element": "^4.4.3", "@github/tab-container-element": "^4.8.0", - "@lit/react": "^1.0.6", + "@lit-labs/react": "1.2.1", "@oddbird/popover-polyfill": "^0.4.4", "@primer/behaviors": "^1.7.2", "@primer/live-region-element": "^0.7.1", diff --git a/packages/react/jest.config.js b/packages/react/jest.config.js index b028c61cf8d..d24acdbd0bd 100644 --- a/packages/react/jest.config.js +++ b/packages/react/jest.config.js @@ -28,5 +28,5 @@ module.exports = { setupFiles: ['/src/utils/test-helpers.tsx'], setupFilesAfterEnv: ['/src/utils/test-matchers.tsx', '/src/utils/test-deprecations.tsx'], testMatch: ['/**/*.test.[jt]s?(x)', '!**/*.types.test.[jt]s?(x)'], - transformIgnorePatterns: ['node_modules/(?!@github/[a-z-]+-element|@lit/react|@oddbird/popover-polyfill)'], + transformIgnorePatterns: ['node_modules/(?!@github/[a-z-]+-element|@lit-labs/react|@oddbird/popover-polyfill)'], } diff --git a/packages/react/package.json b/packages/react/package.json index 6b51224433f..46f16abefba 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -80,7 +80,7 @@ "dependencies": { "@github/relative-time-element": "^4.4.3", "@github/tab-container-element": "^4.8.0", - "@lit/react": "^1.0.6", + "@lit-labs/react": "1.2.1", "@oddbird/popover-polyfill": "^0.4.4", "@primer/behaviors": "^1.7.2", "@primer/live-region-element": "^0.7.1", diff --git a/packages/react/rollup.config.mjs b/packages/react/rollup.config.mjs index 98ba333a1b7..b201e7dbba3 100644 --- a/packages/react/rollup.config.mjs +++ b/packages/react/rollup.config.mjs @@ -1,7 +1,7 @@ import path from 'node:path' import commonjs from '@rollup/plugin-commonjs' import resolve from '@rollup/plugin-node-resolve' -import {babel} from '@rollup/plugin-babel' +import babel from '@rollup/plugin-babel' import replace from '@rollup/plugin-replace' import terser from '@rollup/plugin-terser' import {visualizer} from 'rollup-plugin-visualizer' @@ -42,7 +42,7 @@ const ESM_ONLY = new Set([ '@github/paste-markdown', '@github/relative-time-element', '@github/tab-container-element', - '@lit/react', + '@lit-labs/react', '@oddbird/popover-polyfill', ]) const dependencies = [ diff --git a/packages/react/src/utils/create-component.ts b/packages/react/src/utils/create-component.ts index ecb620cd65b..3b6e23c5fdd 100644 --- a/packages/react/src/utils/create-component.ts +++ b/packages/react/src/utils/create-component.ts @@ -1,7 +1,7 @@ import React from 'react' import styled from 'styled-components' -import type {EventName} from '@lit/react' -import {createComponent as create} from '@lit/react' +import type {EventName} from '@lit-labs/react' +import {createComponent as create} from '@lit-labs/react' import sx from '../sx' type EventNames = Record