language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/shake-exports/keep-default/output.js
@@ -1,4 +1,4 @@ -let shouldBeKept = "should be kept"; +let shouldBeKept = 'should be kept'; export default function shouldBeKept() { console.log(shouldBeKept); -} \ No newline at end of file +};
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/shake-exports/most-usecases/output.js
@@ -1,9 +1,9 @@ -let shouldBeKept = "should be kept"; +let shouldBeKept = 'should be kept'; export async function keep() { console.log(shouldBeKept); } -export let keep1 = "should be kept"; -export let keep2 = "should be kept"; -let keep3 = "should be kept"; -let asKeep = "should be kept"; -export { keep3, asKee...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getServerSideProps/destructuring-assignment-array/output.js
@@ -1,6 +1,6 @@ -import other from "other"; +import other from 'other'; const [foo] = other; export var __N_SSP = true; export default function Home() { return __jsx("div", null); -} +};
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/destructuring-assignment-array/output.js
@@ -1,6 +1,6 @@ -import other from 'other' -const [foo] = other -export var __N_SSG = true +import other from 'other'; +const [foo] = other; +export var __N_SSG = true; export default function Home() { - return __jsx('div', null) -} + return __jsx("div", null); +};
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/destructuring-assignment-object/output.js
@@ -1,6 +1,6 @@ -import other from 'other' -const { a, cat: bar } = other -export var __N_SSG = true +import other from 'other'; +const { a , cat: bar } = other; +export var __N_SSG = true; export default function Home() { - return __jsx('div', null) -} + return __jsx("div", null); +};
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-crash-for-class-declarations/output.js
@@ -1,5 +1,6 @@ -export var __N_SSG = true -export class MyClass {} -export default function Test() { - return __jsx('div', null) +export var __N_SSG = true; +export class MyClass { } +export default function Test() { + return __jsx("div", null); +};
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-remove-extra-named-export-function-declarations/output.js
@@ -1,5 +1,5 @@ -export var __N_SSG = true +export var __N_SSG = true; export function Noop() {} export default function Test() { - return __jsx('div', null) -} + return __jsx("div", null); +};
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-remove-extra-named-export-variable-declarations/output.js
@@ -1,5 +1,5 @@ -export var __N_SSG = true -export const foo = 2 +export var __N_SSG = true; +export const foo = 2; export default function Test() { - return __jsx('div', null) -} + return __jsx("div", null); +};
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-remove-import-used-in-render/output.js
@@ -1,15 +1,15 @@ -import { useState, useEffect } from "react"; -import { Root, Children, JSXMemberExpression, AttributeValue, AttributeJSX, ValueInRender, ValueInEffect } from "../"; +import { useState, useEffect } from 'react'; +import { Root, Children, JSXMemberExpression, AttributeValue, AttributeJSX, ValueInRender...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-combined-named-export-specifiers/output.js
@@ -1,4 +1,4 @@ -export var __N_SSG = true +export var __N_SSG = true; export default function Test() { - return __jsx('div', null) -} + return __jsx("div", null); +};
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-extra-named-export-speicifers/output.js
@@ -1,5 +1,5 @@ -export var __N_SSG = true -export { foo, bar as baz } from '.' +export var __N_SSG = true; +export { foo, bar as baz } from '.'; export default function Test() { - return __jsx('div', null) -} + return __jsx("div", null); +};
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-function-declarations-async/output.js
@@ -1,4 +1,4 @@ -export var __N_SSG = true +export var __N_SSG = true; export default function Test() { - return __jsx('div', null) -} + return __jsx("div", null); +};
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-function-declarations/output.js
@@ -1,4 +1,4 @@ -export var __N_SSG = true +export var __N_SSG = true; export default function Test() { - return __jsx('div', null) -} + return __jsx("div", null); +};
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-variable-declarations-async/output.js
@@ -1,4 +1,4 @@ -export var __N_SSG = true +export var __N_SSG = true; export default function Test() { - return __jsx('div', null) -} + return __jsx("div", null); +};
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-variable-declarations/output.js
@@ -1,4 +1,4 @@ -export var __N_SSG = true +export var __N_SSG = true; export default function Test() { - return __jsx('div', null) -} + return __jsx("div", null); +};
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-function-declarations-dependents-variables-functions-imports/output.js
@@ -1,10 +1,10 @@ -import keep_me from 'hello' -import { keep_me2 } from 'hello2' -import * as keep_me3 from 'hello3' -import { but_not_me } from 'bar' -var leave_me_alone = 1 +import keep_me from 'hello'; +import { keep_me2 } from 'hello2'; +import * as keep_me3 from 'hello3'; +import { but_not_me } from 'bar'; +var l...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-function-declarations/output.js
@@ -1,4 +1,4 @@ -export var __N_SSG = true +export var __N_SSG = true; export default function Test() { - return __jsx('div', null) -} + return __jsx("div", null); +};
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-variable-declarations-safe/output.js
@@ -1,5 +1,5 @@ -const a = 2 -export var __N_SSG = true +const a = 2; +export var __N_SSG = true; export default function Test() { - return __jsx('div', null) -} + return __jsx("div", null); +};
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-variable-declarations/output.js
@@ -1,4 +1,4 @@ -export var __N_SSG = true +export var __N_SSG = true; export default function Test() { - return __jsx('div', null) -} + return __jsx("div", null); +};
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-separate-named-export-specifiers/output.js
@@ -1,4 +1,4 @@ -export var __N_SSG = true +export var __N_SSG = true; export default function Test() { - return __jsx('div', null) -} + return __jsx("div", null); +};
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-babel-style-memoized-function/output.js
@@ -1,4 +1,4 @@ -export var __N_SSG = true +export var __N_SSG = true; export default function Home() { - return __jsx('div', null) -} + return __jsx("div", null); +};
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-class-exports-2/output.js
@@ -1,7 +1,7 @@ class Test extends React.Component { - render() { - return __jsx('div', null) - } + render() { + return __jsx("div", null); + } } -export var __N_SSG = true -export default Test +export var __N_SSG = true; +export default Test;
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-class-exports/output.js
@@ -1,6 +1,6 @@ -export var __N_SSG = true +export var __N_SSG = true; export default class Test extends React.Component { - render() { - return __jsx('div', null) - } -} + render() { + return __jsx("div", null); + } +};
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-export-named-as-default-with-a-class/output.js
@@ -1,8 +1,8 @@ class El extends React.Component { - render() { - return __jsx('div', null) - } + render() { + return __jsx("div", null); + } } -const a = 5 -export var __N_SSG = true -export { El as default, a } +const a = 5; +export var __N_SSG = true; +export { El as default, a };
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-export-named-as-default-with-other-specifiers/output.js
@@ -1,6 +1,6 @@ function El() { - return __jsx('div', null) + return __jsx("div", null); } -const a = 5 -export var __N_SSG = true -export { El as default, a } +const a = 5; +export var __N_SSG = true; +export { El as default, a };
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-named-export-as-default/output.js
@@ -1,5 +1,5 @@ function El() { - return __jsx('div', null) + return __jsx("div", null); } -export var __N_SSG = true -export { El as default } +export var __N_SSG = true; +export { El as default };
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/absent/output.js
@@ -1,5 +1,8 @@ const a = ()=><div > + <p >hi</p> - <style >{"woot"}</style> + + <style >{'woot'}</style> + </div> -; \ No newline at end of file +;
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/attribute-generation-classname-rewriting/output.js
@@ -1,6 +1,6 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>{ - const Element = "div"; + const Element = 'div'; return <div className={"jsx-abb4c2202db1a207"}> <div {...test.test} className={"jsx-abb4c2202db1a207" + " " + (test.test && test.test.className != null && test.test.cla...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/attribute-generation-modes/output.js
@@ -1,6 +1,6 @@ import _JSXStyle from "styled-jsx/style"; -import styles from "./styles"; -const styles2 = require("./styles2"); +import styles from './styles'; +const styles2 = require('./styles2'); // external only export const Test1 = ()=><div className={`jsx-${styles2.__hash} jsx-${styles.__hash}`}> @@ -26,7 +...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/css-selector-after-pseudo/output.js
@@ -2,9 +2,9 @@ import _JSXStyle from "styled-jsx/style"; function NavigationItem({ active , className , }) { return <span className={"jsx-2342aae4628612c6" + " " + (cn({ active - }, className, "navigation-item") || "")}> + }, className, 'navigation-item') || "")}> - <_JSXStyle id={"2342aae...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/different-jsx-ids/output.js
@@ -1,19 +1,19 @@ import _JSXStyle from "styled-jsx/style"; -const color = "red"; -const otherColor = "green"; -const A = ()=><div className={"jsx-319ecfcffea32bfb"}> +const color = 'red'; +const otherColor = 'green'; +const A = ()=><div className={"jsx-498d4e86e548e679"}> - <p className={"jsx-319ecfcffea32bfb"}>...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/dynamic-element-class/output.js
@@ -1,7 +1,7 @@ import _JSXStyle from "styled-jsx/style"; export default class { render() { - const Element = "div"; + const Element = 'div'; return <Element className={"jsx-f825b24bbab5b83b" + " " + "root"}> <p className={"jsx-f825b24bbab5b83b"}>dynamic element</p> @@ -11,7 +11...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/dynamic-element-external/output.js
@@ -1,9 +1,12 @@ import _JSXStyle from "styled-jsx/style"; -import styles from "./styles2"; +import styles from './styles2'; export default (({ level =1 })=>{ const Element = `h${level}`; return <Element className={`jsx-${styles.__hash}` + " " + "root"}> + <p className={`jsx-${styles.__hash}`}>dynam...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/dynamic-element/output.js
@@ -19,7 +19,7 @@ export const TestLowerCase = ({ level =1 })=>{ </element>; }; -const Element2 = "div"; +const Element2 = 'div'; export const Test2 = ()=>{ return <Element2 className="root"> @@ -29,7 +29,7 @@ export const Test2 = ()=>{ </Element2>; }; -export const Test3 = ({ Component ="div" ...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/expressions/output.js
@@ -1,89 +1,89 @@ import _JSXStyle from "styled-jsx/style"; const darken = (c)=>c ; -const color = "red"; -const otherColor = "green"; -const mediumScreen = "680px"; -const animationDuration = "200ms"; -const animationName = "my-cool-animation"; +const color = 'red'; +const otherColor = 'green'; +const mediumScreen ...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/external-stylesheet-global/output.js
@@ -1,12 +1,19 @@ import _JSXStyle from "styled-jsx/style"; -import styles, { foo as styles3 } from "./styles"; -const styles2 = require("./styles2"); +import styles, { foo as styles3 } from './styles'; +const styles2 = require('./styles2'); export default (()=><div > + <p >test</p> + <div >woot</div> + ...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/external-stylesheet-multi-line/output.js
@@ -1,7 +1,10 @@ import _JSXStyle from "styled-jsx/style"; -import styles from "./styles"; +import styles from './styles'; export default (()=><div className={`jsx-${styles.__hash}`}> + <p className={`jsx-${styles.__hash}`}>test</p> + <_JSXStyle id={styles.__hash}>{styles}</_JSXStyle> + </div> -); \ No n...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/external-stylesheet/output.js
@@ -1,7 +1,7 @@ import _JSXStyle from "styled-jsx/style"; -import styles from "./styles"; -const styles2 = require("./styles2"); -import { foo as styles3 } from "./styles"; +import styles from './styles'; +const styles2 = require('./styles2'); +import { foo as styles3 } from './styles'; export default (()=><div class...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/fragment/output.js
@@ -1,5 +1,5 @@ import _JSXStyle from "styled-jsx/style"; -import React from "react"; +import React from 'react'; export default (()=><> <p className={"jsx-6dd5f97e085c0297"}>Testing!!!</p>
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/issue-30480/output.js
@@ -1,14 +1,14 @@ import _JSXStyle from "styled-jsx/style"; export default (({ breakPoint })=><div className={_JSXStyle.dynamic([ [ - "42a6f8ca08e1a043", + "1568e0a11702cf40", [ breakPoint ] ] ])}> - <_JSXStyle id={"42a6f8ca...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/issue-31562-interpolation-in-mdea/output.js
@@ -3,7 +3,7 @@ export default class { render() { return <div className={_JSXStyle.dynamic([ [ - "5bbb77b0f67942dc", + "ac0c5daa02b1aeac", [ Typography.base.size.default, Typography.base.lineHeight, @@ -1...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/multiple-jsx/output.js
@@ -1,6 +1,6 @@ import _JSXStyle from "styled-jsx/style"; const attrs = { - id: "test" + id: 'test' }; const Test1 = ()=><div className={"jsx-a9535d7d5f32c3c4"}>
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/not-styled-jsx-tagged-templates/output.js
@@ -1,5 +1,5 @@ -import css from "hell"; -const color = "red"; +import css from 'hell'; +const color = 'red'; const bar = css` div { font-size: 3em; @@ -21,4 +21,4 @@ const Title = styled.h1` `; const AnotherTitle = Title.extend`color: blue;`; export const Component = ()=><AnotherTitle >My page</AnotherTitl...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/number-after-placeholder/output.js
@@ -1,17 +1,17 @@ import _JSXStyle from "styled-jsx/style"; import Link from "next/link"; export default function IndexPage() { - return <div className={"jsx-b642661fd6426842"}> + return <div className={"jsx-2339e3d61ab4470c"}> Hello World.{" "} <Link href="/about"> - <a className={"...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/styles/output.js
@@ -1,31 +1,31 @@ import _JSXStyle from "styled-jsx/style"; -import colors, { size } from "./constants"; -const color = "red"; +import colors, { size } from './constants'; +const color = 'red'; const bar = new String("div.jsx-aaed0341accea8f{font-size:3em}"); bar.__hash = "aaed0341accea8f"; const baz = new String("...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/too-many/output.js
@@ -1,8 +1,8 @@ import _JSXStyle from "styled-jsx/style"; -export const Red = ({ Component ="button" , })=>{ +export const Red = ({ Component ='button' , })=>{ return <Component className={_JSXStyle.dynamic([ [ - "ca900d186ad0e495", + "6c7c8cee856673a7", [ ...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-escape-1/output.js
@@ -5,7 +5,7 @@ export default class { <p className={"jsx-1f6cef12199c3a8f"}>test</p> - <_JSXStyle id={"1f6cef12199c3a8f"}>{"p.jsx-1f6cef12199c3a8f{content:\"`\"}"}</_JSXStyle> + <_JSXStyle id={"1f6cef12199c3a8f"}>{'p.jsx-1f6cef12199c3a8f{content:"`"}'}</_JSXStyle> </div>; }
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-escape-2/output.js
@@ -2,14 +2,14 @@ import _JSXStyle from "styled-jsx/style"; export default function Home({ fontFamily }) { return <div className={_JSXStyle.dynamic([ [ - "f804e2f486b6ac13", + "ae6b96ca586fe51a", [ fontFamily ] ] ])}> - ...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-1-as-property/output.js
@@ -3,25 +3,25 @@ export default class { render() { return <div className={_JSXStyle.dynamic([ [ - "e359801ddd3b3cb6", + "e1b0d3df4c8dcbf0", [ - inputSize ? "height: calc(2 * var(--a)) !important;" : "" + inp...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-2-as-part-of-value/output.js
@@ -3,7 +3,7 @@ export default class { render() { return <div className={_JSXStyle.dynamic([ [ - "1a799d9370a3a386", + "cdb278181c7e83cf", [ a[b], -1 * (c || 0), @@ -14,7 +14,7 @@ export default class { ...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-3-as-value/output.js
@@ -3,7 +3,7 @@ export default class { render() { return <div className={_JSXStyle.dynamic([ [ - "4ca4ef3595473f53", + "b249ec2f79615bbf", [ a ] @@ -12,14 +12,14 @@ export default class { <p clas...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-4-as-part-of-value-in-multiple/output.js
@@ -3,28 +3,28 @@ export default class { render() { return <div className={_JSXStyle.dynamic([ [ - "97886c1e9511aafa", + "6021be0687550489", [ - a || "var(--c)", - b || "inherit" + a || 'va...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-5-values-of-multiple-properties/output.js
@@ -3,28 +3,28 @@ export default class { render() { return <div className={_JSXStyle.dynamic([ [ - "bcc606c168bcd197", + "e2cf1d088389269b", [ - a ? "100%" : "200px", - b ? "0" : "8px 20px" + ...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/transform-css-global/output.js
@@ -3,7 +3,7 @@ export default (()=><div className={"jsx-53fd644ab080300c"}> <p className={"jsx-53fd644ab080300c"}>test</p> - <_JSXStyle id={"53fd644ab080300c"}>{"html.jsx-53fd644ab080300c{background-image:linear-gradient(0deg,rgba(255,255,255,.8),rgba(255,255,255,.8)),url(/static/background.svg)}p{color:bl...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/transform-css-media-query/output.js
@@ -3,7 +3,7 @@ export default (()=><div className={"jsx-1f7963ae04c6466a"}> <p className={"jsx-1f7963ae04c6466a"}>test</p> - <_JSXStyle id={"1f7963ae04c6466a"}>{"@media(min-width:1px)and (max-width:768px){[class*=\"grid__col--\"].jsx-1f7963ae04c6466a{margin-top:12px;margin-bottom:12px}}@media(max-width:64e...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/transform-css-normal/output.js
@@ -3,7 +3,7 @@ export default (()=><div className={"jsx-1a19bb4817c105dd"}> <p className={"jsx-1a19bb4817c105dd"}>test</p> - <_JSXStyle id={"1a19bb4817c105dd"}>{"p.jsx-1a19bb4817c105dd{color:red}p.jsx-1a19bb4817c105dd{color:red}*.jsx-1a19bb4817c105dd{color:blue}[href=\"woot\"].jsx-1a19bb4817c105dd{color:re...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/fixture/styled-jsx/transform-css/output.js
@@ -3,7 +3,7 @@ export default (()=><div className={"jsx-768337a97aceabd1"}> <p className={"jsx-768337a97aceabd1"}>test</p> - <_JSXStyle id={"768337a97aceabd1"}>{"html.jsx-768337a97aceabd1{background-image:linear-gradient(0deg,rgba(255,255,255,.8),rgba(255,255,255,.8)),url(/static/background.svg)}p{color:bl...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/loader/example/output.js
@@ -49,7 +49,7 @@ function _unsupportedIterableToArray(o, minLen) { if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -import other from 'other'; +import other from "other"; var _other = _...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/loader/issue-31627/output.js
@@ -3,8 +3,8 @@ function _classCallCheck(instance, Constructor) { throw new TypeError("Cannot call a class as a function"); } } -import { useEffect } from 'react'; -import { select, selectAll } from 'd3-selection'; +import { useEffect } from "react"; +import { select, selectAll } from "d3-selection"; ex...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/loader/issue-32553/output.js
@@ -1,2 +1,2 @@ /*#__PURE__*/ React.createElement("div", null, "children"); -'<>hello</>'; +"<>hello</>";
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/core/tests/loader/styled-components/1/output.js
@@ -17,7 +17,7 @@ function _templateObject() { }; return data; } -import styled from 'styled-components'; +import styled from "styled-components"; export var foo = styled.input.withConfig({ displayName: "input__foo", componentId: "sc-12c52e68-0"
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/napi/Cargo.toml
@@ -16,12 +16,12 @@ next-swc = {version = "0.0.0", path = "../core"} once_cell = "1.8.0" serde = "1" serde_json = "1" -swc = "0.150.1" -swc_atoms = "0.2.9" -swc_bundler = {version = "0.122.0", features = ["concurrent"]} -swc_common = {version = "0.17.15", features = ["concurrent", "sourcemap"]} -swc_ecma_loader = {v...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/napi/src/bundle/mod.rs
@@ -10,7 +10,11 @@ use std::{collections::HashMap, path::PathBuf, sync::Arc}; use swc::{config::SourceMapsConfig, try_with_handler, TransformOutput}; use swc_atoms::JsWord; use swc_bundler::{Bundler, ModuleData, ModuleRecord}; -use swc_common::{collections::AHashMap, errors::Handler, BytePos, FileName, SourceMap, Sp...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/napi/src/minify.rs
@@ -34,7 +34,7 @@ use napi::{CallContext, JsObject, Task}; use serde::Deserialize; use std::sync::Arc; use swc::{try_with_handler, TransformOutput}; -use swc_common::{sync::Lrc, FileName, SourceFile, SourceMap}; +use swc_common::{errors::ColorConfig, sync::Lrc, FileName, SourceFile, SourceMap}; struct MinifyTask ...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/napi/src/parse.rs
@@ -3,7 +3,7 @@ use anyhow::Context as _; use napi::{CallContext, Either, Env, JsObject, JsString, JsUndefined, Task}; use std::sync::Arc; use swc::{config::ParseOptions, try_with_handler}; -use swc_common::{comments::Comments, FileName, FilePathMapping, SourceMap}; +use swc_common::{comments::Comments, errors::Colo...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/napi/src/transform.rs
@@ -40,7 +40,7 @@ use std::{ sync::Arc, }; use swc::{try_with_handler, Compiler, TransformOutput}; -use swc_common::{FileName, SourceFile}; +use swc_common::{errors::ColorConfig, FileName, SourceFile}; use swc_ecmascript::ast::Program; use swc_ecmascript::transforms::pass::noop; @@ -65,48 +65,55 @@ impl Task...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/wasm/Cargo.toml
@@ -16,9 +16,9 @@ parking_lot_core = "=0.8.0" path-clean = "0.1" serde = {version = "1", features = ["derive"]} serde_json = "1" -swc = "0.150.1" -swc_common = {version = "0.17.14", features = ["concurrent", "sourcemap"]} -swc_ecmascript = {version = "0.132.0", features = ["codegen", "minifier", "optimization", "par...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
packages/next-swc/crates/wasm/src/lib.rs
@@ -3,7 +3,7 @@ use next_swc::{custom_before_pass, TransformOptions}; use once_cell::sync::Lazy; use std::sync::Arc; use swc::{config::JsMinifyOptions, try_with_handler, Compiler}; -use swc_common::{FileName, FilePathMapping, SourceMap}; +use swc_common::{errors::ColorConfig, FileName, FilePathMapping, SourceMap}; ...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
test/development/acceptance/__snapshots__/ReactRefreshLogBox-app-doc.test.ts.snap
@@ -2,17 +2,19 @@ exports[`ReactRefreshLogBox _app syntax error shows logbox 1`] = ` "./pages/_app.js -Error: error: Expression expected - - | -3 | return <<Component {...pageProps} />; - | ^ +Error: + x Expression expected + ,---- + 3 | return <<Component {...pageProps} /...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
test/development/acceptance/__snapshots__/ReactRefreshLogBox.test.ts.snap
@@ -68,11 +68,12 @@ exports[`ReactRefreshLogBox logbox: can recover from a event handler error 1`] = exports[`ReactRefreshLogBox logbox: can recover from a syntax error without losing state 1`] = ` "./index.js -Error: error: Unexpected eof - - | -1 | export default () => <div/ - | ^ +Er...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
test/integration/no-duplicate-compile-error/test/index.test.js
@@ -54,8 +54,7 @@ describe('no duplicate compile error output', () => { return (str.match(regex) || []).length } - const correctMessagesRegex = - /error - [^\r\n]+\r?\n[^\r\n]+Unexpected token/g + const correctMessagesRegex = /Caused by:/g const totalMessagesRegex = /Unexpected token/g ...
true
Other
vercel
next.js
fdfa3c7baef221e637edd76c8b13aa1950d26a1f.json
feat(next-swc): Update swc crates (#35395) * Update crates * fixup * fix type * Update test refs * Update css crates * Update test refs * Update test refs * Update test refs * SourceMap * Fix? * Update crates * Fix * Update test refs * Update test refs * Update error reporter ...
test/unit/next-swc.test.ts
@@ -23,10 +23,10 @@ describe('next/swc', () => { `) expect(output).toMatchInlineSnapshot(` - "import { useState } from 'react'; - var ref = useState(0), count = ref[0], setCount = ref[1]; - " - `) +"import { useState } from \\"react\\"; +var ref = useState(0), count = ref[0], s...
true
Other
vercel
next.js
7b3ec57c6240addf49a5cad9545488b465d442e4.json
Fix streaming SSR with multi-byte characters (#35724) When using streaming SSR decodeText is called repeatedly with incoming chunks of data. In that case a multi-byte character may occasionally split between chunks, causing corruption. By setting the TextDecoder option 'stream' to true, and reusing the same TextDec...
packages/next/server/node-web-streams-helper.ts
@@ -111,8 +111,10 @@ export function encodeText(input: string) { return new TextEncoder().encode(input) } -export function decodeText(input?: Uint8Array) { - return new TextDecoder().decode(input) +export function decodeText(input?: Uint8Array, textDecoder?: TextDecoder) { + return textDecoder + ? textDecode...
true
Other
vercel
next.js
7b3ec57c6240addf49a5cad9545488b465d442e4.json
Fix streaming SSR with multi-byte characters (#35724) When using streaming SSR decodeText is called repeatedly with incoming chunks of data. In that case a multi-byte character may occasionally split between chunks, causing corruption. By setting the TextDecoder option 'stream' to true, and reusing the same TextDec...
test/production/react-18-streaming-ssr/index.test.ts
@@ -69,6 +69,15 @@ describe('react 18 streaming SSR with custom next configs', () => { return <p>hello nextjs</p> } `, + 'pages/multi-byte.js': ` + export default function Page() { + return ( + <div> + <p>{"マルチバイト".repeat(28)}</p> +...
true
Other
vercel
next.js
0409b384cbc6ec5051740a7c3c737352663b0faf.json
Fix useStatic404 condition (#35749) Static optimization is now supported with concurrent features, this PR fixes the condition for `useStatic404`. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] I...
packages/next/build/index.ts
@@ -1394,9 +1394,7 @@ export default async function build( // Since custom _app.js can wrap the 404 page we have to opt-out of static optimization if it has getInitialProps // Only export the static 404 when there is no /_error present const useStatic404 = - !hasConcurrentFeatures && - !customA...
true
Other
vercel
next.js
0409b384cbc6ec5051740a7c3c737352663b0faf.json
Fix useStatic404 condition (#35749) Static optimization is now supported with concurrent features, this PR fixes the condition for `useStatic404`. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] I...
test/integration/react-streaming-and-server-components/test/switchable-runtime.test.js
@@ -113,7 +113,7 @@ describe('Without global runtime configuration', () => { /^[┌├└/]/.test(line) ) const expectedOutputLines = splitLines(` - ┌ λ /404 + ┌ ○ /404 ├ ℇ /edge ├ ℇ /edge-rsc ├ ○ /node
true
Other
vercel
next.js
0409b384cbc6ec5051740a7c3c737352663b0faf.json
Fix useStatic404 condition (#35749) Static optimization is now supported with concurrent features, this PR fixes the condition for `useStatic404`. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] I...
test/production/react-18-streaming-ssr/index.test.ts
@@ -38,6 +38,14 @@ describe('react 18 streaming SSR in minimal mode', () => { const html = await renderViaHTTP(next.url, '/') expect(html).toContain('static streaming') }) + + it('should have generated a static 404 page', async () => { + expect(await next.readFile('.next/server/pages/404.html')).toBeTr...
true
Other
vercel
next.js
ced204066198a695cc633d71358676fdc24c14b3.json
docs: fix typo in Script Component docs (#35731) Added missing closing double quote : `strategy="worker` -> `strategy="worker"` ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an exis...
docs/basic-features/script.md
@@ -154,7 +154,7 @@ npm run dev # ... ``` -Once setup is complete, defining `strategy="worker` will automatically instantiate Partytown in your application and off-load the script to a web worker. +Once setup is complete, defining `strategy="worker"` will automatically instantiate Partytown in your application and ...
false
Other
vercel
next.js
62bb3482fe40d57f7f1d3318c5d887d7f29da100.json
Fix Fast Refresh for React 18 (#35718) - Updates the React 18 test suite to the latest React version. - Upgrade `react-refresh` module Fixes #35518 Fixes #35703 ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ##...
package.json
@@ -146,9 +146,9 @@ "pretty-ms": "7.0.0", "random-seed": "0.3.0", "react": "17.0.2", - "react-18": "npm:react@18.0.0-rc.2", + "react-18": "npm:react@18.0.0", "react-dom": "17.0.2", - "react-dom-18": "npm:react-dom@18.0.0-rc.2", + "react-dom-18": "npm:react-dom@18.0.0", "react-ssr-pr...
true
Other
vercel
next.js
62bb3482fe40d57f7f1d3318c5d887d7f29da100.json
Fix Fast Refresh for React 18 (#35718) - Updates the React 18 test suite to the latest React version. - Upgrade `react-refresh` module Fixes #35518 Fixes #35703 ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ##...
packages/next/package.json
@@ -239,7 +239,7 @@ "querystring-es3": "0.2.1", "raw-body": "2.4.1", "react-is": "17.0.2", - "react-refresh": "0.8.3", + "react-refresh": "0.12.0", "react-server-dom-webpack": "0.0.0-experimental-577f2de46-20220320", "regenerator-runtime": "0.13.4", "sass-loader": "12.4.0",
true
Other
vercel
next.js
62bb3482fe40d57f7f1d3318c5d887d7f29da100.json
Fix Fast Refresh for React 18 (#35718) - Updates the React 18 test suite to the latest React version. - Upgrade `react-refresh` module Fixes #35518 Fixes #35703 ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ##...
packages/react-refresh-utils/package.json
@@ -19,7 +19,7 @@ "dev": "tsc -d -w -p tsconfig.json" }, "peerDependencies": { - "react-refresh": "0.8.3", + "react-refresh": "0.12.0", "webpack": "^4 || ^5" }, "peerDependenciesMeta": { @@ -28,6 +28,6 @@ } }, "devDependencies": { - "react-refresh": "0.8.3" + "react-refresh"...
true
Other
vercel
next.js
62bb3482fe40d57f7f1d3318c5d887d7f29da100.json
Fix Fast Refresh for React 18 (#35718) - Updates the React 18 test suite to the latest React version. - Upgrade `react-refresh` module Fixes #35518 Fixes #35703 ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ##...
run-tests.js
@@ -216,8 +216,8 @@ async function main() { // to avoid having to run yarn each time console.log('Creating Next.js install for isolated tests') const testStarter = await createNextInstall({ - react: 'latest', - 'react-dom': 'latest', + react: '17.0.2', + 'react-dom': '17.0.2', })...
true
Other
vercel
next.js
62bb3482fe40d57f7f1d3318c5d887d7f29da100.json
Fix Fast Refresh for React 18 (#35718) - Updates the React 18 test suite to the latest React version. - Upgrade `react-refresh` module Fixes #35518 Fixes #35703 ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ##...
test/development/basic/hmr.test.ts
@@ -22,6 +22,10 @@ describe('basic HMR', () => { pages: new FileRef(join(__dirname, 'hmr/pages')), components: new FileRef(join(__dirname, 'hmr/components')), }, + dependencies: { + react: 'latest', + 'react-dom': 'latest', + }, }) }) afterAll(() => next.destr...
true
Other
vercel
next.js
62bb3482fe40d57f7f1d3318c5d887d7f29da100.json
Fix Fast Refresh for React 18 (#35718) - Updates the React 18 test suite to the latest React version. - Upgrade `react-refresh` module Fixes #35518 Fixes #35703 ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ##...
test/e2e/next-head/index.test.ts
@@ -14,6 +14,10 @@ describe('should set-up next', () => { pages: new FileRef(join(__dirname, 'app/pages')), components: new FileRef(join(__dirname, 'app/components')), }, + dependencies: { + react: '17', + 'react-dom': '17', + }, }) }) afterAll(() => next.dest...
true
Other
vercel
next.js
62bb3482fe40d57f7f1d3318c5d887d7f29da100.json
Fix Fast Refresh for React 18 (#35718) - Updates the React 18 test suite to the latest React version. - Upgrade `react-refresh` module Fixes #35518 Fixes #35703 ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ##...
test/e2e/next-script-worker-strategy/index.test.ts
@@ -25,7 +25,11 @@ describe('experimental.nextScriptWorkers: false with no Partytown dependency', ( } `, }, - dependencies: {}, + // TODO: @housseindjirdeh: verify React 18 functionality + dependencies: { + react: '17.0.2', + 'react-dom': '17.0.2', + }, ...
true
Other
vercel
next.js
62bb3482fe40d57f7f1d3318c5d887d7f29da100.json
Fix Fast Refresh for React 18 (#35718) - Updates the React 18 test suite to the latest React version. - Upgrade `react-refresh` module Fixes #35518 Fixes #35703 ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ##...
test/lib/next-modes/base.ts
@@ -90,8 +90,8 @@ export class NextInstance { } else if (!skipIsolatedNext) { this.testDir = await createNextInstall( { - react: 'latest', - 'react-dom': 'latest', + react: '17.0.2', + 'react-dom': '17.0.2', ...this.dependencies, ...((this.p...
true
Other
vercel
next.js
62bb3482fe40d57f7f1d3318c5d887d7f29da100.json
Fix Fast Refresh for React 18 (#35718) - Updates the React 18 test suite to the latest React version. - Upgrade `react-refresh` module Fixes #35518 Fixes #35703 ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ##...
test/production/react-18-streaming-ssr/index.test.ts
@@ -24,8 +24,8 @@ describe('react 18 streaming SSR in minimal mode', () => { }, }, dependencies: { - react: '18.0.0-rc.2', - 'react-dom': '18.0.0-rc.2', + react: '18.0.0', + 'react-dom': '18.0.0', }, }) }) @@ -70,8 +70,8 @@ describe('react 18 streaming S...
true
Other
vercel
next.js
62bb3482fe40d57f7f1d3318c5d887d7f29da100.json
Fix Fast Refresh for React 18 (#35718) - Updates the React 18 test suite to the latest React version. - Upgrade `react-refresh` module Fixes #35518 Fixes #35703 ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ##...
yarn.lock
@@ -17778,20 +17778,20 @@ rc@^1.0.1, rc@^1.1.6, rc@^1.2.7, rc@^1.2.8: minimist "^1.2.0" strip-json-comments "~2.0.1" -"react-18@npm:react@18.0.0-rc.2": - version "18.0.0-rc.2" - resolved "https://registry.yarnpkg.com/react/-/react-18.0.0-rc.2.tgz#f54de68a912454331f7f718794fbf5e6c01eb855" - integrity sha5...
true
Other
vercel
next.js
53d1b00c7fd71f26c3b4ae1f987855d35b7fca04.json
fix the dynamic routing of middleware (#32601) * fix the dynamic routing of middleware * add middleware to dynamicRoutes of routes-manifest * remove unused import * fix middleware routing with static paths * update manifest version test * prevent to match with api route using regex * use iterator ins...
packages/next/build/index.ts
@@ -447,12 +447,18 @@ export default async function build( namedRegex?: string routeKeys?: { [key: string]: string } }> - dynamicRoutes: Array<{ - page: string - regex: string - namedRegex?: string - routeKeys?: { [key: string]: string } - }> + dynamic...
true
Other
vercel
next.js
53d1b00c7fd71f26c3b4ae1f987855d35b7fca04.json
fix the dynamic routing of middleware (#32601) * fix the dynamic routing of middleware * add middleware to dynamicRoutes of routes-manifest * remove unused import * fix middleware routing with static paths * update manifest version test * prevent to match with api route using regex * use iterator ins...
packages/next/server/base-server.ts
@@ -29,10 +29,9 @@ import { TEMPORARY_REDIRECT_STATUS, } from '../shared/lib/constants' import { - getRouteMatcher, - getRouteRegex, - getSortedRoutes, + getRoutingItems, isDynamicRoute, + RoutingItem, } from '../shared/lib/router/utils' import { setLazyProp, @@ -71,12 +70,6 @@ export type FindCompone...
true
Other
vercel
next.js
53d1b00c7fd71f26c3b4ae1f987855d35b7fca04.json
fix the dynamic routing of middleware (#32601) * fix the dynamic routing of middleware * add middleware to dynamicRoutes of routes-manifest * remove unused import * fix middleware routing with static paths * update manifest version test * prevent to match with api route using regex * use iterator ins...
packages/next/server/dev/next-dev-server.ts
@@ -34,10 +34,9 @@ import { DEV_MIDDLEWARE_MANIFEST, } from '../../shared/lib/constants' import { - getRouteMatcher, - getRouteRegex, - getSortedRoutes, + getRoutingItems, isDynamicRoute, + RoutingItem, } from '../../shared/lib/router/utils' import Server, { WrappedBuildError } from '../next-server' imp...
true
Other
vercel
next.js
53d1b00c7fd71f26c3b4ae1f987855d35b7fca04.json
fix the dynamic routing of middleware (#32601) * fix the dynamic routing of middleware * add middleware to dynamicRoutes of routes-manifest * remove unused import * fix middleware routing with static paths * update manifest version test * prevent to match with api route using regex * use iterator ins...
packages/next/server/next-server.ts
@@ -3,7 +3,7 @@ import type { Params, Route } from './router' import type { CacheFs } from '../shared/lib/utils' import type { MiddlewareManifest } from '../build/webpack/plugins/middleware-plugin' import type RenderResult from './render-result' -import type { FetchEventResult } from './web/types' +import type { Fet...
true
Other
vercel
next.js
53d1b00c7fd71f26c3b4ae1f987855d35b7fca04.json
fix the dynamic routing of middleware (#32601) * fix the dynamic routing of middleware * add middleware to dynamicRoutes of routes-manifest * remove unused import * fix middleware routing with static paths * update manifest version test * prevent to match with api route using regex * use iterator ins...
packages/next/server/router.ts
@@ -66,14 +66,16 @@ export default class Router { basePath: string headers: Route[] fsRoutes: Route[] + internalFsRoutes: Route[] redirects: Route[] rewrites: { beforeFiles: Route[] afterFiles: Route[] fallback: Route[] } catchAllRoute: Route - catchAllMiddleware?: Route + catchAl...
true
Other
vercel
next.js
53d1b00c7fd71f26c3b4ae1f987855d35b7fca04.json
fix the dynamic routing of middleware (#32601) * fix the dynamic routing of middleware * add middleware to dynamicRoutes of routes-manifest * remove unused import * fix middleware routing with static paths * update manifest version test * prevent to match with api route using regex * use iterator ins...
packages/next/server/web-server.ts
@@ -81,7 +81,10 @@ export default class NextWebServer extends BaseServer { protected getMiddleware() { return [] } - protected generateCatchAllMiddlewareRoute() { + protected generateCatchAllStaticMiddlewareRoute() { + return undefined + } + protected generateCatchAllDynamicMiddlewareRoute() { re...
true
Other
vercel
next.js
53d1b00c7fd71f26c3b4ae1f987855d35b7fca04.json
fix the dynamic routing of middleware (#32601) * fix the dynamic routing of middleware * add middleware to dynamicRoutes of routes-manifest * remove unused import * fix middleware routing with static paths * update manifest version test * prevent to match with api route using regex * use iterator ins...
packages/next/shared/lib/router/router.ts
@@ -36,8 +36,8 @@ import { searchParamsToUrlQuery } from './utils/querystring' import resolveRewrites from './utils/resolve-rewrites' import { getRouteMatcher } from './utils/route-matcher' import { getRouteRegex } from './utils/route-regex' -import { getMiddlewareRegex } from './utils/get-middleware-regex' import ...
true
Other
vercel
next.js
53d1b00c7fd71f26c3b4ae1f987855d35b7fca04.json
fix the dynamic routing of middleware (#32601) * fix the dynamic routing of middleware * add middleware to dynamicRoutes of routes-manifest * remove unused import * fix middleware routing with static paths * update manifest version test * prevent to match with api route using regex * use iterator ins...
packages/next/shared/lib/router/utils/get-middleware-regex.ts
@@ -1,12 +1,20 @@ import { getParametrizedRoute, RouteRegex } from './route-regex' +// Identify ^/[param]/ in route string +const FIRST_SEGMENT_DYNAMIC = /^\/\[[^/]+?\](?=\/|$)/ + +const NOT_API_ROUTE = '(?!/api(?:/|$))' + export function getMiddlewareRegex( normalizedRoute: string, catchAll: boolean = true ...
true
Other
vercel
next.js
53d1b00c7fd71f26c3b4ae1f987855d35b7fca04.json
fix the dynamic routing of middleware (#32601) * fix the dynamic routing of middleware * add middleware to dynamicRoutes of routes-manifest * remove unused import * fix middleware routing with static paths * update manifest version test * prevent to match with api route using regex * use iterator ins...
packages/next/shared/lib/router/utils/index.ts
@@ -1,5 +1,6 @@ export { getMiddlewareRegex } from './get-middleware-regex' export { getRouteMatcher } from './route-matcher' export { getRouteRegex } from './route-regex' +export { getRoutingItems, RoutingItem } from './routing-items' export { getSortedRoutes } from './sorted-routes' export { isDynamicRoute } fro...
true
Other
vercel
next.js
53d1b00c7fd71f26c3b4ae1f987855d35b7fca04.json
fix the dynamic routing of middleware (#32601) * fix the dynamic routing of middleware * add middleware to dynamicRoutes of routes-manifest * remove unused import * fix middleware routing with static paths * update manifest version test * prevent to match with api route using regex * use iterator ins...
packages/next/shared/lib/router/utils/routing-items.ts
@@ -0,0 +1,42 @@ +import { getMiddlewareRegex } from './get-middleware-regex' +import { getRouteMatcher } from './route-matcher' +import { getRouteRegex } from './route-regex' +import { getSortedRoutes } from './sorted-routes' + +const MIDDLEWARE_SUFFIX = '/_middleware' + +export interface RoutingItem { + page: string...
true
Other
vercel
next.js
53d1b00c7fd71f26c3b4ae1f987855d35b7fca04.json
fix the dynamic routing of middleware (#32601) * fix the dynamic routing of middleware * add middleware to dynamicRoutes of routes-manifest * remove unused import * fix middleware routing with static paths * update manifest version test * prevent to match with api route using regex * use iterator ins...
packages/next/shared/lib/router/utils/sorted-routes.ts
@@ -4,6 +4,7 @@ class UrlNode { slugName: string | null = null restSlugName: string | null = null optionalRestSlugName: string | null = null + isMiddleware: boolean = false insert(urlPath: string): void { this._insert(urlPath.split('/').filter(Boolean), [], false) @@ -24,6 +25,9 @@ class UrlNode { ...
true
Other
vercel
next.js
53d1b00c7fd71f26c3b4ae1f987855d35b7fca04.json
fix the dynamic routing of middleware (#32601) * fix the dynamic routing of middleware * add middleware to dynamicRoutes of routes-manifest * remove unused import * fix middleware routing with static paths * update manifest version test * prevent to match with api route using regex * use iterator ins...
test/integration/custom-routes/test/index.test.js
@@ -1201,7 +1201,7 @@ const runTests = (isDev = false) => { } expect(manifest).toEqual({ - version: 3, + version: 4, pages404: true, basePath: '', dataRoutes: [
true