hash
stringlengths 40
40
| date
stringdate 2016-07-06 04:11:39
2024-11-19 20:41:05
| author
stringlengths 2
35
| commit_message
stringlengths 13
137
| is_merge
bool 1
class | masked_commit_message
stringlengths 6
127
| type
stringclasses 7
values | git_diff
stringlengths 104
6.64M
⌀ |
|---|---|---|---|---|---|---|---|
37de338dd9fdd3cd47e121aa33e87d5358b96ff6
|
2018-03-01 23:34:48
|
Nicolas Marien
|
docs: update api proxy example (#4310)
| false
|
update api proxy example (#4310)
|
docs
|
diff --git a/docs/docs/api-proxy.md b/docs/docs/api-proxy.md
index def7fcbd17226..5a8f93f01239e 100644
--- a/docs/docs/api-proxy.md
+++ b/docs/docs/api-proxy.md
@@ -12,7 +12,7 @@ in development, add a `proxy` field to your `gatsby-config.js`, for example:
module.exports = {
proxy: {
prefix: "/api",
- url: "http://dev-mysite.com/api/",
+ url: "http://dev-mysite.com",
},
};
```
|
1c750b618e069c684b5cba49324449389934f050
|
2020-12-15 17:03:46
|
Matt Kane
|
fix(gatsby-plugin-sharp): Include default transform options for webp (#28620)
| false
|
Include default transform options for webp (#28620)
|
fix
|
diff --git a/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image -- renders correctly on 1027x768.snap.png b/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image -- renders correctly on 1027x768.snap.png
index 7c626be71a161..722d4eabda241 100644
Binary files a/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image -- renders correctly on 1027x768.snap.png and b/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image -- renders correctly on 1027x768.snap.png differ
diff --git a/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image -- renders correctly on ipad-2.snap.png b/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image -- renders correctly on ipad-2.snap.png
index 7888987db6b1f..722d4eabda241 100644
Binary files a/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image -- renders correctly on ipad-2.snap.png and b/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image -- renders correctly on ipad-2.snap.png differ
diff --git a/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image -- renders correctly on iphone-6.snap.png b/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image -- renders correctly on iphone-6.snap.png
index 7fc266698764d..722d4eabda241 100644
Binary files a/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image -- renders correctly on iphone-6.snap.png and b/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image -- renders correctly on iphone-6.snap.png differ
diff --git a/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image smaller than requested size -- renders correctly on 1027x768.snap.png b/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image smaller than requested size -- renders correctly on 1027x768.snap.png
index df8ee8e7d04f7..08777945d0194 100644
Binary files a/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image smaller than requested size -- renders correctly on 1027x768.snap.png and b/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image smaller than requested size -- renders correctly on 1027x768.snap.png differ
diff --git a/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image smaller than requested size -- renders correctly on ipad-2.snap.png b/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image smaller than requested size -- renders correctly on ipad-2.snap.png
index df8ee8e7d04f7..08777945d0194 100644
Binary files a/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image smaller than requested size -- renders correctly on ipad-2.snap.png and b/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image smaller than requested size -- renders correctly on ipad-2.snap.png differ
diff --git a/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image smaller than requested size -- renders correctly on iphone-6.snap.png b/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image smaller than requested size -- renders correctly on iphone-6.snap.png
index 1fbf4afb870e0..57567a38fb0cc 100644
Binary files a/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image smaller than requested size -- renders correctly on iphone-6.snap.png and b/e2e-tests/visual-regression/cypress/snapshots/image.js/GatsbyImage -- fixed image smaller than requested size -- renders correctly on iphone-6.snap.png differ
diff --git a/packages/gatsby-plugin-sharp/src/image-data.ts b/packages/gatsby-plugin-sharp/src/image-data.ts
index be22c4f926929..ba939f1b232b7 100644
--- a/packages/gatsby-plugin-sharp/src/image-data.ts
+++ b/packages/gatsby-plugin-sharp/src/image-data.ts
@@ -218,9 +218,10 @@ export async function generateImageData({
const width = Math.round(outputWidth)
const transform = createTransformObject({
quality,
- ...args.transformOptions,
+ ...transformOptions,
+ fit,
+ cropFocus,
...args.webpOptions,
- tracedSVGOptions,
width,
height: Math.round(width / imageSizes.aspectRatio),
toFormat: `webp`,
@@ -249,7 +250,9 @@ export async function generateImageData({
file,
args: {
...options,
- ...args.transformOptions,
+ ...transformOptions,
+ fit,
+ cropFocus,
toFormatBase64: args.blurredOptions?.toFormat,
width: placeholderWidth,
height: Math.round(placeholderWidth / imageSizes.aspectRatio),
|
3a4d3333d8409edd1fe679e9771b7ad9d71c2364
|
2022-11-09 21:03:30
|
Michal Piechowiak
|
chore: migrate from express-graphql to graphql-http (#37001)
| false
|
migrate from express-graphql to graphql-http (#37001)
|
chore
|
diff --git a/packages/gatsby/package.json b/packages/gatsby/package.json
index 3e1d4e17a85ab..aab6464e48560 100644
--- a/packages/gatsby/package.json
+++ b/packages/gatsby/package.json
@@ -83,7 +83,7 @@
"event-source-polyfill": "1.0.25",
"execa": "^5.1.1",
"express": "^4.17.1",
- "express-graphql": "^0.12.0",
+ "graphql-http": "^1.7.0",
"express-http-proxy": "^1.6.3",
"fastest-levenshtein": "^1.0.12",
"fastq": "^1.13.0",
diff --git a/packages/gatsby/src/utils/start-server.ts b/packages/gatsby/src/utils/start-server.ts
index 71a075e94ef79..f1e6661c63bee 100644
--- a/packages/gatsby/src/utils/start-server.ts
+++ b/packages/gatsby/src/utils/start-server.ts
@@ -4,9 +4,10 @@ import got, { Method } from "got"
import webpack from "webpack"
import express from "express"
import compression from "compression"
-import { graphqlHTTP, OptionsData } from "express-graphql"
+import { createHandler as createGraphqlEndpointHandler } from "graphql-http/lib/use/express"
+import type { OperationContext } from "graphql-http"
import graphiqlExplorer from "gatsby-graphiql-explorer"
-import { FragmentDefinitionNode, GraphQLFormattedError, Kind } from "graphql"
+import { FragmentDefinitionNode, GraphQLError, Kind } from "graphql"
import { slash, uuid } from "gatsby-core-utils"
import http from "http"
import https from "https"
@@ -185,38 +186,38 @@ export async function startServer(
app.use(
graphqlEndpoint,
- graphqlHTTP((): OptionsData => {
- const { schema, schemaCustomization } = store.getState()
-
- if (!schemaCustomization.composer) {
- throw new Error(
- `A schema composer was not created in time. This is likely a gatsby bug. If you experienced this please create an issue.`
- )
- }
- return {
- schema,
- graphiql: false,
- extensions(): { [key: string]: unknown } {
- return {
- enableRefresh: process.env.ENABLE_GATSBY_REFRESH_ENDPOINT,
- refreshToken: process.env.GATSBY_REFRESH_TOKEN,
- }
- },
- context: withResolverContext({
- schema,
- schemaComposer: schemaCustomization.composer,
+ createGraphqlEndpointHandler({
+ schema() {
+ return store.getState().schema
+ },
+ context() {
+ return withResolverContext({
+ schema: store.getState().schema,
+ schemaComposer: store.getState().schemaCustomization.composer,
context: {},
- customContext: schemaCustomization.context,
- }),
- customFormatErrorFn(err): GraphQLFormattedError {
- return {
- ...err.toJSON(),
- extensions: {
- stack: err.stack ? err.stack.split(`\n`) : [],
- },
- }
- },
- }
+ customContext: store.getState().schemaCustomization.context,
+ }) as unknown as OperationContext
+ },
+ onOperation(_req, _args, result) {
+ if (result.errors) {
+ result.errors = result.errors.map(
+ err =>
+ ({
+ ...err.toJSON(),
+ extensions: {
+ stack: err.stack ? err.stack.split(`\n`) : [],
+ },
+ } as unknown as GraphQLError)
+ )
+ }
+
+ result.extensions = {
+ enableRefresh: process.env.ENABLE_GATSBY_REFRESH_ENDPOINT,
+ refreshToken: process.env.GATSBY_REFRESH_TOKEN,
+ }
+
+ return result
+ },
})
)
diff --git a/yarn.lock b/yarn.lock
index 492c13de2bd38..29d2ae20cec50 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -5193,7 +5193,7 @@ abortcontroller-polyfill@^1.1.9:
resolved "https://registry.yarnpkg.com/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.3.tgz#1b5b487bd6436b5b764fd52a612509702c3144b5"
integrity sha512-zetDJxd89y3X99Kvo4qFx8GKlt6GsvN3UcRZHwU6iFA/0KiOmhkTVhe8oRoTBiTVPZu09x3vCra47+w8Yz1+2Q==
-accepts@^1.3.7, accepts@~1.3.4, accepts@~1.3.5, accepts@~1.3.8:
+accepts@~1.3.4, accepts@~1.3.5, accepts@~1.3.8:
version "1.3.8"
resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e"
integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==
@@ -7765,7 +7765,7 @@ [email protected]:
dependencies:
safe-buffer "5.2.1"
-content-type@^1.0.4, content-type@~1.0.4:
+content-type@~1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b"
@@ -9077,7 +9077,7 @@ [email protected], depd@~2.0.0:
resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df"
integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==
-depd@^1.1.2, depd@~1.1.2:
+depd@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9"
@@ -10474,16 +10474,6 @@ expect@^27.4.2:
jest-message-util "^27.4.2"
jest-regex-util "^27.4.0"
-express-graphql@^0.12.0:
- version "0.12.0"
- resolved "https://registry.yarnpkg.com/express-graphql/-/express-graphql-0.12.0.tgz#58deabc309909ca2c9fe2f83f5fbe94429aa23df"
- integrity sha512-DwYaJQy0amdy3pgNtiTDuGGM2BLdj+YO2SgbKoLliCfuHv3VVTt7vNG/ZqK2hRYjtYHE2t2KB705EU94mE64zg==
- dependencies:
- accepts "^1.3.7"
- content-type "^1.0.4"
- http-errors "1.8.0"
- raw-body "^2.4.1"
-
express-http-proxy@^1.6.3:
version "1.6.3"
resolved "https://registry.yarnpkg.com/express-http-proxy/-/express-http-proxy-1.6.3.tgz#f3ef139ffd49a7962e7af0462bbcca557c913175"
@@ -11929,6 +11919,11 @@ [email protected]:
resolved "https://registry.yarnpkg.com/graphql-executor/-/graphql-executor-0.0.23.tgz#205c1764b39ee0fcf611553865770f37b45851a2"
integrity sha512-3Ivlyfjaw3BWmGtUSnMpP/a4dcXCp0mJtj0PiPG14OKUizaMKlSEX+LX2Qed0LrxwniIwvU6B4w/koVjEPyWJg==
+graphql-http@^1.7.0:
+ version "1.7.0"
+ resolved "https://registry.yarnpkg.com/graphql-http/-/graphql-http-1.7.0.tgz#075af931b12245f32ce3cf3ef034714c7d5bc4f8"
+ integrity sha512-GNv1CVAFTblzf5Kenx0TBtEfk7wvQLVoxDv/AgNX1ahDI7aU9ysxzH/B2ar4qej604mMYArsKMz/ENX7Zm8ISQ==
+
[email protected]:
version "5.0.6"
resolved "https://registry.yarnpkg.com/graphql-language-service/-/graphql-language-service-5.0.6.tgz#7fd1e6479e5c3074b070c760fa961d9ad1ed7c72"
@@ -12578,17 +12573,6 @@ http-cache-semantics@^4.0.0, http-cache-semantics@^4.1.0:
resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz#49e91c5cbf36c9b94bcfcd71c23d5249ec74e390"
integrity sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==
[email protected]:
- version "1.8.0"
- resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.8.0.tgz#75d1bbe497e1044f51e4ee9e704a62f28d336507"
- integrity sha512-4I8r0C5JDhT5VkvI47QktDW75rNlGVsUf/8hzjCC/wkWI/jdTRmBb9aI7erSG82r1bjKY3F6k28WnsVxB1C73A==
- dependencies:
- depd "~1.1.2"
- inherits "2.0.4"
- setprototypeof "1.2.0"
- statuses ">= 1.5.0 < 2"
- toidentifier "1.0.0"
-
[email protected]:
version "2.0.0"
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3"
@@ -19866,7 +19850,7 @@ range-parser@^1.2.1, range-parser@~1.2.1:
resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031"
integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==
[email protected], raw-body@^2.3.0, raw-body@^2.4.1:
[email protected], raw-body@^2.3.0:
version "2.5.1"
resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.1.tgz#fe1b1628b181b700215e5fd42389f98b71392857"
integrity sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==
@@ -22912,10 +22896,6 @@ [email protected], statuses@^2.0.0:
resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63"
integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==
-"statuses@>= 1.5.0 < 2":
- version "1.5.0"
- resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
-
stealthy-require@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b"
@@ -23970,10 +23950,6 @@ toggle-selection@^1.0.6:
resolved "https://registry.yarnpkg.com/toggle-selection/-/toggle-selection-1.0.6.tgz#6e45b1263f2017fa0acc7d89d78b15b8bf77da32"
integrity sha1-bkWxJj8gF/oKzH2J14sVuL932jI=
[email protected]:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553"
-
[email protected]:
version "1.0.1"
resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35"
|
340114956af1be28678f8b0cf760392e202aea69
|
2021-09-10 19:17:59
|
Abhi Aiyer
|
feat(gatsby): Deprecate schema-related APIs in sourceNodes (#32291)
| false
|
Deprecate schema-related APIs in sourceNodes (#32291)
|
feat
|
diff --git a/packages/gatsby/src/redux/actions/__tests__/restricted.js b/packages/gatsby/src/redux/actions/__tests__/restricted.js
index b4be6ebb6dc19..fff7ccc78c205 100644
--- a/packages/gatsby/src/redux/actions/__tests__/restricted.js
+++ b/packages/gatsby/src/redux/actions/__tests__/restricted.js
@@ -14,7 +14,7 @@ const dispatchWithThunk = actionOrThunk =>
describe(`Restricted actions`, () => {
it(`handles actions allowed in API`, () => {
const action = dispatchWithThunk(
- availableActionsByAPI.sourceNodes.createTypes()
+ availableActionsByAPI.createSchemaCustomization.createTypes()
)
expect(action).toEqual({ type: `CREATE_TYPES` })
expect(report.warn).not.toHaveBeenCalled()
@@ -22,12 +22,17 @@ describe(`Restricted actions`, () => {
})
it(`handles actions deprecated in API`, () => {
- const action = dispatchWithThunk(
+ let action = dispatchWithThunk(
availableActionsByAPI.onPreBootstrap.createTypes()
)
expect(action).toEqual({ type: `CREATE_TYPES` })
expect(report.warn).toHaveBeenCalled()
expect(report.error).not.toHaveBeenCalled()
+
+ action = dispatchWithThunk(availableActionsByAPI.sourceNodes.createTypes())
+ expect(action).toEqual({ type: `CREATE_TYPES` })
+ expect(report.warn).toHaveBeenCalled()
+ expect(report.error).not.toHaveBeenCalled()
})
it(`handles actions forbidden in API`, () => {
diff --git a/packages/gatsby/src/redux/actions/restricted.ts b/packages/gatsby/src/redux/actions/restricted.ts
index 533498cd42256..4c01c88586dae 100644
--- a/packages/gatsby/src/redux/actions/restricted.ts
+++ b/packages/gatsby/src/redux/actions/restricted.ts
@@ -522,18 +522,19 @@ const mapAvailableActionsToAPIs = (
export const availableActionsByAPI = mapAvailableActionsToAPIs({
createFieldExtension: {
- [ALLOWED_IN]: [`sourceNodes`, `createSchemaCustomization`],
+ [ALLOWED_IN]: [`createSchemaCustomization`],
+ [DEPRECATED_IN]: [`sourceNodes`],
},
createTypes: {
- [ALLOWED_IN]: [`sourceNodes`, `createSchemaCustomization`],
- [DEPRECATED_IN]: [`onPreInit`, `onPreBootstrap`],
+ [ALLOWED_IN]: [`createSchemaCustomization`],
+ [DEPRECATED_IN]: [`onPreInit`, `onPreBootstrap`, `sourceNodes`],
},
createResolverContext: {
[ALLOWED_IN]: [`createSchemaCustomization`],
},
addThirdPartySchema: {
- [ALLOWED_IN]: [`sourceNodes`, `createSchemaCustomization`],
- [DEPRECATED_IN]: [`onPreInit`, `onPreBootstrap`],
+ [ALLOWED_IN]: [`createSchemaCustomization`],
+ [DEPRECATED_IN]: [`onPreInit`, `onPreBootstrap`, `sourceNodes`],
},
printTypeDefinitions: {
[ALLOWED_IN]: [`createSchemaCustomization`],
|
e4b150bd33140ed5496e1c2ba3aabe20b97fcbaa
|
2020-03-16 19:41:34
|
Daryl Chan
|
chore(gatsby): Migrate eslint-config to TypeScript (#22294)
| false
|
Migrate eslint-config to TypeScript (#22294)
|
chore
|
diff --git a/package.json b/package.json
index dc1a1d1142da3..742911dae1466 100644
--- a/package.json
+++ b/package.json
@@ -8,6 +8,7 @@
"@types/babel__code-frame": "^7.0.1",
"@types/bluebird": "^3.5.30",
"@types/cache-manager": "^2.10.2",
+ "@types/eslint": "^6.1.8",
"@types/express": "^4.17.3",
"@types/fs-extra": "^8.1.0",
"@types/got": "^9.6.9",
diff --git a/packages/gatsby/src/utils/eslint-config.js b/packages/gatsby/src/utils/eslint-config.ts
similarity index 94%
rename from packages/gatsby/src/utils/eslint-config.js
rename to packages/gatsby/src/utils/eslint-config.ts
index bd2bcb2f524f8..28d4058a24c10 100644
--- a/packages/gatsby/src/utils/eslint-config.js
+++ b/packages/gatsby/src/utils/eslint-config.ts
@@ -1,6 +1,7 @@
-import { printSchema } from "graphql"
+import { printSchema, GraphQLSchema } from "graphql"
+import { CLIEngine } from "eslint"
-module.exports = schema => {
+module.exports = (schema: GraphQLSchema): CLIEngine.Options => {
return {
useEslintrc: false,
resolvePluginsRelativeTo: __dirname,
diff --git a/yarn.lock b/yarn.lock
index 28463502e9fec..4192112c7cfe8 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3845,6 +3845,19 @@
resolved "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d"
integrity sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag==
+"@types/eslint@^6.1.8":
+ version "6.1.8"
+ resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-6.1.8.tgz#7e868f89bc1e520323d405940e49cb912ede5bba"
+ integrity sha512-CJBhm9pYdUS8cFVbXACWlLxZWFBTQMiM0eI6RYxng3u9oQ9gHdQ5PN89DHPrK4RISRzX62nRsteUlbBgEIdSug==
+ dependencies:
+ "@types/estree" "*"
+ "@types/json-schema" "*"
+
+"@types/estree@*":
+ version "0.0.42"
+ resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.42.tgz#8d0c1f480339efedb3e46070e22dd63e0430dd11"
+ integrity sha512-K1DPVvnBCPxzD+G51/cxVIoc2X8uUVl1zpJeE6iKcgHMj4+tbat5Xu4TjV7v2QSDbIeAfLi2hIk+u2+s0MlpUQ==
+
"@types/[email protected]":
version "0.0.39"
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f"
@@ -3942,6 +3955,11 @@
resolved "https://registry.yarnpkg.com/@types/joi/-/joi-14.3.4.tgz#eed1e14cbb07716079c814138831a520a725a1e0"
integrity sha512-1TQNDJvIKlgYXGNIABfgFp9y0FziDpuGrd799Q5RcnsDu+krD+eeW/0Fs5PHARvWWFelOhIG2OPCo6KbadBM4A==
+"@types/json-schema@*":
+ version "7.0.4"
+ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.4.tgz#38fd73ddfd9b55abb1e1b2ed578cb55bd7b7d339"
+ integrity sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA==
+
"@types/json-schema@^7.0.3":
version "7.0.3"
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.3.tgz#bdfd69d61e464dcc81b25159c270d75a73c1a636"
|
245fec3c1980a1e79a636ded1b56dd1b902179fc
|
2020-09-28 15:01:29
|
renovate[bot]
|
chore(deps): update dependency @types/bluebird to ^3.5.32 (#27067)
| false
|
update dependency @types/bluebird to ^3.5.32 (#27067)
|
chore
|
diff --git a/package.json b/package.json
index e0ebf6bd319bb..317ef88eedea5 100644
--- a/package.json
+++ b/package.json
@@ -7,7 +7,7 @@
"@lerna/prompt": "3.18.5",
"@types/babel__code-frame": "^7.0.1",
"@types/better-queue": "^3.8.2",
- "@types/bluebird": "^3.5.30",
+ "@types/bluebird": "^3.5.32",
"@types/cache-manager": "^2.10.2",
"@types/common-tags": "^1.8.0",
"@types/eslint": "^6.1.8",
diff --git a/yarn.lock b/yarn.lock
index d1d3ea35a53eb..9ec0a0c2b0233 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3432,10 +3432,10 @@
dependencies:
"@types/node" "*"
-"@types/bluebird@^3.5.30":
- version "3.5.30"
- resolved "https://registry.yarnpkg.com/@types/bluebird/-/bluebird-3.5.30.tgz#ee034a0eeea8b84ed868b1aa60d690b08a6cfbc5"
- integrity sha512-8LhzvcjIoqoi1TghEkRMkbbmM+jhHnBokPGkJWjclMK+Ks0MxEBow3/p2/iFTZ+OIbJHQDSfpgdZEb+af3gfVw==
+"@types/bluebird@^3.5.32":
+ version "3.5.32"
+ resolved "https://registry.yarnpkg.com/@types/bluebird/-/bluebird-3.5.32.tgz#381e7b59e39f010d20bbf7e044e48f5caf1ab620"
+ integrity sha512-dIOxFfI0C+jz89g6lQ+TqhGgPQ0MxSnh/E4xuC0blhFtyW269+mPG5QeLgbdwst/LvdP8o1y0o/Gz5EHXLec/g==
"@types/body-parser@*":
version "1.17.1"
|
914ab0a60923982e98dad2f75447287f4d5cca6c
|
2019-09-13 07:31:24
|
renovate[bot]
|
chore: update minor updates in packages except react, babel and eslint (#17564)
| false
|
update minor updates in packages except react, babel and eslint (#17564)
|
chore
|
diff --git a/packages/gatsby-graphiql-explorer/package.json b/packages/gatsby-graphiql-explorer/package.json
index 2f4c4f14aa3c0..32d3db1ef92e6 100644
--- a/packages/gatsby-graphiql-explorer/package.json
+++ b/packages/gatsby-graphiql-explorer/package.json
@@ -49,7 +49,7 @@
"react": "^16.9.0",
"react-dom": "^16.9.0",
"style-loader": "^0.23.1",
- "webpack": "^4.39.3",
+ "webpack": "^4.40.0",
"webpack-cli": "^3.3.8",
"whatwg-fetch": "^3.0.0"
},
diff --git a/packages/gatsby-plugin-guess-js/package.json b/packages/gatsby-plugin-guess-js/package.json
index 8242548b0d938..2922e0cf5cc40 100644
--- a/packages/gatsby-plugin-guess-js/package.json
+++ b/packages/gatsby-plugin-guess-js/package.json
@@ -29,7 +29,7 @@
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.6.0",
- "guess-webpack": "~0.3.12"
+ "guess-webpack": "~0.3.13"
},
"devDependencies": {
"@babel/cli": "^7.6.0",
diff --git a/packages/gatsby-plugin-netlify-cms/package.json b/packages/gatsby-plugin-netlify-cms/package.json
index 44d7bb3c4585c..edabb7d76b917 100644
--- a/packages/gatsby-plugin-netlify-cms/package.json
+++ b/packages/gatsby-plugin-netlify-cms/package.json
@@ -13,7 +13,7 @@
"lodash": "^4.17.15",
"mini-css-extract-plugin": "^0.8.0",
"netlify-identity-widget": "^1.5.5",
- "webpack": "^4.39.3"
+ "webpack": "^4.40.0"
},
"devDependencies": {
"@babel/cli": "^7.6.0",
diff --git a/packages/gatsby-plugin-preload-fonts/package.json b/packages/gatsby-plugin-preload-fonts/package.json
index 17d2328a962d9..a1616f9227139 100644
--- a/packages/gatsby-plugin-preload-fonts/package.json
+++ b/packages/gatsby-plugin-preload-fonts/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"chalk": "^2.4.2",
- "date-fns": "^2.1.0",
+ "date-fns": "^2.2.1",
"fs-extra": "^8.1.0",
"graphql-request": "^1.8.2",
"progress": "^2.0.3",
diff --git a/packages/gatsby-transformer-screenshot/lambda/package.json b/packages/gatsby-transformer-screenshot/lambda/package.json
index 1951df1ac215f..a5f29f27d53c3 100644
--- a/packages/gatsby-transformer-screenshot/lambda/package.json
+++ b/packages/gatsby-transformer-screenshot/lambda/package.json
@@ -4,7 +4,7 @@
"tar": "^4.4.10"
},
"devDependencies": {
- "aws-sdk": "^2.526.0"
+ "aws-sdk": "^2.528.0"
},
"keywords": [
"gatsby-plugin"
diff --git a/packages/gatsby/package.json b/packages/gatsby/package.json
index 008a46ea0d6ec..d5272f46837b6 100644
--- a/packages/gatsby/package.json
+++ b/packages/gatsby/package.json
@@ -133,7 +133,7 @@
"util.promisify": "^1.0.0",
"uuid": "^3.3.3",
"v8-compile-cache": "^1.1.2",
- "webpack": "~4.39.3",
+ "webpack": "~4.40.0",
"webpack-dev-middleware": "^3.7.1",
"webpack-dev-server": "^3.8.0",
"webpack-hot-middleware": "^2.25.0",
diff --git a/yarn.lock b/yarn.lock
index 76b334e51462a..1dc16f9ebffe3 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -6492,10 +6492,10 @@ date-fns@^1.27.2, date-fns@^1.30.1:
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-1.30.1.tgz#2e71bf0b119153dbb4cc4e88d9ea5acfb50dc05c"
integrity sha512-hBSVCvSmWC+QypYObzwGOd9wqdDpOt+0wl0KbU+R+uuZBS1jN8VsD1ss3irQDknRj5NvxiTF6oj/nDRnN/UQNw==
-date-fns@^2.1.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.1.0.tgz#0d7e806c3cefe14a943532dbf968995ccfd46bd9"
- integrity sha512-eKeLk3sLCnxB/0PN4t1+zqDtSs4jb4mXRSTZ2okmx/myfWyDqeO4r5nnmA5LClJiCwpuTMeK2v5UQPuE4uMaxA==
+date-fns@^2.2.1:
+ version "2.2.1"
+ resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.2.1.tgz#b3f79cf56760af106050c686f4c72586a3383ee9"
+ integrity sha512-4V1i5CnTinjBvJpXTq7sDHD4NY6JPcl15112IeSNNLUWQOQ+kIuCvRGOFZMQZNvkadw8F9QTyZxz59rIRU6K+w==
date-now@^0.1.4:
version "0.1.4"
@@ -9280,7 +9280,7 @@ good-listener@^1.2.2:
dependencies:
delegate "^3.1.2"
-google-auth-library@^5.1.0, google-auth-library@^5.2.0:
+google-auth-library@^5.2.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/google-auth-library/-/google-auth-library-5.2.0.tgz#fff161ec6ad8630c60b37324f78347e11712512b"
integrity sha512-I2726rgOedQ06HgTvoNvBeRCzy5iFe6z3khwj6ugfRd1b0VHwnTYKl/3t2ytOTo7kKc6KivYIBsCIdZf2ep67g==
@@ -9310,7 +9310,7 @@ google-p12-pem@^2.0.0:
dependencies:
node-forge "^0.8.0"
-googleapis-common@^3.0.0:
+googleapis-common@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/googleapis-common/-/googleapis-common-3.1.0.tgz#592dbf4e1fa543090b2671a524dcdb09184ec15c"
integrity sha512-abnogPoWqv0cU6O/EFpkerCVsaUsKEG6XpCm4P1YgK44PxIRcGtalDwijqUErkcivM1Xy5MNyf1PDkKTLEjOZA==
@@ -9322,13 +9322,13 @@ googleapis-common@^3.0.0:
url-template "^2.0.8"
uuid "^3.3.2"
-googleapis@^42.0.0:
- version "42.0.0"
- resolved "https://registry.yarnpkg.com/googleapis/-/googleapis-42.0.0.tgz#17de1fc4494a49bc120152e6df87b8eca9a6bf0d"
- integrity sha512-nQiKPDmzmMusnU8UOibmlC6hsgkm70SjqmLxSlBBb7i0z7/J6UPilSzo9tAMoHA8u3BUw3OXn13+p9YLmBH6Gg==
+googleapis@^43.0.0:
+ version "43.0.0"
+ resolved "https://registry.yarnpkg.com/googleapis/-/googleapis-43.0.0.tgz#fcb1408fd1bd3f74eb9c4ca2b14ac7765ee0e50e"
+ integrity sha512-4b38mlTdDCA3KiyRTQmfPpeTxznC5ufgqx3AvKaEIoVm+iWeVLfwYs++/+OcGJJriH9bcs0gPbU7CR8DU6Oevg==
dependencies:
- google-auth-library "^5.1.0"
- googleapis-common "^3.0.0"
+ google-auth-library "^5.2.0"
+ googleapis-common "^3.1.0"
[email protected], got@^8.3.1, got@^8.3.2:
version "8.3.2"
@@ -9577,24 +9577,24 @@ gud@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/gud/-/gud-1.0.0.tgz#a489581b17e6a70beca9abe3ae57de7a499852c0"
-guess-ga@^0.3.12:
- version "0.3.12"
- resolved "https://registry.yarnpkg.com/guess-ga/-/guess-ga-0.3.12.tgz#96da5a2b73a7a237e9962feccf612f24f81370dc"
- integrity sha512-S5WZSh4MOwDBRFOxe6wcdiowd4C8Bh489bApiA9nliiHg7KXf3xTSjk4tjsLfV7rAGaJ985bEDTQ1m5M61GPmA==
+guess-ga@^0.3.13:
+ version "0.3.13"
+ resolved "https://registry.yarnpkg.com/guess-ga/-/guess-ga-0.3.13.tgz#8f581d6a2acad0cc95b6dd3964960e2b6c7fab27"
+ integrity sha512-jB8pmyepPC1QiZnPV/4IDviJsHxilZLtj8zUnRGWBLrqcNx5+6lDojSp4et+ZnVJmFB27+pXqIrYX6jX5Qv1ug==
dependencies:
- googleapis "^42.0.0"
+ googleapis "^43.0.0"
-guess-webpack@~0.3.12:
- version "0.3.12"
- resolved "https://registry.yarnpkg.com/guess-webpack/-/guess-webpack-0.3.12.tgz#77c001618baaf9424de72ab9036fa7430154da5f"
- integrity sha512-xqyQLVTKIUDJeOGP97OKse4E7BF8nTFX5YVj6kvW1IdS9dIwF3DeJliBA6tXmWCuoA8GgHOkZtRZB/iZUPxruA==
+guess-webpack@~0.3.13:
+ version "0.3.13"
+ resolved "https://registry.yarnpkg.com/guess-webpack/-/guess-webpack-0.3.13.tgz#dfb31308a6888960fb0f651cf70952a75f1f75c6"
+ integrity sha512-zYSanpPvT+5D1QSBJSu8b8AJr2mQsveRggQdoGCHJcCSiK0hNalV3Pvygpgkk/YiCK6gL5H1sGJMfGKKGP2fVw==
dependencies:
chalk "^2.4.2"
copy-webpack-plugin "^5.0.0"
flat-cache "^2.0.0"
google-oauth2-node "0.0.3"
- googleapis "^42.0.0"
- guess-ga "^0.3.12"
+ googleapis "^43.0.0"
+ guess-ga "^0.3.13"
lodash.template "^4.4.0"
rollup "^1.0.0"
rollup-plugin-hypothetical "^2.1.0"
@@ -20139,10 +20139,10 @@ webpack@^4.14.0:
watchpack "^1.6.0"
webpack-sources "^1.4.1"
-webpack@^4.39.3, webpack@~4.39.3:
- version "4.39.3"
- resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.39.3.tgz#a02179d1032156b713b6ec2da7e0df9d037def50"
- integrity sha512-BXSI9M211JyCVc3JxHWDpze85CvjC842EvpRsVTc/d15YJGlox7GIDd38kJgWrb3ZluyvIjgenbLDMBQPDcxYQ==
+webpack@^4.40.0, webpack@~4.40.0:
+ version "4.40.0"
+ resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.40.0.tgz#b76f5fc2b76de5a58a7be61cb1dc3244e4a58572"
+ integrity sha512-qwDJehWHAbnSHwQT5S50OBx5nN2DD+bFhRf5IBs1unsEXAG+XG4r8Myt17j/fQBVfWIeSWRyEeTHUaPKaiFUNQ==
dependencies:
"@webassemblyjs/ast" "1.8.5"
"@webassemblyjs/helper-module-context" "1.8.5"
|
24936896649d63bf0e29f739601f3d552477ea42
|
2020-03-03 14:35:33
|
Michal Piechowiak
|
chore(release): Publish
| false
|
Publish
|
chore
|
diff --git a/packages/gatsby-cli/CHANGELOG.md b/packages/gatsby-cli/CHANGELOG.md
index e3dee5c2a0a10..1d29a8ac6dc65 100644
--- a/packages/gatsby-cli/CHANGELOG.md
+++ b/packages/gatsby-cli/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [2.10.0](https://github.com/gatsbyjs/gatsby/compare/[email protected]@2.10.0) (2020-03-03)
+
+### Features
+
+- **gatsby:** add react profiling option ([#21863](https://github.com/gatsbyjs/gatsby/issues/21863)) ([3e8f2c7](https://github.com/gatsbyjs/gatsby/commit/3e8f2c7))
+
# [2.9.0](https://github.com/gatsbyjs/gatsby/compare/[email protected]@2.9.0) (2020-02-24)
### Features
diff --git a/packages/gatsby-cli/package.json b/packages/gatsby-cli/package.json
index 9ff147ab0e435..37f6aeeb8b31d 100644
--- a/packages/gatsby-cli/package.json
+++ b/packages/gatsby-cli/package.json
@@ -1,7 +1,7 @@
{
"name": "gatsby-cli",
"description": "Gatsby command-line interface for creating new sites and running Gatsby commands",
- "version": "2.9.0",
+ "version": "2.10.0",
"author": "Kyle Mathews <[email protected]>",
"bin": {
"gatsby": "lib/index.js"
diff --git a/packages/gatsby-theme-blog-core/CHANGELOG.md b/packages/gatsby-theme-blog-core/CHANGELOG.md
index 287a087b0e42b..a2a865c79779e 100644
--- a/packages/gatsby-theme-blog-core/CHANGELOG.md
+++ b/packages/gatsby-theme-blog-core/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.2.9](https://github.com/gatsbyjs/gatsby/compare/[email protected]@1.2.9) (2020-03-03)
+
+**Note:** Version bump only for package gatsby-theme-blog-core
+
## [1.2.8](https://github.com/gatsbyjs/gatsby/compare/[email protected]@1.2.8) (2020-03-02)
**Note:** Version bump only for package gatsby-theme-blog-core
diff --git a/packages/gatsby-theme-blog-core/package.json b/packages/gatsby-theme-blog-core/package.json
index 2e49d91a0c683..83117e3f256bd 100644
--- a/packages/gatsby-theme-blog-core/package.json
+++ b/packages/gatsby-theme-blog-core/package.json
@@ -1,6 +1,6 @@
{
"name": "gatsby-theme-blog-core",
- "version": "1.2.8",
+ "version": "1.2.9",
"main": "index.js",
"author": "christopherbiscardi <[email protected]> (@chrisbiscardi)",
"license": "MIT",
@@ -30,7 +30,7 @@
},
"devDependencies": {
"@mdx-js/react": "^1.5.1",
- "gatsby": "^2.19.25",
+ "gatsby": "^2.19.26",
"prettier": "^1.19.1",
"react": "^16.12.0",
"react-dom": "^16.12.0"
diff --git a/packages/gatsby-theme-blog/CHANGELOG.md b/packages/gatsby-theme-blog/CHANGELOG.md
index 17d05a35ae575..bb8653c1882e5 100644
--- a/packages/gatsby-theme-blog/CHANGELOG.md
+++ b/packages/gatsby-theme-blog/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.3.10](https://github.com/gatsbyjs/gatsby/compare/[email protected]@1.3.10) (2020-03-03)
+
+**Note:** Version bump only for package gatsby-theme-blog
+
## [1.3.9](https://github.com/gatsbyjs/gatsby/compare/[email protected]@1.3.9) (2020-03-02)
**Note:** Version bump only for package gatsby-theme-blog
diff --git a/packages/gatsby-theme-blog/package.json b/packages/gatsby-theme-blog/package.json
index 13cf6cece0a64..ed7f23bc28639 100644
--- a/packages/gatsby-theme-blog/package.json
+++ b/packages/gatsby-theme-blog/package.json
@@ -1,6 +1,6 @@
{
"name": "gatsby-theme-blog",
- "version": "1.3.9",
+ "version": "1.3.10",
"description": "A Gatsby theme for miscellaneous blogging with a dark/light mode",
"main": "index.js",
"keywords": [
@@ -29,7 +29,7 @@
"gatsby-plugin-react-helmet": "^3.1.22",
"gatsby-plugin-theme-ui": "^0.2.43",
"gatsby-plugin-twitter": "^2.1.19",
- "gatsby-theme-blog-core": "^1.2.8",
+ "gatsby-theme-blog-core": "^1.2.9",
"mdx-utils": "0.2.0",
"react-helmet": "^5.2.1",
"react-switch": "^5.0.1",
@@ -39,7 +39,7 @@
"typography-theme-wordpress-2016": "^0.16.19"
},
"devDependencies": {
- "gatsby": "^2.19.25",
+ "gatsby": "^2.19.26",
"prettier": "^1.19.1",
"react": "^16.12.0",
"react-dom": "^16.12.0"
diff --git a/packages/gatsby-theme-notes/CHANGELOG.md b/packages/gatsby-theme-notes/CHANGELOG.md
index 278755a2427e9..2dfed98675afe 100644
--- a/packages/gatsby-theme-notes/CHANGELOG.md
+++ b/packages/gatsby-theme-notes/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.1.7](https://github.com/gatsbyjs/gatsby/compare/[email protected]@1.1.7) (2020-03-03)
+
+**Note:** Version bump only for package gatsby-theme-notes
+
## [1.1.6](https://github.com/gatsbyjs/gatsby/compare/[email protected]@1.1.6) (2020-03-02)
**Note:** Version bump only for package gatsby-theme-notes
diff --git a/packages/gatsby-theme-notes/package.json b/packages/gatsby-theme-notes/package.json
index c5eb1c32fae6c..c1d43458c7482 100644
--- a/packages/gatsby-theme-notes/package.json
+++ b/packages/gatsby-theme-notes/package.json
@@ -1,7 +1,7 @@
{
"name": "gatsby-theme-notes",
"description": "Gatsby Theme for adding a notes section to your website",
- "version": "1.1.6",
+ "version": "1.1.7",
"author": "John Otander",
"license": "MIT",
"main": "index.js",
@@ -20,7 +20,7 @@
},
"homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-theme-notes#readme",
"devDependencies": {
- "gatsby": "^2.19.25",
+ "gatsby": "^2.19.26",
"react": "^16.12.0",
"react-dom": "^16.12.0"
},
diff --git a/packages/gatsby/CHANGELOG.md b/packages/gatsby/CHANGELOG.md
index 5b4134049a7d4..6393b469512aa 100644
--- a/packages/gatsby/CHANGELOG.md
+++ b/packages/gatsby/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [2.19.26](https://github.com/gatsbyjs/gatsby/compare/[email protected]@2.19.26) (2020-03-03)
+
+### Features
+
+- **gatsby:** add react profiling option ([#21863](https://github.com/gatsbyjs/gatsby/issues/21863)) ([3e8f2c7](https://github.com/gatsbyjs/gatsby/commit/3e8f2c7))
+
## [2.19.25](https://github.com/gatsbyjs/gatsby/compare/[email protected]@2.19.25) (2020-03-02)
### Bug Fixes
diff --git a/packages/gatsby/package.json b/packages/gatsby/package.json
index 374af0fe19499..10958afc8d067 100644
--- a/packages/gatsby/package.json
+++ b/packages/gatsby/package.json
@@ -1,7 +1,7 @@
{
"name": "gatsby",
"description": "Blazing fast modern site generator for React",
- "version": "2.19.25",
+ "version": "2.19.26",
"author": "Kyle Mathews <[email protected]>",
"bin": {
"gatsby": "./dist/bin/gatsby.js"
@@ -69,7 +69,7 @@
"flat": "^4.1.0",
"fs-exists-cached": "1.0.0",
"fs-extra": "^8.1.0",
- "gatsby-cli": "^2.9.0",
+ "gatsby-cli": "^2.10.0",
"gatsby-core-utils": "^1.0.28",
"gatsby-graphiql-explorer": "^0.2.34",
"gatsby-link": "^2.2.29",
|
4b5f6bde1453603f359392fb2ca727e9c3416328
|
2019-04-05 03:33:27
|
Dustin Schau
|
test(gatsby): tweak tests to remove mock fs (#13135)
| false
|
tweak tests to remove mock fs (#13135)
|
test
|
diff --git a/packages/gatsby/__mocks__/fs.js b/packages/gatsby/__mocks__/fs.js
deleted file mode 100644
index 01764a4db46b9..0000000000000
--- a/packages/gatsby/__mocks__/fs.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict"
-
-const fs = jest.genMockFromModule(`fs`)
-
-let mockFiles = {}
-function __setMockFiles(newMockFiles) {
- mockFiles = Object.assign({}, newMockFiles)
-}
-
-function readFileSync(filePath, parser) {
- return mockFiles[filePath]
-}
-
-fs.__setMockFiles = __setMockFiles
-fs.readFileSync = readFileSync
-
-module.exports = fs
diff --git a/packages/gatsby/cache-dir/__tests__/static-entry.js b/packages/gatsby/cache-dir/__tests__/static-entry.js
index 41edef94ab482..a5fe877d1e5c0 100644
--- a/packages/gatsby/cache-dir/__tests__/static-entry.js
+++ b/packages/gatsby/cache-dir/__tests__/static-entry.js
@@ -1,7 +1,15 @@
import React from "react"
+import fs from "fs"
+
import DevelopStaticEntry from "../develop-static-entry"
-jest.mock(`fs`)
+jest.mock(`fs`, () => {
+ const fs = jest.requireActual(`fs`)
+ return {
+ ...fs,
+ readFileSync: jest.fn(),
+ }
+})
jest.mock(`gatsby/package.json`, () => {
return {
version: `2.0.0`,
@@ -50,10 +58,11 @@ const MOCK_FILE_INFO = {
[`${process.cwd()}/public/chunk-map.json`]: `{}`,
}
-require(`fs`).__setMockFiles(MOCK_FILE_INFO)
-
-// Needs to be imported after __setMockFiles is called, and imports get hoisted.
-const StaticEntry = require(`../static-entry`).default
+let StaticEntry
+beforeEach(() => {
+ fs.readFileSync.mockImplementation(file => MOCK_FILE_INFO[file])
+ StaticEntry = require(`../static-entry`).default
+})
const reverseHeadersPlugin = {
plugin: {
diff --git a/packages/gatsby/src/bootstrap/__tests__/resolve-module-exports.js b/packages/gatsby/src/bootstrap/__tests__/resolve-module-exports.js
index 4f0cf11755f12..714e019a10a09 100644
--- a/packages/gatsby/src/bootstrap/__tests__/resolve-module-exports.js
+++ b/packages/gatsby/src/bootstrap/__tests__/resolve-module-exports.js
@@ -1,10 +1,17 @@
-jest.mock(`fs`)
+jest.mock(`fs`, () => {
+ const fs = jest.requireActual(`fs`)
+ return {
+ ...fs,
+ readFileSync: jest.fn(),
+ }
+})
jest.mock(`gatsby-cli/lib/reporter`, () => {
return {
panic: jest.fn(),
}
})
+const fs = require(`fs`)
const reporter = require(`gatsby-cli/lib/reporter`)
const resolveModuleExports = require(`../resolve-module-exports`)
let resolver
@@ -119,7 +126,10 @@ describe(`Resolve module exports`, () => {
beforeEach(() => {
resolver = jest.fn(arg => arg)
- require(`fs`).__setMockFiles(MOCK_FILE_INFO)
+ fs.readFileSync.mockImplementation(file => {
+ const existing = MOCK_FILE_INFO[file]
+ return existing
+ })
reporter.panic.mockClear()
})
diff --git a/packages/gatsby/src/query/__tests__/file-parser.js b/packages/gatsby/src/query/__tests__/file-parser.js
index 1e1c9dcfc3684..cf9369538a849 100644
--- a/packages/gatsby/src/query/__tests__/file-parser.js
+++ b/packages/gatsby/src/query/__tests__/file-parser.js
@@ -1,15 +1,14 @@
jest.mock(`fs-extra`, () => {
- let mockFiles = {}
+ const fs = jest.requireActual(`fs`)
return {
- __setMockFiles: newMockFiles => {
- mockFiles = Object.assign({}, newMockFiles)
- },
- readFile: (filePath, parser) =>
- new Promise(resolve => resolve(mockFiles[filePath])),
+ ...fs,
+ readFile: jest.fn(),
}
})
jest.mock(`../../utils/api-runner-node`, () => () => [])
+const fs = require(`fs-extra`)
+
const FileParser = require(`../file-parser`).default
describe(`File parser`, () => {
@@ -148,7 +147,9 @@ export default () => (
const parser = new FileParser()
beforeAll(() => {
- require(`fs-extra`).__setMockFiles(MOCK_FILE_INFO)
+ fs.readFile.mockImplementation(file =>
+ Promise.resolve(MOCK_FILE_INFO[file])
+ )
})
it(`extracts query AST correctly from files`, async () => {
diff --git a/packages/gatsby/src/redux/__tests__/pages.js b/packages/gatsby/src/redux/__tests__/pages.js
index c9da9aca70e48..46917bbd4238f 100644
--- a/packages/gatsby/src/redux/__tests__/pages.js
+++ b/packages/gatsby/src/redux/__tests__/pages.js
@@ -1,16 +1,13 @@
-"use strict"
-
-const glob = require(`glob`)
-const reducer = require(`../reducers/pages`)
-const { actions } = require(`../actions`)
-const { readFile } = require(`fs-extra`)
-
-jest.mock(`fs`)
jest.mock(`fs-extra`, () => {
return {
readFile: jest.fn(() => `contents`),
}
})
+const glob = require(`glob`)
+
+const reducer = require(`../reducers/pages`)
+const { actions } = require(`../actions`)
+const { readFile } = require(`fs-extra`)
afterEach(() => {
readFile.mockClear()
@@ -22,17 +19,9 @@ Date.now = jest.fn(
1482363367071 // + diff
)
-glob.sync = jest.fn(() => ``)
+glob.sync = jest.fn()
describe(`Add pages`, () => {
- const MOCK_FILE_INFO = {
- "/whatever/index.js": `import React from 'react'; export default Page;`,
- "/whatever2/index.js": `import React from 'react'; export default Page;`,
- }
- beforeEach(() => {
- // Set up some mocked out file info before each test
- require(`fs`).__setMockFiles(MOCK_FILE_INFO)
- })
it(`allows you to add pages`, () => {
const action = actions.createPage(
{
|
9bae3a26ea40c69f45bf2f6912f4378d94114095
|
2020-05-22 04:31:00
|
Muescha
|
fix(docs): local https - fix casing in headings (#24316)
| false
|
local https - fix casing in headings (#24316)
|
fix
|
diff --git a/docs/docs/local-https.md b/docs/docs/local-https.md
index 9a12b0ec9845b..981acd6ad0c30 100644
--- a/docs/docs/local-https.md
+++ b/docs/docs/local-https.md
@@ -4,7 +4,7 @@ title: Local HTTPS
Gatsby provides an easy way to use a local HTTPS server during development, thanks to [devcert](https://github.com/davewasmer/devcert). When you enable the `https` option, a private key and certificate file will be created for your project and used by the development server.
-## Usage (Automatic HTTPS)
+## Usage (automatic HTTPS)
Start the development server using `npm run develop` as usual, and add either the `-S` or `--https` flag.
@@ -43,7 +43,7 @@ After typing in your password, `devcert` will install the CA certificate in your
`devcert` is configured to install `certutil` automatically, unless you're running Windows. If an automatic install is not successful, you may need to install it manually.
-### Manual Installation of `Certutil`
+### Manual installation of `Certutil`
To install `certutil`, you need to install the `nss tools` package(s). The exact procedure will differ depending on your operating system.
@@ -74,7 +74,7 @@ brew install nss
Pre-compiled libraries are rare, so you may need to compile it yourself. Because of how difficult Windows makes it, `devcert` will not attempt to update the Firefox trust store automatically; instead, it will fall back to using the "Firefox wizard", detailed below.
-### Debugging Installation
+### Debugging installation
If you choose not to install `certutil`, or the automatic install is not successful, you may get the following errors/prompts:
@@ -120,11 +120,11 @@ You can open the development server at `https://localhost:8000` and enjoy the HT
Find out more about [how devcert works](https://github.com/davewasmer/devcert#how-it-works).
-## Management of certificates generated by devcert
+## Management of certificates generated by `devcert`
If you want to do some maintenance/cleanup of the certificates generated by `devcert`, please refer to the [devcert-cli](https://github.com/davewasmer/devcert-cli/blob/master/README.md)
-## Custom Key and Certificate Files
+## Custom key and certificate files
You may find that you need a custom key and certificate file for HTTPS if you use multiple
machines for development (or if your dev environment is containerized in Docker).
|
332543c45b06831e7c72d712fafa0f2334196a11
|
2021-01-14 19:45:35
|
Benedikt Rötsch
|
chore(docs): adjust Contentful Rich Text example codes (#29029)
| false
|
adjust Contentful Rich Text example codes (#29029)
|
chore
|
diff --git a/packages/gatsby-source-contentful/README.md b/packages/gatsby-source-contentful/README.md
index ffe1f8546f35b..eddaec6481c07 100644
--- a/packages/gatsby-source-contentful/README.md
+++ b/packages/gatsby-source-contentful/README.md
@@ -363,29 +363,30 @@ Rich Text feature is supported in this source plugin, you can use the following
### Query Rich Text content and references
```graphql
-{
- allContentfulBlogPost {
- edges {
- node {
- bodyRichText {
- raw
- references {
- ... on ContentfulAsset {
- contentful_id
- fixed(width: 1600) {
- width
- height
- src
- srcSet
- }
- }
- ... on ContentfulBlogPost {
- contentful_id
- title
- slug
- }
+query pageQuery($id: String!) {
+ contentfulBlogPost(id: { eq: $id }) {
+ title
+ slug
+ # This is the rich text field
+ bodyRichText {
+ raw
+ references {
+ ... on ContentfulAsset {
+ contentful_id
+ __typename
+ fixed(width: 1600) {
+ width
+ height
+ src
+ srcSet
}
}
+ ... on ContentfulBlogPost {
+ contentful_id
+ __typename
+ title
+ slug
+ }
}
}
}
@@ -420,7 +421,7 @@ const options = {
},
}
-function BlogPostTemplate({ data, pageContext }) {
+function BlogPostTemplate({ data }) {
const { bodyRichText } = data.contentfulBlogPost
return <div>{bodyRichText && renderRichText(richTextField, options)}</div>
|
afd75fc28f0ac14034e828e595031f75bf8e6a72
|
2018-06-22 03:52:25
|
Kyle Mathews
|
chore(release): Publish
| false
|
Publish
|
chore
|
diff --git a/packages/babel-plugin-remove-graphql-queries/CHANGELOG.md b/packages/babel-plugin-remove-graphql-queries/CHANGELOG.md
index c83fe703fb811..fe4ffba45b480 100644
--- a/packages/babel-plugin-remove-graphql-queries/CHANGELOG.md
+++ b/packages/babel-plugin-remove-graphql-queries/CHANGELOG.md
@@ -3,6 +3,15 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+<a name="2.0.2-beta.3"></a>
+## [2.0.2-beta.3](https://github.com/gatsbyjs/gatsby/compare/babel-plugin-remove-graphql-queries@[email protected]) (2018-06-21)
+
+**Note:** Version bump only for package babel-plugin-remove-graphql-queries
+
+
+
+
+
<a name="2.0.2-beta.2"></a>
## [2.0.2-beta.2](https://github.com/gatsbyjs/gatsby/compare/babel-plugin-remove-graphql-queries@[email protected]) (2018-06-20)
diff --git a/packages/babel-plugin-remove-graphql-queries/package.json b/packages/babel-plugin-remove-graphql-queries/package.json
index ec1ee70056513..9ec6b0874bb3d 100644
--- a/packages/babel-plugin-remove-graphql-queries/package.json
+++ b/packages/babel-plugin-remove-graphql-queries/package.json
@@ -1,6 +1,6 @@
{
"name": "babel-plugin-remove-graphql-queries",
- "version": "2.0.2-beta.2",
+ "version": "2.0.2-beta.3",
"author": "Jason Quense <[email protected]>",
"devDependencies": {
"@babel/cli": "7.0.0-beta.51",
diff --git a/packages/gatsby-plugin-react-css-modules/CHANGELOG.md b/packages/gatsby-plugin-react-css-modules/CHANGELOG.md
index 4214c856e98c2..25393097cb526 100644
--- a/packages/gatsby-plugin-react-css-modules/CHANGELOG.md
+++ b/packages/gatsby-plugin-react-css-modules/CHANGELOG.md
@@ -3,6 +3,15 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+<a name="2.0.0-beta.3"></a>
+# [2.0.0-beta.3](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-react-css-modules/compare/gatsby-plugin-react-css-modules@[email protected]) (2018-06-21)
+
+**Note:** Version bump only for package gatsby-plugin-react-css-modules
+
+
+
+
+
<a name="2.0.0-beta.2"></a>
# [2.0.0-beta.2](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-react-css-modules/compare/gatsby-plugin-react-css-modules@[email protected]) (2018-06-20)
diff --git a/packages/gatsby-plugin-react-css-modules/package.json b/packages/gatsby-plugin-react-css-modules/package.json
index e3852dea3ba3f..782c77e204b39 100644
--- a/packages/gatsby-plugin-react-css-modules/package.json
+++ b/packages/gatsby-plugin-react-css-modules/package.json
@@ -1,7 +1,7 @@
{
"name": "gatsby-plugin-react-css-modules",
"description": "Gatsby plugin that transforms styleName to className using compile time CSS module resolution",
- "version": "2.0.0-beta.2",
+ "version": "2.0.0-beta.3",
"author": "Ming Aldrich-Gan <[email protected]>",
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
diff --git a/packages/gatsby-plugin-typescript/CHANGELOG.md b/packages/gatsby-plugin-typescript/CHANGELOG.md
index 0e7f2bdaf8386..063309b7af0a7 100644
--- a/packages/gatsby-plugin-typescript/CHANGELOG.md
+++ b/packages/gatsby-plugin-typescript/CHANGELOG.md
@@ -3,6 +3,15 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+<a name="2.0.0-beta.3"></a>
+# [2.0.0-beta.3](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-typescript/compare/[email protected]@2.0.0-beta.3) (2018-06-21)
+
+**Note:** Version bump only for package gatsby-plugin-typescript
+
+
+
+
+
<a name="2.0.0-beta.2"></a>
# [2.0.0-beta.2](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-typescript/compare/[email protected]@2.0.0-beta.2) (2018-06-20)
diff --git a/packages/gatsby-plugin-typescript/package.json b/packages/gatsby-plugin-typescript/package.json
index e73d9efc13296..2be30b756d032 100644
--- a/packages/gatsby-plugin-typescript/package.json
+++ b/packages/gatsby-plugin-typescript/package.json
@@ -1,7 +1,7 @@
{
"name": "gatsby-plugin-typescript",
"description": "Adds TypeScript support to Gatsby",
- "version": "2.0.0-beta.2",
+ "version": "2.0.0-beta.3",
"author": "Kyle Mathews <[email protected]>",
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
@@ -12,7 +12,7 @@
"dependencies": {
"@babel/preset-typescript": "7.0.0-beta.51",
"@babel/runtime": "7.0.0-beta.51",
- "babel-plugin-remove-graphql-queries": "^2.0.2-beta.2"
+ "babel-plugin-remove-graphql-queries": "^2.0.2-beta.3"
},
"devDependencies": {
"@babel/cli": "7.0.0-beta.51",
diff --git a/packages/gatsby-source-contentful/CHANGELOG.md b/packages/gatsby-source-contentful/CHANGELOG.md
index 064dcbb67341a..462b9d8fdfdd6 100644
--- a/packages/gatsby-source-contentful/CHANGELOG.md
+++ b/packages/gatsby-source-contentful/CHANGELOG.md
@@ -3,6 +3,15 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+<a name="2.0.1-beta.5"></a>
+## [2.0.1-beta.5](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-contentful/compare/[email protected]@2.0.1-beta.5) (2018-06-21)
+
+**Note:** Version bump only for package gatsby-source-contentful
+
+
+
+
+
<a name="2.0.1-beta.4"></a>
## [2.0.1-beta.4](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-contentful/compare/[email protected]@2.0.1-beta.4) (2018-06-20)
diff --git a/packages/gatsby-source-contentful/package.json b/packages/gatsby-source-contentful/package.json
index c2ae08f43189f..c2af7b1bfe2e1 100644
--- a/packages/gatsby-source-contentful/package.json
+++ b/packages/gatsby-source-contentful/package.json
@@ -1,7 +1,7 @@
{
"name": "gatsby-source-contentful",
"description": "Gatsby source plugin for building websites using the Contentful CMS as a data source",
- "version": "2.0.1-beta.4",
+ "version": "2.0.1-beta.5",
"author": "Marcus Ericsson <[email protected]> (mericsson.com)",
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
@@ -14,8 +14,8 @@
"contentful": "^6.1.0",
"deep-map": "^1.5.0",
"fs-extra": "^4.0.2",
- "is-online": "^7.0.0",
"gatsby-plugin-sharp": "^2.0.0-beta.2",
+ "is-online": "^7.0.0",
"json-stringify-safe": "^5.0.1",
"lodash": "^4.17.4",
"qs": "^6.4.0"
diff --git a/packages/gatsby/CHANGELOG.md b/packages/gatsby/CHANGELOG.md
index 6700087b7742f..cec2a84b62cd8 100644
--- a/packages/gatsby/CHANGELOG.md
+++ b/packages/gatsby/CHANGELOG.md
@@ -3,6 +3,15 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+<a name="2.0.0-beta.6"></a>
+# [2.0.0-beta.6](https://github.com/gatsbyjs/gatsby/compare/[email protected]@2.0.0-beta.6) (2018-06-21)
+
+**Note:** Version bump only for package gatsby
+
+
+
+
+
<a name="2.0.0-beta.5"></a>
# [2.0.0-beta.5](https://github.com/gatsbyjs/gatsby/compare/[email protected]@2.0.0-beta.5) (2018-06-21)
diff --git a/packages/gatsby/package.json b/packages/gatsby/package.json
index 56bd48b3a9688..7e7c93de29656 100644
--- a/packages/gatsby/package.json
+++ b/packages/gatsby/package.json
@@ -1,7 +1,7 @@
{
"name": "gatsby",
"description": "React.js Static Site Generator",
- "version": "2.0.0-beta.5",
+ "version": "2.0.0-beta.6",
"author": "Kyle Mathews <[email protected]>",
"bin": {
"gatsby": "./dist/bin/gatsby.js"
@@ -29,7 +29,7 @@
"babel-loader": "8.0.0-beta.0",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-dynamic-import-node": "^1.2.0",
- "babel-plugin-remove-graphql-queries": "^2.0.2-beta.2",
+ "babel-plugin-remove-graphql-queries": "^2.0.2-beta.3",
"better-queue": "^3.8.6",
"bluebird": "^3.5.0",
"chalk": "^2.3.2",
|
55be2f6486399077f96867c94e26bb19e247a5de
|
2020-05-19 16:13:39
|
Peter van der Zee
|
chore(typobot): Add ESLint to typobot ignore list (#24213)
| false
|
Add ESLint to typobot ignore list (#24213)
|
chore
|
diff --git a/.typo-ci.yml b/.typo-ci.yml
index 0d0c6d614b935..7145420c17f2e 100644
--- a/.typo-ci.yml
+++ b/.typo-ci.yml
@@ -38,3 +38,4 @@ excluded_words:
- agadoo
- hevc
- oss
+ - ESlint
|
1c871126f92f0ddec76286cb5013d0594b28cb3e
|
2020-01-29 17:14:43
|
Vladimir Razuvaev
|
refactor(gatsby): Add built-in GraphQL type for SitePage (#20951)
| false
|
Add built-in GraphQL type for SitePage (#20951)
|
refactor
|
diff --git a/packages/gatsby/src/schema/__tests__/__snapshots__/build-schema.js.snap b/packages/gatsby/src/schema/__tests__/__snapshots__/build-schema.js.snap
index 60841c6c19508..f676d91d219d7 100644
--- a/packages/gatsby/src/schema/__tests__/__snapshots__/build-schema.js.snap
+++ b/packages/gatsby/src/schema/__tests__/__snapshots__/build-schema.js.snap
@@ -896,6 +896,155 @@ type Query {
allFile(filter: FileFilterInput, sort: FileSortInput, skip: Int, limit: Int): FileConnection!
directory(sourceInstanceName: StringQueryOperatorInput, absolutePath: StringQueryOperatorInput, relativePath: StringQueryOperatorInput, extension: StringQueryOperatorInput, size: IntQueryOperatorInput, prettySize: StringQueryOperatorInput, modifiedTime: DateQueryOperatorInput, accessTime: DateQueryOperatorInput, changeTime: DateQueryOperatorInput, birthTime: DateQueryOperatorInput, root: StringQueryOperatorInput, dir: StringQueryOperatorInput, base: StringQueryOperatorInput, ext: StringQueryOperatorInput, name: StringQueryOperatorInput, relativeDirectory: StringQueryOperatorInput, dev: IntQueryOperatorInput, mode: IntQueryOperatorInput, nlink: IntQueryOperatorInput, uid: IntQueryOperatorInput, gid: IntQueryOperatorInput, rdev: IntQueryOperatorInput, ino: FloatQueryOperatorInput, atimeMs: FloatQueryOperatorInput, mtimeMs: FloatQueryOperatorInput, ctimeMs: FloatQueryOperatorInput, atime: DateQueryOperatorInput, mtime: DateQueryOperatorInput, ctime: DateQueryOperatorInput, birthtime: DateQueryOperatorInput, birthtimeMs: FloatQueryOperatorInput, id: StringQueryOperatorInput, parent: NodeFilterInput, children: NodeFilterListInput, internal: InternalFilterInput): Directory
allDirectory(filter: DirectoryFilterInput, sort: DirectorySortInput, skip: Int, limit: Int): DirectoryConnection!
+ sitePage(path: StringQueryOperatorInput, component: StringQueryOperatorInput, internalComponentName: StringQueryOperatorInput, componentChunkName: StringQueryOperatorInput, matchPath: StringQueryOperatorInput, id: StringQueryOperatorInput, parent: NodeFilterInput, children: NodeFilterListInput, internal: InternalFilterInput): SitePage
+ allSitePage(filter: SitePageFilterInput, sort: SitePageSortInput, skip: Int, limit: Int): SitePageConnection!
+}
+
+type SitePage implements Node {
+ path: String!
+ component: String!
+ internalComponentName: String!
+ componentChunkName: String!
+ matchPath: String
+ id: ID!
+ parent: Node
+ children: [Node!]!
+ internal: Internal!
+}
+
+type SitePageConnection {
+ totalCount: Int!
+ edges: [SitePageEdge!]!
+ nodes: [SitePage!]!
+ pageInfo: PageInfo!
+ distinct(field: SitePageFieldsEnum!): [String!]!
+ group(skip: Int, limit: Int, field: SitePageFieldsEnum!): [SitePageGroupConnection!]!
+}
+
+type SitePageEdge {
+ next: SitePage
+ node: SitePage!
+ previous: SitePage
+}
+
+enum SitePageFieldsEnum {
+ path
+ component
+ internalComponentName
+ componentChunkName
+ matchPath
+ id
+ parent___id
+ parent___parent___id
+ parent___parent___parent___id
+ parent___parent___parent___children
+ parent___parent___children
+ parent___parent___children___id
+ parent___parent___children___children
+ parent___parent___internal___content
+ parent___parent___internal___contentDigest
+ parent___parent___internal___description
+ parent___parent___internal___fieldOwners
+ parent___parent___internal___ignoreType
+ parent___parent___internal___mediaType
+ parent___parent___internal___owner
+ parent___parent___internal___type
+ parent___children
+ parent___children___id
+ parent___children___parent___id
+ parent___children___parent___children
+ parent___children___children
+ parent___children___children___id
+ parent___children___children___children
+ parent___children___internal___content
+ parent___children___internal___contentDigest
+ parent___children___internal___description
+ parent___children___internal___fieldOwners
+ parent___children___internal___ignoreType
+ parent___children___internal___mediaType
+ parent___children___internal___owner
+ parent___children___internal___type
+ parent___internal___content
+ parent___internal___contentDigest
+ parent___internal___description
+ parent___internal___fieldOwners
+ parent___internal___ignoreType
+ parent___internal___mediaType
+ parent___internal___owner
+ parent___internal___type
+ children
+ children___id
+ children___parent___id
+ children___parent___parent___id
+ children___parent___parent___children
+ children___parent___children
+ children___parent___children___id
+ children___parent___children___children
+ children___parent___internal___content
+ children___parent___internal___contentDigest
+ children___parent___internal___description
+ children___parent___internal___fieldOwners
+ children___parent___internal___ignoreType
+ children___parent___internal___mediaType
+ children___parent___internal___owner
+ children___parent___internal___type
+ children___children
+ children___children___id
+ children___children___parent___id
+ children___children___parent___children
+ children___children___children
+ children___children___children___id
+ children___children___children___children
+ children___children___internal___content
+ children___children___internal___contentDigest
+ children___children___internal___description
+ children___children___internal___fieldOwners
+ children___children___internal___ignoreType
+ children___children___internal___mediaType
+ children___children___internal___owner
+ children___children___internal___type
+ children___internal___content
+ children___internal___contentDigest
+ children___internal___description
+ children___internal___fieldOwners
+ children___internal___ignoreType
+ children___internal___mediaType
+ children___internal___owner
+ children___internal___type
+ internal___content
+ internal___contentDigest
+ internal___description
+ internal___fieldOwners
+ internal___ignoreType
+ internal___mediaType
+ internal___owner
+ internal___type
+}
+
+input SitePageFilterInput {
+ path: StringQueryOperatorInput
+ component: StringQueryOperatorInput
+ internalComponentName: StringQueryOperatorInput
+ componentChunkName: StringQueryOperatorInput
+ matchPath: StringQueryOperatorInput
+ id: StringQueryOperatorInput
+ parent: NodeFilterInput
+ children: NodeFilterListInput
+ internal: InternalFilterInput
+}
+
+type SitePageGroupConnection {
+ totalCount: Int!
+ edges: [SitePageEdge!]!
+ nodes: [SitePage!]!
+ pageInfo: PageInfo!
+ field: String!
+ fieldValue: String
+}
+
+input SitePageSortInput {
+ fields: [SitePageFieldsEnum]
+ order: [SortOrderEnum] = [ASC]
}
enum SortOrderEnum {
diff --git a/packages/gatsby/src/schema/__tests__/__snapshots__/print.js.snap b/packages/gatsby/src/schema/__tests__/__snapshots__/print.js.snap
index 43052315290bf..433013486b975 100644
--- a/packages/gatsby/src/schema/__tests__/__snapshots__/print.js.snap
+++ b/packages/gatsby/src/schema/__tests__/__snapshots__/print.js.snap
@@ -80,6 +80,14 @@ type Directory implements Node @dontInfer {
birthtimeMs: Float @deprecated(reason: \\"Use \`birthTime\` instead\\")
}
+type SitePage implements Node @dontInfer {
+ path: String!
+ component: String!
+ internalComponentName: String!
+ componentChunkName: String!
+ matchPath: String
+}
+
type InlineTest implements Node & ITest @childOf(types: [\\"OneMoreTest\\"]) @dontInfer {
first: Inline
second(bar: Baz): Date @dateformat(formatString: \\"MM/DD/YYYY\\")
@@ -204,6 +212,14 @@ type Directory implements Node @dontInfer {
birthtimeMs: Float @deprecated(reason: \\"Use \`birthTime\` instead\\")
}
+type SitePage implements Node @dontInfer {
+ path: String!
+ component: String!
+ internalComponentName: String!
+ componentChunkName: String!
+ matchPath: String
+}
+
type AnotherTest implements Node & ITest @dontInfer {
nested: Nested
date: Date @dateformat(formatString: \\"YYYY\\")
@@ -330,6 +346,14 @@ type Directory implements Node @dontInfer {
birthtimeMs: Float @deprecated(reason: \\"Use \`birthTime\` instead\\")
}
+type SitePage implements Node @dontInfer {
+ path: String!
+ component: String!
+ internalComponentName: String!
+ componentChunkName: String!
+ matchPath: String
+}
+
type AnotherTest implements Node & ITest @dontInfer {
nested: Nested
date: Date @dateformat(formatString: \\"YYYY\\")
diff --git a/packages/gatsby/src/schema/__tests__/__snapshots__/rebuild-schema.js.snap b/packages/gatsby/src/schema/__tests__/__snapshots__/rebuild-schema.js.snap
index 2acc0e1eb138b..ff1dc14857c5f 100644
--- a/packages/gatsby/src/schema/__tests__/__snapshots__/rebuild-schema.js.snap
+++ b/packages/gatsby/src/schema/__tests__/__snapshots__/rebuild-schema.js.snap
@@ -896,6 +896,155 @@ type Query {
allFile(filter: FileFilterInput, sort: FileSortInput, skip: Int, limit: Int): FileConnection!
directory(sourceInstanceName: StringQueryOperatorInput, absolutePath: StringQueryOperatorInput, relativePath: StringQueryOperatorInput, extension: StringQueryOperatorInput, size: IntQueryOperatorInput, prettySize: StringQueryOperatorInput, modifiedTime: DateQueryOperatorInput, accessTime: DateQueryOperatorInput, changeTime: DateQueryOperatorInput, birthTime: DateQueryOperatorInput, root: StringQueryOperatorInput, dir: StringQueryOperatorInput, base: StringQueryOperatorInput, ext: StringQueryOperatorInput, name: StringQueryOperatorInput, relativeDirectory: StringQueryOperatorInput, dev: IntQueryOperatorInput, mode: IntQueryOperatorInput, nlink: IntQueryOperatorInput, uid: IntQueryOperatorInput, gid: IntQueryOperatorInput, rdev: IntQueryOperatorInput, ino: FloatQueryOperatorInput, atimeMs: FloatQueryOperatorInput, mtimeMs: FloatQueryOperatorInput, ctimeMs: FloatQueryOperatorInput, atime: DateQueryOperatorInput, mtime: DateQueryOperatorInput, ctime: DateQueryOperatorInput, birthtime: DateQueryOperatorInput, birthtimeMs: FloatQueryOperatorInput, id: StringQueryOperatorInput, parent: NodeFilterInput, children: NodeFilterListInput, internal: InternalFilterInput): Directory
allDirectory(filter: DirectoryFilterInput, sort: DirectorySortInput, skip: Int, limit: Int): DirectoryConnection!
+ sitePage(path: StringQueryOperatorInput, component: StringQueryOperatorInput, internalComponentName: StringQueryOperatorInput, componentChunkName: StringQueryOperatorInput, matchPath: StringQueryOperatorInput, id: StringQueryOperatorInput, parent: NodeFilterInput, children: NodeFilterListInput, internal: InternalFilterInput): SitePage
+ allSitePage(filter: SitePageFilterInput, sort: SitePageSortInput, skip: Int, limit: Int): SitePageConnection!
+}
+
+type SitePage implements Node {
+ path: String!
+ component: String!
+ internalComponentName: String!
+ componentChunkName: String!
+ matchPath: String
+ id: ID!
+ parent: Node
+ children: [Node!]!
+ internal: Internal!
+}
+
+type SitePageConnection {
+ totalCount: Int!
+ edges: [SitePageEdge!]!
+ nodes: [SitePage!]!
+ pageInfo: PageInfo!
+ distinct(field: SitePageFieldsEnum!): [String!]!
+ group(skip: Int, limit: Int, field: SitePageFieldsEnum!): [SitePageGroupConnection!]!
+}
+
+type SitePageEdge {
+ next: SitePage
+ node: SitePage!
+ previous: SitePage
+}
+
+enum SitePageFieldsEnum {
+ path
+ component
+ internalComponentName
+ componentChunkName
+ matchPath
+ id
+ parent___id
+ parent___parent___id
+ parent___parent___parent___id
+ parent___parent___parent___children
+ parent___parent___children
+ parent___parent___children___id
+ parent___parent___children___children
+ parent___parent___internal___content
+ parent___parent___internal___contentDigest
+ parent___parent___internal___description
+ parent___parent___internal___fieldOwners
+ parent___parent___internal___ignoreType
+ parent___parent___internal___mediaType
+ parent___parent___internal___owner
+ parent___parent___internal___type
+ parent___children
+ parent___children___id
+ parent___children___parent___id
+ parent___children___parent___children
+ parent___children___children
+ parent___children___children___id
+ parent___children___children___children
+ parent___children___internal___content
+ parent___children___internal___contentDigest
+ parent___children___internal___description
+ parent___children___internal___fieldOwners
+ parent___children___internal___ignoreType
+ parent___children___internal___mediaType
+ parent___children___internal___owner
+ parent___children___internal___type
+ parent___internal___content
+ parent___internal___contentDigest
+ parent___internal___description
+ parent___internal___fieldOwners
+ parent___internal___ignoreType
+ parent___internal___mediaType
+ parent___internal___owner
+ parent___internal___type
+ children
+ children___id
+ children___parent___id
+ children___parent___parent___id
+ children___parent___parent___children
+ children___parent___children
+ children___parent___children___id
+ children___parent___children___children
+ children___parent___internal___content
+ children___parent___internal___contentDigest
+ children___parent___internal___description
+ children___parent___internal___fieldOwners
+ children___parent___internal___ignoreType
+ children___parent___internal___mediaType
+ children___parent___internal___owner
+ children___parent___internal___type
+ children___children
+ children___children___id
+ children___children___parent___id
+ children___children___parent___children
+ children___children___children
+ children___children___children___id
+ children___children___children___children
+ children___children___internal___content
+ children___children___internal___contentDigest
+ children___children___internal___description
+ children___children___internal___fieldOwners
+ children___children___internal___ignoreType
+ children___children___internal___mediaType
+ children___children___internal___owner
+ children___children___internal___type
+ children___internal___content
+ children___internal___contentDigest
+ children___internal___description
+ children___internal___fieldOwners
+ children___internal___ignoreType
+ children___internal___mediaType
+ children___internal___owner
+ children___internal___type
+ internal___content
+ internal___contentDigest
+ internal___description
+ internal___fieldOwners
+ internal___ignoreType
+ internal___mediaType
+ internal___owner
+ internal___type
+}
+
+input SitePageFilterInput {
+ path: StringQueryOperatorInput
+ component: StringQueryOperatorInput
+ internalComponentName: StringQueryOperatorInput
+ componentChunkName: StringQueryOperatorInput
+ matchPath: StringQueryOperatorInput
+ id: StringQueryOperatorInput
+ parent: NodeFilterInput
+ children: NodeFilterListInput
+ internal: InternalFilterInput
+}
+
+type SitePageGroupConnection {
+ totalCount: Int!
+ edges: [SitePageEdge!]!
+ nodes: [SitePage!]!
+ pageInfo: PageInfo!
+ field: String!
+ fieldValue: String
+}
+
+input SitePageSortInput {
+ fields: [SitePageFieldsEnum]
+ order: [SortOrderEnum] = [ASC]
}
enum SortOrderEnum {
diff --git a/packages/gatsby/src/schema/__tests__/rebuild-sitepage-type.js b/packages/gatsby/src/schema/__tests__/rebuild-sitepage-type.js
index a8d6eb992fe07..bfee55d5eff93 100644
--- a/packages/gatsby/src/schema/__tests__/rebuild-sitepage-type.js
+++ b/packages/gatsby/src/schema/__tests__/rebuild-sitepage-type.js
@@ -72,20 +72,25 @@ describe(`build and update schema for SitePage`, () => {
let inputFields
const initialFields = [
+ `path`,
+ `component`,
+ `internalComponentName`,
+ `componentChunkName`,
+ `matchPath`,
+ `keep`,
+ `fields`,
`id`,
`parent`,
`children`,
`internal`,
- `keep`,
- `fields`,
]
fields = Object.keys(schema.getType(`SitePage`).getFields())
- expect(fields.length).toBe(6)
+ expect(fields.length).toBe(11)
expect(fields).toEqual(initialFields)
inputFields = Object.keys(schema.getType(`SitePageFilterInput`).getFields())
- expect(fields.length).toBe(6)
+ expect(fields.length).toBe(11)
expect(inputFields).toEqual(initialFields)
// Rebuild Schema
@@ -94,11 +99,11 @@ describe(`build and update schema for SitePage`, () => {
schema = store.getState().schema
fields = Object.keys(schema.getType(`SitePage`).getFields())
- expect(fields.length).toBe(7)
+ expect(fields.length).toBe(12)
expect(fields).toEqual(initialFields.concat(`context`))
inputFields = Object.keys(schema.getType(`SitePageFilterInput`).getFields())
- expect(fields.length).toBe(7)
+ expect(fields.length).toBe(12)
expect(inputFields).toEqual(initialFields.concat(`context`))
const fieldsEnum = schema
diff --git a/packages/gatsby/src/schema/types/built-in-types.js b/packages/gatsby/src/schema/types/built-in-types.js
index 55df6a53d29bb..dde7c19faccbd 100644
--- a/packages/gatsby/src/schema/types/built-in-types.js
+++ b/packages/gatsby/src/schema/types/built-in-types.js
@@ -72,8 +72,18 @@ const directoryType = `
}
`
+const sitePageType = `
+ type SitePage implements Node @infer {
+ path: String!
+ component: String!
+ internalComponentName: String!
+ componentChunkName: String!
+ matchPath: String
+ }
+`
+
const builtInTypeDefinitions = () =>
- [fileType, directoryType].map(type => parse(type))
+ [fileType, directoryType, sitePageType].map(type => parse(type))
module.exports = {
builtInTypeDefinitions,
|
End of preview. Expand
in Data Studio
No dataset card yet
- Downloads last month
- 3