gatsby-source-filesystem 4.11.0-next.0 → 4.11.0-next.3
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 +10 -0
- package/README.md +0 -2
- package/create-remote-file-node.js +1 -1
- package/gatsby-node.js +1 -1
- package/index.d.ts +4 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.10.1](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@4.10.1/packages/gatsby-source-filesystem) (2022-03-23)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package gatsby-source-filesystem
|
|
9
|
+
|
|
10
|
+
## [4.10.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@4.10.0/packages/gatsby-source-filesystem) (2022-03-16)
|
|
11
|
+
|
|
12
|
+
[🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v4.10)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package gatsby-source-filesystem
|
|
15
|
+
|
|
6
16
|
### [4.9.1](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@4.9.1/packages/gatsby-source-filesystem) (2022-03-09)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package gatsby-source-filesystem
|
package/README.md
CHANGED
|
@@ -130,8 +130,6 @@ createFilePath({
|
|
|
130
130
|
|
|
131
131
|
#### Example usage
|
|
132
132
|
|
|
133
|
-
The following is taken from [Gatsby Tutorial, Part Seven](https://www.gatsbyjs.org/tutorial/part-7/) and is used to create URL slugs for markdown pages.
|
|
134
|
-
|
|
135
133
|
```javascript
|
|
136
134
|
const { createFilePath } = require(`gatsby-source-filesystem`)
|
|
137
135
|
|
|
@@ -153,7 +153,7 @@ module.exports = function createRemoteFileNode({
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
if (!url || isWebUri(url) === undefined) {
|
|
156
|
-
|
|
156
|
+
throw new Error(`url passed to createRemoteFileNode is either missing or not a proper web uri: ${url}`);
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
const fileDownloadPromise = processRemoteNode({
|
package/gatsby-node.js
CHANGED
|
@@ -209,7 +209,7 @@ exports.sourceNodes = (api, pluginOptions) => {
|
|
|
209
209
|
The path passed to gatsby-source-filesystem does not exist on your file system:
|
|
210
210
|
${pluginOptions.path}
|
|
211
211
|
Please pick a path to an existing directory.
|
|
212
|
-
See docs here - https://www.gatsbyjs.
|
|
212
|
+
See docs here - https://www.gatsbyjs.com/plugins/gatsby-source-filesystem/
|
|
213
213
|
`);
|
|
214
214
|
} // Validate that the path is absolute.
|
|
215
215
|
// Absolute paths are required to resolve images correctly.
|
package/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { Node, Store, NodePluginArgs } from "gatsby"
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @see https://www.gatsbyjs.
|
|
4
|
+
* @see https://www.gatsbyjs.com/plugins/gatsby-source-filesystem/?=files#createfilepath
|
|
5
5
|
*/
|
|
6
6
|
export function createFilePath(args: CreateFilePathArgs): string
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* @see https://www.gatsbyjs.
|
|
9
|
+
* @see https://www.gatsbyjs.com/plugins/gatsby-source-filesystem/?=files#createremotefilenode
|
|
10
10
|
*/
|
|
11
11
|
export function createRemoteFileNode(
|
|
12
12
|
args: CreateRemoteFileNodeArgs
|
|
13
13
|
): Promise<FileSystemNode>
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* @see https://www.gatsbyjs.
|
|
16
|
+
* @see https://www.gatsbyjs.com/plugins/gatsby-source-filesystem/?=files#createfilenodefrombuffer
|
|
17
17
|
*/
|
|
18
18
|
export function createFileNodeFromBuffer(
|
|
19
19
|
args: CreateFileNodeFromBufferArgs
|
|
@@ -103,7 +103,7 @@ export interface FileSystemConfig {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
* @see https://www.gatsbyjs.
|
|
106
|
+
* @see https://www.gatsbyjs.com/plugins/gatsby-source-filesystem/?=filesy#options
|
|
107
107
|
*/
|
|
108
108
|
interface FileSystemOptions {
|
|
109
109
|
name: string
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.11.0-next.
|
|
4
|
+
"version": "4.11.0-next.3",
|
|
5
5
|
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/gatsbyjs/gatsby/issues"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"chokidar": "^3.5.2",
|
|
12
12
|
"file-type": "^16.5.3",
|
|
13
13
|
"fs-extra": "^10.0.0",
|
|
14
|
-
"gatsby-core-utils": "^3.11.0-next.
|
|
14
|
+
"gatsby-core-utils": "^3.11.0-next.1",
|
|
15
15
|
"got": "^9.6.0",
|
|
16
16
|
"md5-file": "^5.0.0",
|
|
17
17
|
"mime": "^2.5.2",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": ">=14.15.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "d278739399df5e1cfdaabecbaa9c06957d5b05f0"
|
|
53
53
|
}
|