gatsby 5.7.0 → 5.8.0-alpha-react-profiling-env.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ### [5.6.1](https://github.com/gatsbyjs/gatsby/commits/gatsby@5.6.1/packages/gatsby) (2023-02-16)
7
+
8
+ #### Bug Fixes
9
+
10
+ - Adjust framework chunk overwrite [#37658](https://github.com/gatsbyjs/gatsby/issues/37658) [#37666](https://github.com/gatsbyjs/gatsby/issues/37666) ([b5978a6](https://github.com/gatsbyjs/gatsby/commit/b5978a6a0f3e15f4470decf7ae1c5756dc2d85b2))
11
+
6
12
  ## [5.6.0](https://github.com/gatsbyjs/gatsby/commits/gatsby@5.6.0/packages/gatsby) (2023-02-07)
7
13
 
8
14
  [🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v5.6)
@@ -52,8 +52,8 @@ if (process.env.BUILD_STAGE === `develop`) {
52
52
  // https://github.com/facebook/react/blob/e2424f33b3ad727321fc12e75c5e94838e84c2b5/packages/react-dom-bindings/src/client/validateDOMNesting.js#L498-L520
53
53
  const originalConsoleError = console.error.bind(console);
54
54
  console.error = (...args) => {
55
- var _args$;
56
- if (Array.isArray(args) && args.length >= 2 && (_args$ = args[0]) !== null && _args$ !== void 0 && _args$.includes(`validateDOMNesting(...): %s cannot appear as`) && (args[1] === `<html>` || args[1] === `<body>`)) {
55
+ var _args$, _args$$includes;
56
+ if (Array.isArray(args) && args.length >= 2 && (_args$ = args[0]) !== null && _args$ !== void 0 && (_args$$includes = _args$.includes) !== null && _args$$includes !== void 0 && _args$$includes.call(_args$, `validateDOMNesting(...): %s cannot appear as`) && (args[1] === `<html>` || args[1] === `<body>`)) {
57
57
  return undefined;
58
58
  }
59
59
  return originalConsoleError(...args);
@@ -1 +1 @@
1
- {"version":3,"file":"head-export-handler-for-browser.js","names":["hiddenRoot","document","createElement","keysOfHtmlAndBodyAttributes","html","body","onHeadRendered","validHeadNodes","htmlAndBodyAttributes","getValidHeadNodesAndAttributes","Object","keys","applyHtmlAndBodyAttributes","existingHeadElements","querySelectorAll","length","head","append","newHeadNodes","diffNodes","oldNodes","newNodes","onStale","node","parentNode","removeChild","onNew","push","process","env","BUILD_STAGE","originalConsoleError","console","error","bind","args","Array","isArray","includes","undefined","observer","MutationObserver","observe","attributes","childList","characterData","subtree","headHandlerForBrowser","pageComponent","staticQueryResults","pageComponentProps","useEffect","Head","headExportValidator","render","reactDOMUtils","HeadElement","filterHeadProps","WrapHeadElement","apiRunner","element","result","pop","removePrevHeadElements","removeHtmlAndBodyAttributes"],"sources":["../../head/head-export-handler-for-browser.js"],"sourcesContent":["import React from \"react\"\nimport { useEffect } from \"react\"\nimport { StaticQueryContext } from \"gatsby\"\nimport { LocationProvider } from \"@gatsbyjs/reach-router\"\nimport { reactDOMUtils } from \"../react-dom-utils\"\nimport { FireCallbackInEffect } from \"./components/fire-callback-in-effect\"\nimport {\n headExportValidator,\n filterHeadProps,\n diffNodes,\n getValidHeadNodesAndAttributes,\n removePrevHeadElements,\n applyHtmlAndBodyAttributes,\n removeHtmlAndBodyAttributes,\n} from \"./utils\"\nimport { apiRunner } from \"../api-runner-browser\"\n\nconst hiddenRoot = document.createElement(`div`)\nconst keysOfHtmlAndBodyAttributes = {\n html: [],\n body: [],\n}\n\nconst onHeadRendered = () => {\n const { validHeadNodes, htmlAndBodyAttributes } =\n getValidHeadNodesAndAttributes(hiddenRoot)\n\n keysOfHtmlAndBodyAttributes.html = Object.keys(htmlAndBodyAttributes.html)\n keysOfHtmlAndBodyAttributes.body = Object.keys(htmlAndBodyAttributes.body)\n\n applyHtmlAndBodyAttributes(htmlAndBodyAttributes)\n\n /**\n * The rest of the code block below is a diffing mechanism to ensure that\n * the head elements aren't duplicted on every re-render.\n */\n const existingHeadElements = document.querySelectorAll(`[data-gatsby-head]`)\n\n if (existingHeadElements.length === 0) {\n document.head.append(...validHeadNodes)\n return\n }\n\n const newHeadNodes = []\n diffNodes({\n oldNodes: existingHeadElements,\n newNodes: validHeadNodes,\n onStale: node => node.parentNode.removeChild(node),\n onNew: node => newHeadNodes.push(node),\n })\n\n document.head.append(...newHeadNodes)\n}\n\nif (process.env.BUILD_STAGE === `develop`) {\n // sigh ... <html> and <body> elements are not valid descedents of <div> (our hidden element)\n // react-dom in dev mode will warn about this. There doesn't seem to be a way to render arbitrary\n // user Head without hitting this issue (our hidden element could be just \"new Document()\", but\n // this can only have 1 child, and we don't control what is being rendered so that's not an option)\n // instead we continue to render to <div>, and just silence warnings for <html> and <body> elements\n // https://github.com/facebook/react/blob/e2424f33b3ad727321fc12e75c5e94838e84c2b5/packages/react-dom-bindings/src/client/validateDOMNesting.js#L498-L520\n const originalConsoleError = console.error.bind(console)\n console.error = (...args) => {\n if (\n Array.isArray(args) &&\n args.length >= 2 &&\n args[0]?.includes(`validateDOMNesting(...): %s cannot appear as`) &&\n (args[1] === `<html>` || args[1] === `<body>`)\n ) {\n return undefined\n }\n return originalConsoleError(...args)\n }\n\n /* We set up observer to be able to regenerate <head> after react-refresh\n updates our hidden element.\n */\n const observer = new MutationObserver(onHeadRendered)\n observer.observe(hiddenRoot, {\n attributes: true,\n childList: true,\n characterData: true,\n subtree: true,\n })\n}\n\nexport function headHandlerForBrowser({\n pageComponent,\n staticQueryResults,\n pageComponentProps,\n}) {\n useEffect(() => {\n if (pageComponent?.Head) {\n headExportValidator(pageComponent.Head)\n\n const { render } = reactDOMUtils()\n\n const HeadElement = (\n <pageComponent.Head {...filterHeadProps(pageComponentProps)} />\n )\n\n const WrapHeadElement = apiRunner(\n `wrapRootElement`,\n { element: HeadElement },\n HeadElement,\n ({ result }) => {\n return { element: result }\n }\n ).pop()\n\n render(\n // just a hack to call the callback after react has done first render\n // Note: In dev, we call onHeadRendered twice( in FireCallbackInEffect and after mutualution observer dectects initail render into hiddenRoot) this is for hot reloading\n // In Prod we only call onHeadRendered in FireCallbackInEffect to render to head\n <FireCallbackInEffect callback={onHeadRendered}>\n <StaticQueryContext.Provider value={staticQueryResults}>\n <LocationProvider>{WrapHeadElement}</LocationProvider>\n </StaticQueryContext.Provider>\n </FireCallbackInEffect>,\n hiddenRoot\n )\n }\n\n return () => {\n removePrevHeadElements()\n removeHtmlAndBodyAttributes(keysOfHtmlAndBodyAttributes)\n }\n })\n}\n"],"mappings":";;;;AAAA;AAEA;AACA;AACA;AACA;AACA;AASA;AAAiD;AAAA;AAEjD,MAAMA,UAAU,GAAGC,QAAQ,CAACC,aAAa,CAAE,KAAI,CAAC;AAChD,MAAMC,2BAA2B,GAAG;EAClCC,IAAI,EAAE,EAAE;EACRC,IAAI,EAAE;AACR,CAAC;AAED,MAAMC,cAAc,GAAG,MAAM;EAC3B,MAAM;IAAEC,cAAc;IAAEC;EAAsB,CAAC,GAC7C,IAAAC,qCAA8B,EAACT,UAAU,CAAC;EAE5CG,2BAA2B,CAACC,IAAI,GAAGM,MAAM,CAACC,IAAI,CAACH,qBAAqB,CAACJ,IAAI,CAAC;EAC1ED,2BAA2B,CAACE,IAAI,GAAGK,MAAM,CAACC,IAAI,CAACH,qBAAqB,CAACH,IAAI,CAAC;EAE1E,IAAAO,iCAA0B,EAACJ,qBAAqB,CAAC;;EAEjD;AACF;AACA;AACA;EACE,MAAMK,oBAAoB,GAAGZ,QAAQ,CAACa,gBAAgB,CAAE,oBAAmB,CAAC;EAE5E,IAAID,oBAAoB,CAACE,MAAM,KAAK,CAAC,EAAE;IACrCd,QAAQ,CAACe,IAAI,CAACC,MAAM,CAAC,GAAGV,cAAc,CAAC;IACvC;EACF;EAEA,MAAMW,YAAY,GAAG,EAAE;EACvB,IAAAC,gBAAS,EAAC;IACRC,QAAQ,EAAEP,oBAAoB;IAC9BQ,QAAQ,EAAEd,cAAc;IACxBe,OAAO,EAAEC,IAAI,IAAIA,IAAI,CAACC,UAAU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MAEvC,MAAM;QAAEE;MAAO,CAAC,GAAG,IAAAC,4BAAa,GAAE;MAElC,MAAMC,WAAW,gBACf,6BAAC,aAAa,CAAC,IAAI,EAAK,IAAAC,sBAAe,EAACP,kBAAkB,CAAC,CAC5D;MAED,MAAMQ,eAAe,GAAG,IAAAC,2BAAS,EAC9B,iBAAgB,EACjB;QAAEC,OAAO,EAAEJ;MAAY,CAAC,EACxBA,WAAW,EACX,CAAC;QAAEK;MAAO,CAAC,KAAK;QACd,OAAO;UAAED,OAAO,EAAEC;QAAO,CAAC;MAC5B,CAAC,CACF,CAACC,GAAG,EAAE;MAEPR,MAAM;MAAA;MACJ;MACA;MACA;MACA,6BAAC,0CAAoB;QAAC,QAAQ,EAAEhD;MAAe,gBAC7C,6BAAC,0BAAkB,CAAC,QAAQ;QAAC,KAAK,EAAE2C;MAAmB,gBACrD,6BAAC,6BAAgB,QAAES,eAAe,CAAoB,CAC1B,CACT,EACvB1D,UAAU,CACX;IACH;IAEA,OAAO,MAAM;MACX,IAAA+D,6BAAsB,GAAE;MACxB,IAAAC,kCAA2B,EAAC7D,2BAA2B,CAAC;IAC1D,CAAC;EACH,CAAC,CAAC;AACJ"}
1
+ {"version":3,"file":"head-export-handler-for-browser.js","names":["hiddenRoot","document","createElement","keysOfHtmlAndBodyAttributes","html","body","onHeadRendered","validHeadNodes","htmlAndBodyAttributes","getValidHeadNodesAndAttributes","Object","keys","applyHtmlAndBodyAttributes","existingHeadElements","querySelectorAll","length","head","append","newHeadNodes","diffNodes","oldNodes","newNodes","onStale","node","parentNode","removeChild","onNew","push","process","env","BUILD_STAGE","originalConsoleError","console","error","bind","args","Array","isArray","includes","undefined","observer","MutationObserver","observe","attributes","childList","characterData","subtree","headHandlerForBrowser","pageComponent","staticQueryResults","pageComponentProps","useEffect","Head","headExportValidator","render","reactDOMUtils","HeadElement","filterHeadProps","WrapHeadElement","apiRunner","element","result","pop","removePrevHeadElements","removeHtmlAndBodyAttributes"],"sources":["../../head/head-export-handler-for-browser.js"],"sourcesContent":["import React from \"react\"\nimport { useEffect } from \"react\"\nimport { StaticQueryContext } from \"gatsby\"\nimport { LocationProvider } from \"@gatsbyjs/reach-router\"\nimport { reactDOMUtils } from \"../react-dom-utils\"\nimport { FireCallbackInEffect } from \"./components/fire-callback-in-effect\"\nimport {\n headExportValidator,\n filterHeadProps,\n diffNodes,\n getValidHeadNodesAndAttributes,\n removePrevHeadElements,\n applyHtmlAndBodyAttributes,\n removeHtmlAndBodyAttributes,\n} from \"./utils\"\nimport { apiRunner } from \"../api-runner-browser\"\n\nconst hiddenRoot = document.createElement(`div`)\nconst keysOfHtmlAndBodyAttributes = {\n html: [],\n body: [],\n}\n\nconst onHeadRendered = () => {\n const { validHeadNodes, htmlAndBodyAttributes } =\n getValidHeadNodesAndAttributes(hiddenRoot)\n\n keysOfHtmlAndBodyAttributes.html = Object.keys(htmlAndBodyAttributes.html)\n keysOfHtmlAndBodyAttributes.body = Object.keys(htmlAndBodyAttributes.body)\n\n applyHtmlAndBodyAttributes(htmlAndBodyAttributes)\n\n /**\n * The rest of the code block below is a diffing mechanism to ensure that\n * the head elements aren't duplicted on every re-render.\n */\n const existingHeadElements = document.querySelectorAll(`[data-gatsby-head]`)\n\n if (existingHeadElements.length === 0) {\n document.head.append(...validHeadNodes)\n return\n }\n\n const newHeadNodes = []\n diffNodes({\n oldNodes: existingHeadElements,\n newNodes: validHeadNodes,\n onStale: node => node.parentNode.removeChild(node),\n onNew: node => newHeadNodes.push(node),\n })\n\n document.head.append(...newHeadNodes)\n}\n\nif (process.env.BUILD_STAGE === `develop`) {\n // sigh ... <html> and <body> elements are not valid descedents of <div> (our hidden element)\n // react-dom in dev mode will warn about this. There doesn't seem to be a way to render arbitrary\n // user Head without hitting this issue (our hidden element could be just \"new Document()\", but\n // this can only have 1 child, and we don't control what is being rendered so that's not an option)\n // instead we continue to render to <div>, and just silence warnings for <html> and <body> elements\n // https://github.com/facebook/react/blob/e2424f33b3ad727321fc12e75c5e94838e84c2b5/packages/react-dom-bindings/src/client/validateDOMNesting.js#L498-L520\n const originalConsoleError = console.error.bind(console)\n console.error = (...args) => {\n if (\n Array.isArray(args) &&\n args.length >= 2 &&\n args[0]?.includes?.(`validateDOMNesting(...): %s cannot appear as`) &&\n (args[1] === `<html>` || args[1] === `<body>`)\n ) {\n return undefined\n }\n return originalConsoleError(...args)\n }\n\n /* We set up observer to be able to regenerate <head> after react-refresh\n updates our hidden element.\n */\n const observer = new MutationObserver(onHeadRendered)\n observer.observe(hiddenRoot, {\n attributes: true,\n childList: true,\n characterData: true,\n subtree: true,\n })\n}\n\nexport function headHandlerForBrowser({\n pageComponent,\n staticQueryResults,\n pageComponentProps,\n}) {\n useEffect(() => {\n if (pageComponent?.Head) {\n headExportValidator(pageComponent.Head)\n\n const { render } = reactDOMUtils()\n\n const HeadElement = (\n <pageComponent.Head {...filterHeadProps(pageComponentProps)} />\n )\n\n const WrapHeadElement = apiRunner(\n `wrapRootElement`,\n { element: HeadElement },\n HeadElement,\n ({ result }) => {\n return { element: result }\n }\n ).pop()\n\n render(\n // just a hack to call the callback after react has done first render\n // Note: In dev, we call onHeadRendered twice( in FireCallbackInEffect and after mutualution observer dectects initail render into hiddenRoot) this is for hot reloading\n // In Prod we only call onHeadRendered in FireCallbackInEffect to render to head\n <FireCallbackInEffect callback={onHeadRendered}>\n <StaticQueryContext.Provider value={staticQueryResults}>\n <LocationProvider>{WrapHeadElement}</LocationProvider>\n </StaticQueryContext.Provider>\n </FireCallbackInEffect>,\n hiddenRoot\n )\n }\n\n return () => {\n removePrevHeadElements()\n removeHtmlAndBodyAttributes(keysOfHtmlAndBodyAttributes)\n }\n })\n}\n"],"mappings":";;;;AAAA;AAEA;AACA;AACA;AACA;AACA;AASA;AAAiD;AAAA;AAEjD,MAAMA,UAAU,GAAGC,QAAQ,CAACC,aAAa,CAAE,KAAI,CAAC;AAChD,MAAMC,2BAA2B,GAAG;EAClCC,IAAI,EAAE,EAAE;EACRC,IAAI,EAAE;AACR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AC,QAAQ;QAAC,KAAK,EAAE2C;MAAmB,gBACrD,6BAAC,6BAAgB,QAAES,eAAe,CAAoB,CAC1B,CACT,EACvB1D,UAAU,CACX;IACH;IAEA,OAAO,MAAM;MACX,IAAA+D,6BAAsB,GAAE;MACxB,IAAAC,kCAA2B,EAAC7D,2BAA2B,CAAC;IAC1D,CAAC;EACH,CAAC,CAAC;AACJ"}
@@ -64,7 +64,7 @@ if (process.env.BUILD_STAGE === `develop`) {
64
64
  if (
65
65
  Array.isArray(args) &&
66
66
  args.length >= 2 &&
67
- args[0]?.includes(`validateDOMNesting(...): %s cannot appear as`) &&
67
+ args[0]?.includes?.(`validateDOMNesting(...): %s cannot appear as`) &&
68
68
  (args[1] === `<html>` || args[1] === `<body>`)
69
69
  ) {
70
70
  return undefined
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gatsby",
3
3
  "description": "Blazing fast modern site generator for React",
4
- "version": "5.7.0",
4
+ "version": "5.8.0-alpha-react-profiling-env.8+25f5fdb59d",
5
5
  "author": "Kyle Mathews <mathews.kyle@gmail.com>",
6
6
  "bin": {
7
7
  "gatsby": "./cli.js"
@@ -48,8 +48,8 @@
48
48
  "babel-plugin-add-module-exports": "^1.0.4",
49
49
  "babel-plugin-dynamic-import-node": "^2.3.3",
50
50
  "babel-plugin-lodash": "^3.3.4",
51
- "babel-plugin-remove-graphql-queries": "^5.7.0",
52
- "babel-preset-gatsby": "^3.7.0",
51
+ "babel-plugin-remove-graphql-queries": "5.8.0-next.0",
52
+ "babel-preset-gatsby": "3.8.0-next.0",
53
53
  "better-opn": "^2.1.1",
54
54
  "bluebird": "^3.7.2",
55
55
  "browserslist": "^4.21.4",
@@ -90,20 +90,20 @@
90
90
  "find-cache-dir": "^3.3.2",
91
91
  "fs-exists-cached": "1.0.0",
92
92
  "fs-extra": "^11.1.0",
93
- "gatsby-cli": "^5.7.0",
94
- "gatsby-core-utils": "^4.7.0",
95
- "gatsby-graphiql-explorer": "^3.7.0",
96
- "gatsby-legacy-polyfills": "^3.7.0",
97
- "gatsby-link": "^5.7.0",
98
- "gatsby-page-utils": "^3.7.0",
99
- "gatsby-parcel-config": "^1.7.0",
100
- "gatsby-plugin-page-creator": "^5.7.0",
101
- "gatsby-plugin-typescript": "^5.7.0",
102
- "gatsby-plugin-utils": "^4.7.0",
103
- "gatsby-react-router-scroll": "^6.7.0",
104
- "gatsby-script": "^2.7.0",
105
- "gatsby-telemetry": "^4.7.0",
106
- "gatsby-worker": "^2.7.0",
93
+ "gatsby-cli": "5.8.0-alpha-react-profiling-env.8+25f5fdb59d",
94
+ "gatsby-core-utils": "4.8.0-next.0",
95
+ "gatsby-graphiql-explorer": "3.8.0-next.0",
96
+ "gatsby-legacy-polyfills": "3.8.0-next.0",
97
+ "gatsby-link": "5.8.0-next.0",
98
+ "gatsby-page-utils": "3.8.0-next.0",
99
+ "gatsby-parcel-config": "1.8.0-next.0",
100
+ "gatsby-plugin-page-creator": "5.8.0-next.0",
101
+ "gatsby-plugin-typescript": "5.8.0-next.0",
102
+ "gatsby-plugin-utils": "4.8.0-next.0",
103
+ "gatsby-react-router-scroll": "6.8.0-next.0",
104
+ "gatsby-script": "2.8.0-next.0",
105
+ "gatsby-telemetry": "4.8.0-next.0",
106
+ "gatsby-worker": "2.8.0-next.0",
107
107
  "glob": "^7.2.3",
108
108
  "globby": "^11.1.0",
109
109
  "got": "^11.8.6",
@@ -194,7 +194,7 @@
194
194
  "@types/string-similarity": "^4.0.0",
195
195
  "@types/tmp": "^0.2.3",
196
196
  "@types/webpack-virtual-modules": "^0.1.1",
197
- "babel-preset-gatsby-package": "^3.7.0",
197
+ "babel-preset-gatsby-package": "3.8.0-next.0",
198
198
  "copyfiles": "^2.4.1",
199
199
  "cross-env": "^7.0.3",
200
200
  "documentation": "^13.2.5",
@@ -208,7 +208,7 @@
208
208
  "zipkin-transport-http": "^0.22.0"
209
209
  },
210
210
  "optionalDependencies": {
211
- "gatsby-sharp": "^1.7.0"
211
+ "gatsby-sharp": "1.8.0-next.0"
212
212
  },
213
213
  "engines": {
214
214
  "node": ">=18.0.0"
@@ -276,5 +276,5 @@
276
276
  "yargs": {
277
277
  "boolean-negation": false
278
278
  },
279
- "gitHead": "5d64c3e84b91277f7f86b544b1e2e6447da50770"
279
+ "gitHead": "25f5fdb59d4ec5efb7d81ac05b9dc2932052d8e0"
280
280
  }