-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update core&next package to next15 and react19. build fail: mis…
…matching types in vite-react
- Loading branch information
1 parent
3d543e4
commit 5dd0feb
Showing
8 changed files
with
1,138 additions
and
1,285 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,92 +1,92 @@ | ||
{ | ||
"name": "@headstartwp/core", | ||
"version": "1.5.0-next.7", | ||
"description": "`@headstartwp/core` is the core package that houses framework-agnostic components and utilities for building headless sites with WordPress.", | ||
"homepage": "https://github.com/10up/headstartwp/blob/develop/packages/core/README.md", | ||
"license": "MIT", | ||
"author": "10up <[email protected]> (https://10up.com/)", | ||
"main": "dist/cjs/index.js", | ||
"source": "src/index.ts", | ||
"types": "dist/mjs/index.d.ts", | ||
"typedocMain": "src/docs-entry-point.ts", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"exports": { | ||
".": { | ||
"require": "./dist/cjs/index.js", | ||
"import": "./dist/mjs/index.js", | ||
"types": "./dist/mjs/index.d.ts" | ||
}, | ||
"./utils": { | ||
"require": "./dist/cjs/utils/index.js", | ||
"import": "./dist/mjs/utils/index.js", | ||
"types": "./dist/mjs/utils/index.d.ts" | ||
}, | ||
"./react": { | ||
"react-server": { | ||
"import": "./dist/mjs/rsc/index.js", | ||
"require": "./dist/cjs/rsc/index.js", | ||
"types": "./dist/mjs/rsc/index.d.ts" | ||
}, | ||
"require": "./dist/cjs/react/index.js", | ||
"import": "./dist/mjs/react/index.js", | ||
"types": "./dist/mjs/react/index.d.ts" | ||
}, | ||
"./rsc": { | ||
"import": "./dist/mjs/rsc/index.js", | ||
"require": "./dist/cjs/rsc/index.js", | ||
"types": "./dist/mjs/rsc/index.d.ts" | ||
}, | ||
"./test": "./test/server.ts" | ||
}, | ||
"files": [ | ||
"dist", | ||
"react.d.ts", | ||
"react.js", | ||
"test.d.ts", | ||
"utils.d.ts", | ||
"utils.js" | ||
], | ||
"sideEffects": false, | ||
"scripts": { | ||
"postbuild": "tsc-esm-fix --target dist/mjs && node ../../scripts/package.js", | ||
"build": "npm run ts && npm run ts:cjs", | ||
"ts:cjs": "tsc -b tsconfig-cjs.json", | ||
"ts": "tsc -b", | ||
"dev": "concurrently \"npm run watch:ts:cjs\" \"npm run watch:ts\"", | ||
"watch:ts:cjs": "npm run ts:cjs -- --watch", | ||
"watch:ts": "npm run ts -- --watch", | ||
"test": "jest", | ||
"test:watch": "jest --watch", | ||
"lint": "eslint src/" | ||
}, | ||
"devDependencies": { | ||
"@testing-library/dom": "^10.3.1", | ||
"@testing-library/react": "^16.0.0", | ||
"@types/jest": "^29.0.3", | ||
"@types/node-fetch": "^2.5.3", | ||
"expect-type": "^0.15.0", | ||
"jest": "^29.3.1", | ||
"msw": "^0.35.0", | ||
"ts-jest": "^29.0.3", | ||
"typescript": "^5.5.3", | ||
"isomorphic-fetch": "^3.0.0", | ||
"tsc-esm-fix": "^2.20.27", | ||
"@types/react": "^18", | ||
"@types/react-dom": "^18" | ||
}, | ||
"dependencies": { | ||
"@justinribeiro/lite-youtube": "^1.3.1", | ||
"html-react-parser": "^3.0.4", | ||
"path-to-regexp": "^6.2.0", | ||
"react-inspector": "^6.0.1", | ||
"swr": "^2.2.5", | ||
"xss": "^1.0.15", | ||
"deepmerge": "^4.3.1", | ||
"schema-dts": "^1.1.2" | ||
}, | ||
"peerDependencies": { | ||
"react": ">= 17.0.2" | ||
} | ||
"name": "@headstartwp/core", | ||
"version": "1.5.0-next.7", | ||
"description": "`@headstartwp/core` is the core package that houses framework-agnostic components and utilities for building headless sites with WordPress.", | ||
"homepage": "https://github.com/10up/headstartwp/blob/develop/packages/core/README.md", | ||
"license": "MIT", | ||
"author": "10up <[email protected]> (https://10up.com/)", | ||
"main": "dist/cjs/index.js", | ||
"source": "src/index.ts", | ||
"types": "dist/mjs/index.d.ts", | ||
"typedocMain": "src/docs-entry-point.ts", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"exports": { | ||
".": { | ||
"require": "./dist/cjs/index.js", | ||
"import": "./dist/mjs/index.js", | ||
"types": "./dist/mjs/index.d.ts" | ||
}, | ||
"./utils": { | ||
"require": "./dist/cjs/utils/index.js", | ||
"import": "./dist/mjs/utils/index.js", | ||
"types": "./dist/mjs/utils/index.d.ts" | ||
}, | ||
"./react": { | ||
"react-server": { | ||
"import": "./dist/mjs/rsc/index.js", | ||
"require": "./dist/cjs/rsc/index.js", | ||
"types": "./dist/mjs/rsc/index.d.ts" | ||
}, | ||
"require": "./dist/cjs/react/index.js", | ||
"import": "./dist/mjs/react/index.js", | ||
"types": "./dist/mjs/react/index.d.ts" | ||
}, | ||
"./rsc": { | ||
"import": "./dist/mjs/rsc/index.js", | ||
"require": "./dist/cjs/rsc/index.js", | ||
"types": "./dist/mjs/rsc/index.d.ts" | ||
}, | ||
"./test": "./test/server.ts" | ||
}, | ||
"files": [ | ||
"dist", | ||
"react.d.ts", | ||
"react.js", | ||
"test.d.ts", | ||
"utils.d.ts", | ||
"utils.js" | ||
], | ||
"sideEffects": false, | ||
"scripts": { | ||
"postbuild": "tsc-esm-fix --target dist/mjs && node ../../scripts/package.js", | ||
"build": "npm run ts && npm run ts:cjs", | ||
"ts:cjs": "tsc -b tsconfig-cjs.json", | ||
"ts": "tsc -b", | ||
"dev": "concurrently \"npm run watch:ts:cjs\" \"npm run watch:ts\"", | ||
"watch:ts:cjs": "npm run ts:cjs -- --watch", | ||
"watch:ts": "npm run ts -- --watch", | ||
"test": "jest", | ||
"test:watch": "jest --watch", | ||
"lint": "eslint src/" | ||
}, | ||
"devDependencies": { | ||
"@testing-library/dom": "^10.3.1", | ||
"@testing-library/react": "^16.0.0", | ||
"@types/jest": "^29.0.3", | ||
"@types/node-fetch": "^2.5.3", | ||
"expect-type": "^0.15.0", | ||
"jest": "^29.3.1", | ||
"msw": "^0.35.0", | ||
"ts-jest": "^29.0.3", | ||
"typescript": "^5.5.3", | ||
"isomorphic-fetch": "^3.0.0", | ||
"tsc-esm-fix": "^2.20.27", | ||
"@types/react": "npm:[email protected]", | ||
"@types/react-dom": "npm:[email protected]" | ||
}, | ||
"dependencies": { | ||
"@justinribeiro/lite-youtube": "^1.3.1", | ||
"html-react-parser": "^3.0.4", | ||
"path-to-regexp": "^6.2.0", | ||
"react-inspector": "^6.0.1", | ||
"swr": "^2.2.5", | ||
"xss": "^1.0.15", | ||
"deepmerge": "^4.3.1", | ||
"schema-dts": "^1.1.2" | ||
}, | ||
"peerDependencies": { | ||
"react": ">= 19.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,10 @@ | |
"@headstartwp/core": "^1.5.0-next.6", | ||
"loader-utils": "^3.2.0", | ||
"schema-utils": "^4.0.0", | ||
"@isaacs/ttlcache": "^1.4.1" | ||
"@isaacs/ttlcache": "^1.4.1", | ||
"next": "15.0.3", | ||
"react": "19.0.0-rc-66855b96-20241106", | ||
"react-dom": "19.0.0-rc-66855b96-20241106" | ||
}, | ||
"devDependencies": { | ||
"@testing-library/dom": "^10.3.1", | ||
|
@@ -77,11 +80,15 @@ | |
"isomorphic-fetch": "^3.0.0", | ||
"jest-fetch-mock": "^3.0.3", | ||
"tsc-esm-fix": "^2.20.27", | ||
"@types/react": "^18", | ||
"@types/react-dom": "^18" | ||
"@types/react": "npm:[email protected]", | ||
"@types/react-dom": "npm:[email protected]" | ||
}, | ||
"peerDependencies": { | ||
"next": ">= 12.0.0", | ||
"react": ">= 17.0.2" | ||
"next": "15.0.3", | ||
"react": "19.0.0-rc-66855b96-20241106" | ||
}, | ||
"overrides": { | ||
"@types/react": "npm:[email protected]", | ||
"@types/react-dom": "npm:[email protected]" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
{ | ||
"name": "@10up/wp-multisite-i18n-nextjs", | ||
"version": "0.2.0", | ||
"description": "This is a [Next.js](https://nextjs.org/) project bootstrapped with 10up's Headless Framework.", | ||
"homepage": "https://github.com/10up/headstartwp/blob/develop/projects/wp-multisite-i18n-nextjs/README.md", | ||
"license": "GPL-2.0-or-later", | ||
"author": "10up <[email protected]> (https://10up.com/)", | ||
"private": true, | ||
"scripts": { | ||
"dev": "next dev -p 3002", | ||
"build": "next build", | ||
"build:analyze": "ANALYZE=true next build", | ||
"start": "next start", | ||
"lint": "eslint ." | ||
}, | ||
"dependencies": { | ||
"@headstartwp/core": "^1.5.0-next.7", | ||
"@headstartwp/next": "^1.5.0-next.7", | ||
"@linaria/core": "^6.2.0", | ||
"@linaria/react": "^6.2.1", | ||
"clsx": "^1.1.1", | ||
"next": "^14.2.5", | ||
"nprogress": "^0.2.0", | ||
"prop-types": "^15.7.2", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@wyw-in-js/babel-preset": "0.5.4", | ||
"@wyw-in-js/webpack-loader": "^0.5.4", | ||
"@10up/eslint-config": "^4.0.0", | ||
"@next/bundle-analyzer": "^12.1.0", | ||
"@types/react": "^18", | ||
"@types/react-dom": "^18" | ||
}, | ||
"engineStrict": true, | ||
"engines": { | ||
"node": ">=18.0.0", | ||
"npm": ">=9.0.0" | ||
} | ||
"name": "@10up/wp-multisite-i18n-nextjs", | ||
"version": "0.2.0", | ||
"description": "This is a [Next.js](https://nextjs.org/) project bootstrapped with 10up's Headless Framework.", | ||
"homepage": "https://github.com/10up/headstartwp/blob/develop/projects/wp-multisite-i18n-nextjs/README.md", | ||
"license": "GPL-2.0-or-later", | ||
"author": "10up <[email protected]> (https://10up.com/)", | ||
"private": true, | ||
"scripts": { | ||
"dev": "next dev -p 3002", | ||
"build": "next build", | ||
"build:analyze": "ANALYZE=true next build", | ||
"start": "next start", | ||
"lint": "eslint ." | ||
}, | ||
"dependencies": { | ||
"@headstartwp/core": "^1.5.0-next.7", | ||
"@headstartwp/next": "^1.5.0-next.7", | ||
"@linaria/core": "^6.2.0", | ||
"@linaria/react": "^6.2.1", | ||
"clsx": "^1.1.1", | ||
"next": "^14.2.5", | ||
"nprogress": "^0.2.0", | ||
"prop-types": "^15.7.2", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@wyw-in-js/babel-preset": "0.5.4", | ||
"@wyw-in-js/webpack-loader": "^0.5.4", | ||
"@10up/eslint-config": "^4.0.0", | ||
"@next/bundle-analyzer": "^12.1.0", | ||
"@types/react": "npm:[email protected]", | ||
"@types/react-dom": "npm:[email protected]" | ||
}, | ||
"engineStrict": true, | ||
"engines": { | ||
"node": ">=18.0.0", | ||
"npm": ">=9.0.0" | ||
} | ||
} |