gatsby-source-filesystem 4.13.0 → 4.14.0-alpha-transformer-json.26

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,103 @@
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
+ ## [4.24.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@4.24.0/packages/gatsby-source-filesystem) (2022-09-27)
7
+
8
+ [🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v4.24)
9
+
10
+ **Note:** Version bump only for package gatsby-source-filesystem
11
+
12
+ ## [4.23.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@4.23.0/packages/gatsby-source-filesystem) (2022-09-13)
13
+
14
+ [🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v4.23)
15
+
16
+ **Note:** Version bump only for package gatsby-source-filesystem
17
+
18
+ ## [4.22.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@4.22.0/packages/gatsby-source-filesystem) (2022-08-30)
19
+
20
+ [🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v4.22)
21
+
22
+ #### Chores
23
+
24
+ - pin xstate [#36398](https://github.com/gatsbyjs/gatsby/issues/36398) ([6e4a0de](https://github.com/gatsbyjs/gatsby/commit/6e4a0de10b395d0addf11c77b89a846f94a1b432))
25
+ - Remove unused deps [#36368](https://github.com/gatsbyjs/gatsby/issues/36368) ([8bad1a7](https://github.com/gatsbyjs/gatsby/commit/8bad1a7a612c121fd4c8965c76cf7a0d87fbc3fa))
26
+
27
+ ### [4.21.1](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@4.21.1/packages/gatsby-source-filesystem) (2022-08-18)
28
+
29
+ #### Chores
30
+
31
+ - pin xstate [#36398](https://github.com/gatsbyjs/gatsby/issues/36398) [#36415](https://github.com/gatsbyjs/gatsby/issues/36415) ([29c7ad1](https://github.com/gatsbyjs/gatsby/commit/29c7ad1335cf25af3a326ea2813399ddfd8ea877))
32
+
33
+ ## [4.21.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@4.21.0/packages/gatsby-source-filesystem) (2022-08-16)
34
+
35
+ [🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v4.21)
36
+
37
+ #### Bug Fixes
38
+
39
+ - update dependency file-type to ^16.5.4 for gatsby-source-filesystem [#36276](https://github.com/gatsbyjs/gatsby/issues/36276) ([2bbe96d](https://github.com/gatsbyjs/gatsby/commit/2bbe96d9099e1c3d9b64ab3bb5c9b257c40386b9))
40
+
41
+ #### Chores
42
+
43
+ - Update `got` [#36366](https://github.com/gatsbyjs/gatsby/issues/36366) ([ab55e4e](https://github.com/gatsbyjs/gatsby/commit/ab55e4e30a023d56e4c4332dfd278015a0f49ee0))
44
+
45
+ ## [4.20.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@4.20.0/packages/gatsby-source-filesystem) (2022-08-02)
46
+
47
+ [🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v4.20)
48
+
49
+ **Note:** Version bump only for package gatsby-source-filesystem
50
+
51
+ ## [4.19.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@4.19.0/packages/gatsby-source-filesystem) (2022-07-19)
52
+
53
+ [🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v4.19)
54
+
55
+ **Note:** Version bump only for package gatsby-source-filesystem
56
+
57
+ ### [4.18.1](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@4.18.1/packages/gatsby-source-filesystem) (2022-07-12)
58
+
59
+ **Note:** Version bump only for package gatsby-source-filesystem
60
+
61
+ ## [4.18.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@4.18.0/packages/gatsby-source-filesystem) (2022-07-05)
62
+
63
+ [🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v4.18)
64
+
65
+ #### Bug Fixes
66
+
67
+ - update dependency chokidar to ^3.5.3 [#34643](https://github.com/gatsbyjs/gatsby/issues/34643) ([9b308cb](https://github.com/gatsbyjs/gatsby/commit/9b308cb744047beeea3a5b2f500fbf5a8b8ef2d5))
68
+
69
+ ## [4.17.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@4.17.0/packages/gatsby-source-filesystem) (2022-06-21)
70
+
71
+ [🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v4.17)
72
+
73
+ **Note:** Version bump only for package gatsby-source-filesystem
74
+
75
+ ## [4.16.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@4.16.0/packages/gatsby-source-filesystem) (2022-06-07)
76
+
77
+ [🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v4.16)
78
+
79
+ #### Bug Fixes
80
+
81
+ - Update `createRemoteFileNode` args [#35422](https://github.com/gatsbyjs/gatsby/issues/35422) fixes [#35363](https://github.com/gatsbyjs/gatsby/issues/35363) ([caaf7a5](https://github.com/gatsbyjs/gatsby/commit/caaf7a555bb42043044f05743eec0ac1ad372cc4))
82
+
83
+ ## [4.15.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@4.15.0/packages/gatsby-source-filesystem) (2022-05-24)
84
+
85
+ [🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v4.15)
86
+
87
+ **Note:** Version bump only for package gatsby-source-filesystem
88
+
89
+ ## [4.14.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@4.14.0/packages/gatsby-source-filesystem) (2022-05-10)
90
+
91
+ [🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v4.14)
92
+
93
+ #### Bug Fixes
94
+
95
+ - update dependency fs-extra to ^10.1.0 [#34976](https://github.com/gatsbyjs/gatsby/issues/34976) ([10752ed](https://github.com/gatsbyjs/gatsby/commit/10752ed325ac0ebc2655b994862f66abe072e09f))
96
+
97
+ ## [4.13.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@4.13.0/packages/gatsby-source-filesystem) (2022-04-26)
98
+
99
+ [🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v4.13)
100
+
101
+ **Note:** Version bump only for package gatsby-source-filesystem
102
+
6
103
  ### [4.12.1](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@4.12.1/packages/gatsby-source-filesystem) (2022-04-13)
7
104
 
8
105
  **Note:** Version bump only for package gatsby-source-filesystem
@@ -20,11 +20,6 @@ const {
20
20
  * @see gatsby/packages/gatsby/utils/cache.js
21
21
  */
22
22
 
23
- /**
24
- * @typedef {Reporter}
25
- * @see gatsby/packages/gatsby-cli/lib/reporter.js
26
- */
27
-
28
23
  /**
29
24
  * @typedef {Auth}
30
25
  * @type {Object}
@@ -42,7 +37,6 @@ const {
42
37
  * @param {Function} options.createNode
43
38
  * @param {Function} options.getCache
44
39
  * @param {Auth} [options.auth]
45
- * @param {Reporter} [options.reporter]
46
40
  */
47
41
 
48
42
  /******************
package/error-utils.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
+ exports.pluginPrefix = exports.ERROR_MAP = exports.CODES = void 0;
4
5
  exports.prefixId = prefixId;
5
- exports.ERROR_MAP = exports.pluginPrefix = exports.CODES = void 0;
6
6
  const CODES = {
7
7
  Generic: `10000`,
8
8
  MissingResource: `10001`
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Node, Store, NodePluginArgs } from "gatsby"
1
+ import { Node, GatsbyCache } from "gatsby"
2
2
 
3
3
  /**
4
4
  * @see https://www.gatsbyjs.com/plugins/gatsby-source-filesystem/?=files#createfilepath
@@ -28,9 +28,8 @@ export interface CreateFilePathArgs {
28
28
 
29
29
  export interface CreateRemoteFileNodeArgs {
30
30
  url: string
31
- store: Store
32
- // TODO: use GatsbyCache type (requires gatsby@2.22.13)
33
- cache: NodePluginArgs["cache"]
31
+ cache?: GatsbyCache
32
+ getCache?: Function
34
33
  createNode: Function
35
34
  createNodeId: Function
36
35
  parentNodeId?: string
@@ -41,14 +40,12 @@ export interface CreateRemoteFileNodeArgs {
41
40
  httpHeaders?: object
42
41
  ext?: string
43
42
  name?: string
44
- reporter: object
45
43
  }
46
44
 
47
45
  export interface CreateFileNodeFromBufferArgs {
48
46
  buffer: Buffer
49
- store: Store
50
- // TODO: use GatsbyCache type (requires gatsby@2.22.13)
51
- cache: NodePluginArgs["cache"]
47
+ cache?: GatsbyCache
48
+ getCache?: Function
52
49
  createNode: Function
53
50
  createNodeId: Function
54
51
  parentNodeId?: string
package/package.json CHANGED
@@ -1,29 +1,27 @@
1
1
  {
2
2
  "name": "gatsby-source-filesystem",
3
3
  "description": "Gatsby source plugin for building websites from local data. Markdown, JSON, images, YAML, CSV, and dozens of other data types supported.",
4
- "version": "4.13.0",
4
+ "version": "4.14.0-alpha-transformer-json.26+e579e74caa",
5
5
  "author": "Kyle Mathews <mathews.kyle@gmail.com>",
6
6
  "bugs": {
7
7
  "url": "https://github.com/gatsbyjs/gatsby/issues"
8
8
  },
9
9
  "dependencies": {
10
10
  "@babel/runtime": "^7.15.4",
11
- "chokidar": "^3.5.2",
12
- "file-type": "^16.5.3",
13
- "fs-extra": "^10.0.0",
14
- "gatsby-core-utils": "^3.13.0",
15
- "got": "^9.6.0",
11
+ "chokidar": "^3.5.3",
12
+ "file-type": "^16.5.4",
13
+ "fs-extra": "^10.1.0",
14
+ "gatsby-core-utils": "3.14.0-alpha-transformer-json.26+e579e74caa",
16
15
  "md5-file": "^5.0.0",
17
16
  "mime": "^2.5.2",
18
17
  "pretty-bytes": "^5.4.1",
19
- "progress": "^2.0.3",
20
18
  "valid-url": "^1.0.9",
21
- "xstate": "^4.26.1"
19
+ "xstate": "4.32.1"
22
20
  },
23
21
  "devDependencies": {
24
22
  "@babel/cli": "^7.15.4",
25
23
  "@babel/core": "^7.15.5",
26
- "babel-preset-gatsby-package": "^2.13.0",
24
+ "babel-preset-gatsby-package": "2.14.0-alpha-transformer-json.26+e579e74caa",
27
25
  "cross-env": "^7.0.3"
28
26
  },
29
27
  "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-filesystem#readme",
@@ -33,7 +31,7 @@
33
31
  ],
34
32
  "license": "MIT",
35
33
  "peerDependencies": {
36
- "gatsby": "^4.0.0-next"
34
+ "gatsby": "^5.0.0-alpha-v5"
37
35
  },
38
36
  "repository": {
39
37
  "type": "git",
@@ -47,7 +45,7 @@
47
45
  },
48
46
  "types": "index.d.ts",
49
47
  "engines": {
50
- "node": ">=14.15.0"
48
+ "node": ">=18.0.0"
51
49
  },
52
- "gitHead": "89509ff7893787cf7359bc64b66a2ec32ced51d0"
50
+ "gitHead": "e579e74caac6a21181c47e1bd165d28c5c9ad7e6"
53
51
  }
package/utils.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
+ exports.createFilePath = void 0;
4
5
  exports.getRemoteFileExtension = getRemoteFileExtension;
5
6
  exports.getRemoteFileName = getRemoteFileName;
6
- exports.createFilePath = void 0;
7
7
 
8
8
  const path = require(`path`);
9
9