@content-collections/integrations 0.2.1 → 0.3.0

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @content-collections/integrations@0.2.1 build /home/runner/work/content-collections/content-collections/packages/integrations
2
+ > @content-collections/integrations@0.3.0 build /home/runner/work/content-collections/content-collections/packages/integrations
3
3
  > tsup src/index.ts --format esm,cjs --dts -d dist
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,11 +8,11 @@
8
8
  CLI Target: es2022
9
9
  ESM Build start
10
10
  CJS Build start
11
- CJS dist/index.cjs 3.49 KB
11
+ ESM dist/index.js 2.02 KB
12
+ ESM ⚡️ Build success in 21ms
13
+ CJS dist/index.cjs 3.72 KB
12
14
  CJS ⚡️ Build success in 21ms
13
- ESM dist/index.js 1.81 KB
14
- ESM ⚡️ Build success in 22ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 849ms
16
+ DTS ⚡️ Build success in 839ms
17
17
  DTS dist/index.d.ts 143.00 B
18
18
  DTS dist/index.d.cts 143.00 B
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @content-collections/integrations
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#633](https://github.com/sdorra/content-collections/pull/633) [`86490bc`](https://github.com/sdorra/content-collections/commit/86490bc8815ba03ede8c3a9dcb45931cd686db9c) Thanks [@sdorra](https://github.com/sdorra)! - Log skipped documents
8
+
3
9
  ## 0.2.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -85,6 +85,10 @@ function configureLogging(builder) {
85
85
  console.log("... file", relativePath, "changed");
86
86
  }
87
87
  });
88
+ builder.on("transformer:document-skipped", (event) => {
89
+ const relativePath = import_node_path2.default.relative(process.cwd(), event.filePath);
90
+ console.log("... document", relativePath, "skipped", "due to", event.reason);
91
+ });
88
92
  registerErrorListeners(builder);
89
93
  builder.on("_error", ({ _event, error }) => {
90
94
  if (isUnknownError(_event)) {
package/dist/index.js CHANGED
@@ -51,6 +51,10 @@ function configureLogging(builder) {
51
51
  console.log("... file", relativePath, "changed");
52
52
  }
53
53
  });
54
+ builder.on("transformer:document-skipped", (event) => {
55
+ const relativePath = path2.relative(process.cwd(), event.filePath);
56
+ console.log("... document", relativePath, "skipped", "due to", event.reason);
57
+ });
54
58
  registerErrorListeners(builder);
55
59
  builder.on("_error", ({ _event, error }) => {
56
60
  if (isUnknownError(_event)) {
package/package.json CHANGED
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@content-collections/integrations",
3
- "description": "Utils for integrating Content Collections with other tools",
4
- "version": "0.2.1",
5
3
  "type": "module",
4
+ "version": "0.3.0",
5
+ "description": "Utils for integrating Content Collections with other tools",
6
+ "author": "Sebastian Sdorra <s.sdorra@gmail.com>",
7
+ "license": "MIT",
8
+ "homepage": "https://content-collections.dev",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/sdorra/content-collections.git",
12
+ "directory": "packages/integrations"
13
+ },
14
+ "bugs": "https://github.com/sdorra/content-collections/issues",
6
15
  "main": "dist/index.cjs",
7
16
  "module": "dist/index.js",
8
17
  "types": "./dist/index.d.ts",
@@ -18,7 +27,7 @@
18
27
  "@types/node": "20",
19
28
  "tsup": "^8.2.4",
20
29
  "typescript": "^5.5.4",
21
- "@content-collections/core": "0.7.2"
30
+ "@content-collections/core": "0.11.0"
22
31
  },
23
32
  "peerDependencies": {
24
33
  "@content-collections/core": "0.x"
package/src/index.ts CHANGED
@@ -31,6 +31,11 @@ export function configureLogging(builder: Builder) {
31
31
  }
32
32
  });
33
33
 
34
+ builder.on("transformer:document-skipped", (event) => {
35
+ const relativePath = path.relative(process.cwd(), event.filePath);
36
+ console.log("... document", relativePath, "skipped", "due to", event.reason);
37
+ });
38
+
34
39
  registerErrorListeners(builder);
35
40
 
36
41
  builder.on("_error", ({ _event, error }) => {