rolldown-license-plugin 3.0.1 → 3.0.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.
Files changed (2) hide show
  1. package/README.md +5 -3
  2. package/package.json +26 -15
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # rolldown-license-plugin
2
2
 
3
- [![](https://img.shields.io/npm/v/rolldown-license-plugin.svg?style=flat)](https://www.npmjs.org/package/rolldown-license-plugin) [![](https://img.shields.io/npm/dm/rolldown-license-plugin.svg)](https://www.npmjs.org/package/rolldown-license-plugin) [![](https://depx.co/api/badge/rolldown-license-plugin)](https://depx.co/pkg/rolldown-license-plugin)
3
+ [![](https://img.shields.io/npm/v/rolldown-license-plugin.svg?style=flat)](https://www.npmjs.org/package/rolldown-license-plugin) [![](https://img.shields.io/npm/dm/rolldown-license-plugin.svg)](https://www.npmjs.org/package/rolldown-license-plugin) [![](https://packagephobia.com/badge?p=rolldown-license-plugin)](https://packagephobia.com/result?p=rolldown-license-plugin) [![](https://depx.co/api/badge/rolldown-license-plugin)](https://depx.co/pkg/rolldown-license-plugin)
4
4
 
5
5
  Rolldown plugin to extract dependency licenses and optionally validate them. Zero dependencies, optimized for performance.
6
6
 
@@ -47,13 +47,15 @@ Regex to match license filenames in package directories.
47
47
 
48
48
  #### `opts.wrapLicenseText`
49
49
 
50
- Type: `number`
50
+ Type: `number`\
51
+ Default: `undefined` (no wrapping)
51
52
 
52
53
  When set, word-wrap `licenseText` to this column width.
53
54
 
54
55
  #### `opts.allow`
55
56
 
56
- Type: `(license: LicenseInfo) => boolean`
57
+ Type: `(license: LicenseInfo) => boolean`\
58
+ Default: `undefined` (no validation)
57
59
 
58
60
  Validate each dependency's license. Return `false` to reject it. By default, rejected dependencies are warned via `console.warn`. Use `failOnViolation` and `failOnUnlicensed` to throw build errors instead.
59
61
 
package/package.json CHANGED
@@ -1,10 +1,17 @@
1
1
  {
2
2
  "name": "rolldown-license-plugin",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "description": "Rolldown plugin to extract dependency licenses",
5
5
  "author": "silverwind <me@silverwind.io>",
6
6
  "repository": "silverwind/rolldown-license-plugin",
7
7
  "license": "BSD-2-Clause",
8
+ "keywords": [
9
+ "rolldown",
10
+ "rolldown-plugin",
11
+ "license",
12
+ "licenses",
13
+ "third-party"
14
+ ],
8
15
  "type": "module",
9
16
  "sideEffects": false,
10
17
  "main": "./dist/index.js",
@@ -15,25 +22,29 @@
15
22
  "files": [
16
23
  "dist"
17
24
  ],
25
+ "engines": {
26
+ "node": "*",
27
+ "bun": "*"
28
+ },
18
29
  "peerDependencies": {
19
30
  "rolldown": "*"
20
31
  },
21
32
  "devDependencies": {
22
33
  "@types/node": "25.6.0",
23
- "@typescript/native-preview": "7.0.0-dev.20260415.1",
24
- "eslint": "10.2.0",
25
- "eslint-config-silverwind": "131.0.4",
34
+ "@typescript/native-preview": "7.0.0-dev.20260427.1",
35
+ "eslint": "10.2.1",
36
+ "eslint-config-silverwind": "132.0.0",
26
37
  "jest-extended": "7.0.0",
27
- "rolldown": "1.0.0-rc.15",
28
- "tsdown": "0.21.8",
29
- "tsdown-config-silverwind": "2.0.6",
30
- "typescript": "6.0.2",
31
- "typescript-config-silverwind": "17.0.0",
32
- "updates": "17.15.3",
33
- "updates-config-silverwind": "2.1.0",
34
- "versions": "14.3.2",
35
- "vite": "8.0.8",
36
- "vitest": "4.1.4",
37
- "vitest-config-silverwind": "11.1.4"
38
+ "rolldown": "1.0.0-rc.17",
39
+ "tsdown": "0.21.10",
40
+ "tsdown-config-silverwind": "2.1.1",
41
+ "typescript": "6.0.3",
42
+ "typescript-config-silverwind": "18.0.0",
43
+ "updates": "17.16.4",
44
+ "updates-config-silverwind": "2.1.1",
45
+ "versions": "15.0.1",
46
+ "vite": "8.0.10",
47
+ "vitest": "4.1.5",
48
+ "vitest-config-silverwind": "11.3.1"
38
49
  }
39
50
  }