rsnext/package.json

247 lines
9 KiB
JSON
Raw Normal View History

2016-10-06 01:52:50 +02:00
{
"name": "nextjs-project",
"version": "0.0.0",
"private": true,
"workspaces": [
"packages/*"
],
2016-10-06 01:52:50 +02:00
"scripts": {
"new-error": "plop error",
"new-test": "plop test",
"clean": "lerna clean -y && lerna bootstrap && lerna run clean && lerna exec 'rm -rf ./dist'",
"build": "turbo run build",
"lerna": "lerna",
"dev": "turbo run dev --parallel",
"test-types": "tsc",
"test-unit": "jest test/unit/ packages/next/ packages/font",
"test-dev": "cross-env NEXT_TEST_MODE=dev pnpm testheadless",
"test-start": "cross-env NEXT_TEST_MODE=start pnpm testheadless",
"test-deploy": "cross-env NEXT_TEST_MODE=deploy pnpm testheadless",
"testonly-dev": "cross-env NEXT_TEST_MODE=dev pnpm testonly",
"testonly-start": "cross-env NEXT_TEST_MODE=start pnpm testonly",
"testonly-deploy": "cross-env NEXT_TEST_MODE=deploy pnpm testonly",
"test": "pnpm testheadless",
"testonly": "jest --runInBand",
"testheadless": "cross-env HEADLESS=true pnpm testonly",
"test-pack": "cross-env TS_NODE_TRANSPILE_ONLY=1 node --loader ts-node/esm scripts/test-pack-package.mts",
"genstats": "cross-env LOCAL_STATS=true node .github/actions/next-stats-action/src/index.js",
"git-reset": "git reset --hard HEAD",
"git-clean": "git clean -d -x -e node_modules -e packages -f",
"lint-typescript": "turbo run typescript",
"lint-eslint": "eslint . --ext js,jsx,ts,tsx --max-warnings=0 --config .eslintrc.json --no-eslintrc",
"lint-no-typescript": "run-p prettier-check lint-eslint",
"lint": "run-p test-types lint-typescript prettier-check lint-eslint lint-language",
"lint-fix": "pnpm prettier-fix && eslint . --ext js,jsx,ts,tsx --fix --max-warnings=0 --config .eslintrc.json --no-eslintrc",
"lint-language": "alex .",
"prettier-check": "prettier --check .",
"prettier-fix": "prettier --write .",
"types": "lerna run types --stream",
"typescript": "turbo run typescript",
"prepublishOnly": "turbo run build",
"publish-canary": "git checkout canary && git pull && lerna version prerelease --preid canary --force-publish && release --pre --skip-questions --show-url",
"publish-stable": "lerna version --force-publish",
"lint-staged": "lint-staged",
"next-with-deps": "./scripts/next-with-deps.sh",
"next": "cross-env NEXT_TELEMETRY_DISABLED=1 node --trace-deprecation --enable-source-maps packages/next/dist/bin/next",
"next-no-sourcemaps": "cross-env NEXT_TELEMETRY_DISABLED=1 node --trace-deprecation packages/next/dist/bin/next",
"clean-trace-jaeger": "rm -rf test/integration/basic/.next && TRACE_TARGET=JAEGER pnpm next build test/integration/basic",
"debug": "cross-env NEXT_TELEMETRY_DISABLED=1 node --inspect packages/next/dist/bin/next",
"postinstall": "git config index.skipHash false && node scripts/install-native.mjs",
"version": "npx pnpm@7.24.3 install && IS_PUBLISH=yes ./scripts/check-pre-compiled.sh && git add .",
Add script to automate updating vendored React version (#46663) Since we intend to update our vendored copy of React frequently, I wrote a script to automate the steps. Basic usage (defaults to most recent React canary version): ```sh pnpm run sync-react ``` Specify a canary version: ```sh pnpm run sync-react --version 18.3.0-next-41110021f-20230301 ``` Update package.json but skip installing the dependencies automatically: ```sh pnpm run sync-react --no-install ``` At the end it will print out a changelog so you can copy/paste it into the PR description. <!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change(s) that you're making: --> ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] [e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm build && pnpm lint` - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
2023-03-02 03:15:02 +01:00
"prepare": "husky install",
"sync-react": "node ./scripts/sync-react.js"
2016-10-06 01:52:50 +02:00
},
"devDependencies": {
"@babel/core": "7.18.0",
"@babel/eslint-parser": "7.18.2",
"@babel/generator": "7.18.0",
"@babel/parser": "7.12.11",
"@babel/plugin-proposal-object-rest-spread": "7.14.7",
"@babel/preset-flow": "7.14.5",
"@babel/preset-react": "7.14.5",
"@edge-runtime/jest-environment": "2.0.5",
2019-12-12 00:54:40 +01:00
"@fullhuman/postcss-purgecss": "1.3.0",
Add additional tests for @next/mdx (#45585)Co-authored-by: Shu Ding <g@shud.in> Adds additional integration tests for `@next/mdx`. - Test mdx-rs - Test `mdx-components.tsx` - Tests development and production. Previously it only checked development. <!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change(s) that you're making: --> ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] [e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm build && pnpm lint` - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md) --------- Co-authored-by: Shu Ding <g@shud.in>
2023-02-11 13:37:00 +01:00
"@mdx-js/loader": "2.2.1",
"@mdx-js/react": "2.2.1",
"@next/bundle-analyzer": "workspace:*",
"@next/env": "workspace:*",
"@next/eslint-plugin-next": "workspace:*",
"@next/font": "workspace:*",
"@next/mdx": "workspace:*",
"@next/plugin-storybook": "workspace:*",
"@next/polyfill-module": "workspace:*",
"@next/polyfill-nomodule": "workspace:*",
"@next/swc": "workspace:*",
2023-03-16 17:35:07 +01:00
"@opentelemetry/api": "1.4.1",
"@svgr/webpack": "5.5.0",
"@swc/cli": "0.1.55",
"@swc/core": "1.2.203",
"@swc/helpers": "0.4.14",
"@testing-library/react": "13.0.0",
"@types/cheerio": "0.22.16",
"@types/fs-extra": "8.1.0",
"@types/html-validator": "5.0.3",
"@types/http-proxy": "1.17.3",
"@types/jest": "24.0.13",
"@types/node": "14.14.31",
Subresource Integrity for App Directory (#39729) <!-- Thanks for opening a PR! Your contribution is much appreciated. In order to make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change that you're making: --> This serves to add support for [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) hashes for scripts added from the new app directory. This also has support for utilizing nonce values passed from request headers (expected to be generated per request in middleware) in the bootstrapping scripts via the `Content-Security-Policy` header as such: ``` Content-Security-Policy: script-src 'nonce-2726c7f26c' ``` Which results in the inline scripts having a new `nonce` attribute hash added. These features combined support for setting an aggressive Content Security Policy on scripts loaded. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [x] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [x] Make sure the linting passes by running `pnpm lint` - [x] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples) Co-authored-by: Steven <steven@ceriously.com>
2022-09-09 00:17:15 +02:00
"@types/node-fetch": "2.6.1",
"@types/react": "16.9.17",
"@types/react-dom": "16.9.4",
"@types/relay-runtime": "13.0.0",
"@types/selenium-webdriver": "4.0.15",
"@types/sharp": "0.29.3",
2019-04-02 16:09:34 +02:00
"@types/string-hash": "1.1.1",
Route Loader Trusted Types Violation Fix (#34730) Linked to issue #32209. ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [x] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation There is one tsec violation that is fixed in this PR: ### 1. ban-script-src-assignment: route-loader.ts XSS can occur with the line script.src = src in appendScript(src, script) if src can be controlled by a malicious user. From tracing through the code, it was determined that src comes from the function `getFilesForRoute(route)`. The behaviour of this function differs depending on the environment (development vs. production), but in both cases the function will construct strings that lead to valid file paths. These strings depend on two variables: `assetPrefix` and `route`, but due to the nature of the constructed strings it was determined that the scripts here are safe to use. Thus, the solution was to promote these strings to `TrustedScriptURL`s. This is the Trusted Types way of declaring that the script URL passed to the DOM sink is safe from DOM XSS attacks. To create a `TrustedScriptURL`, a policy needs to be created. This policy was put in its own file: `client/trusted-types.ts`. This policy has the name `nextjs`. If this name should be changed to something else, feel free to change it now. However, once it is released to the public and application developers begin using it, it may be harder to change the value since any application developers with a custom policy name allowlist would now need to update their `next.config.js` headers to allow this new name. The code was tested in a sample application to ensure it behaved as expected.
2022-05-04 01:22:08 +02:00
"@types/trusted-types": "2.0.2",
"@typescript-eslint/eslint-plugin": "4.29.1",
"@typescript-eslint/parser": "4.29.1",
"@vercel/fetch": "6.1.1",
"@vercel/og": "0.4.1",
"@webassemblyjs/ast": "1.11.1",
"@webassemblyjs/floating-point-hex-parser": "1.11.1",
"@webassemblyjs/helper-api-error": "1.11.1",
"@webassemblyjs/helper-buffer": "1.11.1",
"@webassemblyjs/helper-code-frame": "npm:empty-npm-package@1.0.0",
"@webassemblyjs/helper-module-context": "npm:empty-npm-package@1.0.0",
"@webassemblyjs/helper-numbers": "1.11.1",
"@webassemblyjs/helper-wasm-bytecode": "1.11.1",
"@webassemblyjs/helper-wasm-section": "1.11.1",
"@webassemblyjs/ieee754": "1.11.1",
"@webassemblyjs/leb128": "1.11.1",
"@webassemblyjs/utf8": "1.11.1",
"@webassemblyjs/wasm-edit": "1.11.1",
"@webassemblyjs/wasm-gen": "1.11.1",
"@webassemblyjs/wasm-opt": "1.11.1",
"@webassemblyjs/wasm-parser": "1.11.1",
"@webassemblyjs/wast-parser": "npm:empty-npm-package@1.0.0",
"@webassemblyjs/wast-printer": "1.11.1",
"@zeit/next-typescript": "1.1.2-canary.0",
"abort-controller": "3.0.0",
"alex": "9.1.0",
"ansi-escapes": "4.3.2",
"amphtml-validator": "1.0.35",
"async-sema": "3.0.1",
"body-parser": "1.20.1",
"browserslist": "4.20.2",
"buffer": "5.6.0",
"chalk": "5.0.1",
2017-02-16 23:53:39 +01:00
"cheerio": "0.22.0",
2020-05-11 02:48:57 +02:00
"cookie": "0.4.1",
"cors": "2.8.5",
"coveralls": "3.0.3",
"create-next-app": "workspace:*",
"critters": "0.0.6",
"cross-env": "6.0.3",
2019-02-26 21:57:32 +01:00
"cross-spawn": "6.0.5",
"dd-trace": "2.3.0",
"es5-ext": "0.10.53",
"escape-string-regexp": "2.0.0",
"eslint": "7.24.0",
2022-05-29 21:59:38 +02:00
"eslint-config-next": "workspace:*",
"eslint-plugin-eslint-plugin": "4.3.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jest": "24.3.5",
2023-01-12 18:36:29 +01:00
"eslint-plugin-jsdoc": "39.6.4",
"eslint-plugin-react": "7.23.2",
Implement new client-side router (#37551) ## Client-side router for `app` directory This PR implements the new router that leverages React 18 concurrent features like Suspense and startTransition. It also integrates with React Server Components and builds on top of it to allow server-centric routing that only renders the part of the page that has to change. It's one of the pieces of the implementation of https://nextjs.org/blog/layouts-rfc. ## Details I'm going to document the differences with the current router here (will be reworked for the upgrade guide) ### Client-side cache In the current router we have an in-memory cache for getStaticProps data so that if you prefetch and then navigate to a route that has been prefetched it'll be near-instant. For getServerSideProps the behavior is different, any navigation to a page with getServerSideProps fetches the data again. In the new model the cache is a fundamental piece, it's more granular than at the page level and is set up to ensure consistency across concurrent renders. It can also be invalidated at any level. #### Push/Replace (also applies to next/link) The new router still has a `router.push` / `router.replace` method. There are a few differences in how it works though: - It only takes `href` as an argument, historically you had to provide `href` (the page path) and `as` (the actual url path) to do dynamic routing. In later versions of Next.js this is no longer required and in the majority of cases `as` was no longer needed. In the new router there's no way to reason about `href` vs `as` because there is no notion of "pages" in the browser. - Both methods now use `startTransition`, you can wrap these in your own `startTransition` to get `isPending` - The push/replace support concurrent rendering. When a render is bailed by clicking a different link to navigate to a completely different page that still works and doesn't cause race conditions. - Support for optimistic loading states when navigating ##### Hard/Soft push/replace Because of the client-side cache being reworked this now allows us to cover two cases: hard push and soft push. The main difference between the two is if the cache is reused while navigating. The default for `next/link` is a `hard` push which means that the part of the cache affected by the navigation will be invalidated, e.g. if you already navigated to `/dashboard` and you `router.push('/dashboard')` again it'll get the latest version. This is similar to the existing `getServerSideProps` handling. In case of a soft push (API to be defined but for testing added `router.softPush('/')`) it'll reuse the existing cache and not invalidate parts that are already filled in. In practice this means it's more like the `getStaticProps` client-side navigation because it does not fetch on navigation except if a part of the page is missing. #### Back/Forward navigation Back and Forward navigation ([popstate](https://developer.mozilla.org/en-US/docs/Web/API/Window/popstate_event)) are always handled as a soft navigation, meaning that the cache is reused, this ensures back/forward navigation is near-instant when it's in the client-side cache. This will also allow back/forward navigation to be a high priority update instead of a transition as it is based on user interaction. Note: in this PR it still uses `startTransition` as there's no way to handle the high priority update suspending which happens in case of missing data in the cache. We're working with the React team on a solution for this particular case. ### Layouts Note: this section assumes you've read [The layouts RFC](https://nextjs.org/blog/layouts-rfc) and [React Server Components RFC](https://reactjs.org/blog/2020/12/21/data-fetching-with-react-server-components.html) React Server Components rendering leverages the Flight streaming mechanism in React 18, this allows sending a serializable representation of the rendered React tree on the server to the browser, the client-side React can use this serialized representation to render components client-side without the JavaScript being sent to the browser. This is one of the building blocks of Server Components. This allows a bunch of interesting features but for now I'll keep it to how it affects layouts. When you have a `app/dashboard/layout.js` and `app/dashboard/page.js` the page will render as children of the layout, when you add another page like `app/dashboard/integrations/page.js` that page falls under the dashboard layout as well. When client-side navigating the new router automatically figures out if the page you're navigating to can be a smaller render than the whole page, in this case `app/dashboard/page.js` and `app/dashboard/integrations/page.js` share the `app/dashboard/layout.js` so instead of rendering the whole page we render below the layout component, this means the layout itself does not get re-rendered, the layout's `getServerSideProps` would not be called, and the Flight response would only hold the result of `app/dashboard/integrations/page.js`, effectively giving you the smallest patch for the UI. --- Note: the commits in this PR were mostly work in progress to ensure it wasn't lost along the way. The implementation was reworked a bunch of times to where it is now. Co-authored-by: Jiachi Liu <4800338+huozhi@users.noreply.github.com> Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
2022-07-06 23:16:47 +02:00
"eslint-plugin-react-hooks": "4.5.0",
"event-stream": "4.0.1",
"execa": "2.0.3",
fix: InferGetServerSidePropsType and InferGetStaticPropsType (#40635) ## Problem Currently the Next.js infer utility (`InferGetServerSidePropsType` and `InferGetStaticPropsType`) types can lead to a wrong inferred types (`never`). This happens if these functions return something different than: `{props: {}}`. **Example:** `getServerSideProps` ```typescript export async function getServerSideProps({ query }: GetServerSidePropsContext) { if (query.foo) { return { notFound: true, } } return { props: { foo: "bar" }, } } type PageProps = InferGetServerSidePropsType<typeof getServerSideProps> // => type PageProps = never ``` **Example:** `getStaticProps` ```typescript import type { InferGetStaticPropsType, GetStaticPropsContext } from 'next' export async function getStaticProps(context: GetStaticPropsContext) { if (context.params?.bar) { return { notFound: true, } } return { props: { foo: 'bar', }, } } type PageProps = InferGetStaticPropsType<typeof getStaticProps> // => type PageProps = never ``` This is because the first infer condition of the utility type is not satified leading to a never result. ```typescript export type InferGetServerSidePropsType<T> = T extends GetServerSideProps< infer P, // <- NOT SATISFIED any > ? P : T extends ( context?: GetServerSidePropsContext<any> ) => Promise<GetServerSidePropsResult<infer P>> ? P : never // <- NOT SATISFIED ``` ## Solution I have experimented with different solutions ending with a much simpler type, that is faster to execute, easier to read and universally usable for both prop variations. ```typescript /** * Flow: * - Make sure getStaticProps is a function * - Get its return type * - Extract the one that contains {props: any} * - Return the props */ export type InferGetStaticPropsType<T extends (args: any) => any> = Extract< Awaited<ReturnType<T>>, { props: any } >['props'] ``` ## Bug - [x] Related issues: fixes #36615, #15913, https://twitter.com/leeerob/status/1563540593003106306 - [x] Type tests added ## Future thoughts Since `InferGetStaticPropsType` and `InferGetServerSidePropsType` are now the same, it's api could be merged into one utility type (e.g: InferNextProps). I recommend doing this in a different PR. ## Additional info I have tested this approach using the following [external package](https://www.npmjs.com/package/infer-next-props-type) (@timneutkens sorry for the late PR). Since about 12 Month I haven't received any negative feedback (issues) regarding this approach. Co-authored-by: JJ Kasper <jj@jjsweb.site>
2022-09-21 00:25:01 +02:00
"expect-type": "0.14.2",
"express": "4.17.0",
"faker": "5.5.3",
"faunadb": "2.6.1",
"find-up": "4.1.0",
"firebase": "7.14.5",
"flat": "5.0.2",
"form-data": "4.0.0",
"fs-extra": "9.0.0",
2020-05-11 02:48:57 +02:00
"get-port": "5.1.1",
"glob": "7.1.6",
"gzip-size": "5.1.1",
"html-validator": "5.1.18",
"http-proxy": "1.18.1",
"husky": "8.0.0",
"image-size": "0.9.3",
"is-animated": "2.0.2",
"isomorphic-unfetch": "3.0.0",
"jest": "27.0.6",
"jest-extended": "1.2.1",
"json5": "2.2.3",
"ky": "0.19.1",
"ky-universal": "0.6.0",
"lerna": "4.0.0",
2020-05-02 21:47:16 +02:00
"lint-staged": "10.1.7",
"lodash": "4.17.20",
"lost": "8.3.1",
"minimatch": "3.0.4",
"moment": "^2.24.0",
"nanoid": "3.1.30",
2022-05-29 21:59:38 +02:00
"next": "workspace:*",
"node-fetch": "2.6.7",
"node-pty": "0.10.1",
2019-11-27 20:26:40 +01:00
"npm-run-all": "4.1.5",
2019-12-12 16:51:38 +01:00
"nprogress": "0.2.0",
"pixrem": "5.0.0",
"playwright-chromium": "1.28.1",
"plop": "3.0.5",
"postcss": "8.4.14",
"postcss-nested": "4.2.1",
"postcss-pseudoelements": "5.0.0",
"postcss-short-size": "4.0.0",
"postcss-trolling": "0.1.7",
"prettier": "2.5.1",
"pretty-bytes": "5.3.0",
"pretty-ms": "7.0.0",
"random-seed": "0.3.0",
"react": "18.2.0",
"react-17": "npm:react@17.0.2",
upgrade vendored React to `18.3.0-next-12a1d140e-20230321` (#47405) Includes the following upstream changes: - 12a1d140e Don't prerender siblings of suspended component (#26380) (Andrew Clark) - 77ba1618a Bugfix: Remove extra render pass when reverting to client render (#26445) (Andrew Clark) - 520f7f3ed Refactor ReactDOMComponent to use flatter property operations (#26433) (Sebastian Markbåge) - 0131d0cff Check if suspensey instance resolves in immediate task (#26427) (Andrew Clark) - 3554c8852 Clean interface for public instances between React and React Native (#26416) (Rubén Norte) - c57b90f50 [DiffTrain] Add artifacts for React Native to compiled (#26204) (Samuel Susla) - 842bd787a Fix sizebot not working due to missing auth token (#26423) (Andrew Clark) - db281b3d9 Feature: Suspend commit without blocking render (#26398) (Andrew Clark) - 6310087f0 [ci] Fix download_base_build_for_sizebot (#26422) (lauren) - 6854a3cf6 [difftrain] Fix broken workflow (#26421) (lauren) - 55308554e [www] enable enableFilterEmptyStringAttributesDOM flag (#26410) (Jan Kassens) - 163d86e19 Updated comment message (#26158) (Ibrahim Amin) - 108aed083 Fix use of stale props in Fabric events (#26408) (Rubén Norte) - 8fa41ffa2 Don't "fix up" mismatched text content with suppressedHydrationWarning (#26391) (Sebastian Markbåge) - 87c803d1d Fix a test case in ReactUpdates-test (#26399) (Tianyu Yao) - eaccf27c2 Revert "Remove hydrate entry point from www builds" (#26413) (Jan Kassens) - 480aa7785 Remove hydrate entry point from www builds (#26400) (Sebastian Markbåge) - 9941cbaca Fix devtools tests after internal test changes (#26405) (Ricky) - e4606c1e0 Add missing `"react-dom/server.bun"` entry in package.json `"exports"` (#26402) (Jarred Sumner) - 05777ffb0 Setting transition pending flag shouldn't be part of a surrounding transition (#26243) (Sophie Alpert) - 21f6dba6a Sync from oss-experimental, not oss-stable (#26401) (Ricky) - 99aa082be Remove unstable_flushControlled (#26397) (Jan Kassens) - 47cf4e578 Restore some guards in ReactFabricGlobalResponderHandler after refactor (#26394) (Rubén Norte) - cfc1274e3 Disable IE innerHTML workaround behind a flag (#26390) (Sebastian Markbåge) - a57f40d83 Undo dependency injection of batching (#26389) (Sebastian Markbåge) - d310d654a Avoid meta programming to initialize functions in module scope (#26388) (Sebastian Markbåge) - 21aee59e4 Delete unused DOM files (#26387) (Sebastian Markbåge) - 56a3c18e5 [Flight fixture] Remove redundant `use` (#26373) (Andrew Clark) - 6bd53a5bd Remove FeatureFlags fork for `react-dom/unstable_testing` (#26383) (Sebastian Markbåge) - 2788d0d8d Allow empty string to be passed to formAction (#26379) (Sebastian Markbåge) - f828bad38 Extracted definition and access to public instances to a separate module in Fabric (#26321) (Rubén Norte) - cd20376f0 Remove internal `act` from DevTools e2e test (#26376) (Andrew Clark) - 131768166 Support Context as renderable node (#25641) (Andrew Clark) - d4f58c3b8 Support Promise as a renderable node (#25634) (Andrew Clark) - f411e8990 Remote `.internal` override from untrusted URL tests (#26372) (Andrew Clark) - 633461486 Add disableLegacyContext test gates where needed (#26371) (Andrew Clark) - 432ffc9d0 Convert more Scheduler.unstable_flushAll in tests to new test utils (#26369) (Tianyu Yao) - 774111855 [Flight Fixture] Fix proxying with compression (#26368) (Sebastian Markbåge) - 69fd78fe3 Update Float tests to check for specific errors (#26367) (Andrew Clark) - 93c10dfa6 flushSync: Exhaust queue even if something throws (#26366) (Andrew Clark) - a22bd995c [DevTools] prevent StyleX plugin from throwing when inspecting CSS (#26364) (Mengdi Chen) - be353d251 [Flight Reply] Add undefined and Iterable Support (#26365) (Sebastian Markbåge) - ef8bdbecb [Flight Reply] Add Reply Encoding (#26360) (Sebastian Markbåge) - a8875eab7 Update more tests to not rely on sync queuing (#26358) (Andrew Clark) - d1ad984db [Flight] Add support for returning `undefined` from render (#26349) (Sebastian Silbermann) - 39d4b9365 [Internal tests] Close MessageChannel port to prevent leak (#26357) (Andrew Clark)
2023-03-22 21:26:46 +01:00
"react-builtin": "npm:react@18.3.0-next-12a1d140e-20230321",
"react-dom": "18.2.0",
"react-dom-17": "npm:react-dom@17.0.2",
upgrade vendored React to `18.3.0-next-12a1d140e-20230321` (#47405) Includes the following upstream changes: - 12a1d140e Don't prerender siblings of suspended component (#26380) (Andrew Clark) - 77ba1618a Bugfix: Remove extra render pass when reverting to client render (#26445) (Andrew Clark) - 520f7f3ed Refactor ReactDOMComponent to use flatter property operations (#26433) (Sebastian Markbåge) - 0131d0cff Check if suspensey instance resolves in immediate task (#26427) (Andrew Clark) - 3554c8852 Clean interface for public instances between React and React Native (#26416) (Rubén Norte) - c57b90f50 [DiffTrain] Add artifacts for React Native to compiled (#26204) (Samuel Susla) - 842bd787a Fix sizebot not working due to missing auth token (#26423) (Andrew Clark) - db281b3d9 Feature: Suspend commit without blocking render (#26398) (Andrew Clark) - 6310087f0 [ci] Fix download_base_build_for_sizebot (#26422) (lauren) - 6854a3cf6 [difftrain] Fix broken workflow (#26421) (lauren) - 55308554e [www] enable enableFilterEmptyStringAttributesDOM flag (#26410) (Jan Kassens) - 163d86e19 Updated comment message (#26158) (Ibrahim Amin) - 108aed083 Fix use of stale props in Fabric events (#26408) (Rubén Norte) - 8fa41ffa2 Don't "fix up" mismatched text content with suppressedHydrationWarning (#26391) (Sebastian Markbåge) - 87c803d1d Fix a test case in ReactUpdates-test (#26399) (Tianyu Yao) - eaccf27c2 Revert "Remove hydrate entry point from www builds" (#26413) (Jan Kassens) - 480aa7785 Remove hydrate entry point from www builds (#26400) (Sebastian Markbåge) - 9941cbaca Fix devtools tests after internal test changes (#26405) (Ricky) - e4606c1e0 Add missing `"react-dom/server.bun"` entry in package.json `"exports"` (#26402) (Jarred Sumner) - 05777ffb0 Setting transition pending flag shouldn't be part of a surrounding transition (#26243) (Sophie Alpert) - 21f6dba6a Sync from oss-experimental, not oss-stable (#26401) (Ricky) - 99aa082be Remove unstable_flushControlled (#26397) (Jan Kassens) - 47cf4e578 Restore some guards in ReactFabricGlobalResponderHandler after refactor (#26394) (Rubén Norte) - cfc1274e3 Disable IE innerHTML workaround behind a flag (#26390) (Sebastian Markbåge) - a57f40d83 Undo dependency injection of batching (#26389) (Sebastian Markbåge) - d310d654a Avoid meta programming to initialize functions in module scope (#26388) (Sebastian Markbåge) - 21aee59e4 Delete unused DOM files (#26387) (Sebastian Markbåge) - 56a3c18e5 [Flight fixture] Remove redundant `use` (#26373) (Andrew Clark) - 6bd53a5bd Remove FeatureFlags fork for `react-dom/unstable_testing` (#26383) (Sebastian Markbåge) - 2788d0d8d Allow empty string to be passed to formAction (#26379) (Sebastian Markbåge) - f828bad38 Extracted definition and access to public instances to a separate module in Fabric (#26321) (Rubén Norte) - cd20376f0 Remove internal `act` from DevTools e2e test (#26376) (Andrew Clark) - 131768166 Support Context as renderable node (#25641) (Andrew Clark) - d4f58c3b8 Support Promise as a renderable node (#25634) (Andrew Clark) - f411e8990 Remote `.internal` override from untrusted URL tests (#26372) (Andrew Clark) - 633461486 Add disableLegacyContext test gates where needed (#26371) (Andrew Clark) - 432ffc9d0 Convert more Scheduler.unstable_flushAll in tests to new test utils (#26369) (Tianyu Yao) - 774111855 [Flight Fixture] Fix proxying with compression (#26368) (Sebastian Markbåge) - 69fd78fe3 Update Float tests to check for specific errors (#26367) (Andrew Clark) - 93c10dfa6 flushSync: Exhaust queue even if something throws (#26366) (Andrew Clark) - a22bd995c [DevTools] prevent StyleX plugin from throwing when inspecting CSS (#26364) (Mengdi Chen) - be353d251 [Flight Reply] Add undefined and Iterable Support (#26365) (Sebastian Markbåge) - ef8bdbecb [Flight Reply] Add Reply Encoding (#26360) (Sebastian Markbåge) - a8875eab7 Update more tests to not rely on sync queuing (#26358) (Andrew Clark) - d1ad984db [Flight] Add support for returning `undefined` from render (#26349) (Sebastian Silbermann) - 39d4b9365 [Internal tests] Close MessageChannel port to prevent leak (#26357) (Andrew Clark)
2023-03-22 21:26:46 +01:00
"react-dom-builtin": "npm:react-dom@18.3.0-next-12a1d140e-20230321",
"react-server-dom-webpack": "18.3.0-next-12a1d140e-20230321",
"react-ssr-prepass": "1.0.8",
"react-virtualized": "9.22.3",
"relay-compiler": "13.0.2",
"relay-runtime": "13.0.2",
2022-06-24 22:02:40 +02:00
"release": "6.3.1",
"request-promise-core": "1.1.2",
"resolve-from": "5.0.0",
"rimraf": "3.0.2",
"sass": "1.54.0",
"seedrandom": "3.0.5",
"selenium-webdriver": "4.0.0-beta.4",
"semver": "7.3.7",
2021-10-29 18:12:46 +02:00
"shell-quote": "1.7.3",
"strip-ansi": "6.0.0",
"styled-components": "6.0.0-beta.5",
"styled-jsx": "5.1.1",
"styled-jsx-plugin-postcss": "3.0.2",
2023-01-12 18:36:29 +01:00
"swr": "^2.0.0",
feat(cli): introduce `--tailwind` flag (#46927) ### What? This PR introduces a new `--tailwind` flag to the `create-next-app` CLI, to make it easier to bootstrap a Next.js app with Tailwind CSS pre-configured. This is going to be the **default**. To opt-out of Tailwind CSS, you can use the `--no-tailwind` flag. ### Why? Tailwind CSS is one of the most popular styling solutions right now, and we would like to make it easier to get started. Currently, the closest you can come to this is by running `pnpm create next-app -e with-tailwindcss` which will clone the https://github.com/vercel/next.js/tree/canary/examples/with-tailwindcss example. But that example is not configured for the App Router. This PR will let you add Tailwind CSS to both `app/`, `pages/`, and start out with TypeScript or JavaScript via the CLI prompts. (Some community feedback https://twitter.com/dev_jonaskaas/status/1632367991827443713, https://twitter.com/samselikoff/status/1634662473331617794) ### How? We are adding 4 new templates to the CLI bundle. > Note: The styling is not pixel-perfect compared to the current templates (using CSS modules) to require fewer overrides, but I tried to match it as close as possible. Here are a few screenshots: <details> <summary><b>Current, light</b></summary> <img src="https://user-images.githubusercontent.com/18369201/224733372-9dba86fe-9191-471d-ad9f-ab904c47f544.png"/> </details> <details> <summary><b>Tailwind (new), light</b></summary> <img src="https://user-images.githubusercontent.com/18369201/224733610-038d9d0f-634d-4b69-b5c2-a5056b56760c.png"/> </details> <details> <summary><b>Current, dark, responsive</b></summary> <img src="https://user-images.githubusercontent.com/18369201/224733790-9b4d730c-0336-4dbe-bc10-1cae1d7fd145.png"/> </details> <details> <summary><b>Tailwind (new), dark, responsive</b></summary> <img src="https://user-images.githubusercontent.com/18369201/224734375-28384bbc-2c3a-4125-8f29-c102f3b7aa1d.png"/> </details> #### For reviewers This introduces 4 new templates, with a very similar code base to the original ones. To keep the PR focused, I decided to copy over duplicate code, but we could potentially create a shared folder for files that are the same across templates to somewhat reduce the CLI size. Not sure if it's worth it, let me know. Probably fine for now, but something to consider if we are adding more permutations in the future. --- ~Work remaining:~ - [x] app+ts - [x] layout - [x] dark mode - [x] media queries - [x] animations - [x] app+js - [x] pages+ts - [x] pages+js - [x] prompt/config - [x] deprecate Tailwind CSS example in favor of CLI - [x] update docs - [x] add test - [x] add [Prettier plugin](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) Closes NEXT-772 Related #45814, #44286
2023-03-16 16:06:27 +01:00
"tailwindcss": "3.2.7",
2017-09-27 20:11:02 +02:00
"taskr": "1.1.0",
"tree-kill": "1.2.2",
2023-01-18 20:35:28 +01:00
"ts-node": "10.9.1",
"tsec": "0.2.1",
"turbo": "1.6.3",
"typescript": "4.8.2",
"unfetch": "4.2.0",
"wait-port": "0.2.2",
"webpack": "5.74.0",
"webpack-bundle-analyzer": "4.7.0",
"whatwg-fetch": "3.0.0",
"ws": "8.2.3"
},
"resolutions": {
"browserslist": "4.20.2",
"caniuse-lite": "1.0.30001406",
"@babel/core": "7.18.0",
"@babel/parser": "7.18.0",
"@babel/types": "7.18.0",
"@babel/traverse": "7.18.0"
},
"engines": {
"node": ">=14.6.0"
},
"packageManager": "pnpm@7.24.3"
2016-10-06 01:52:50 +02:00
}