@veryfront/ext-css-purgecss 0.1.1270-rc.21871 → 0.1.1270-rc.21886

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/README.md CHANGED
@@ -25,10 +25,12 @@ network, or workspace fallback.
25
25
  ## Configuration and capabilities
26
26
 
27
27
  The factory accepts no options. It receives only bounded in-memory CSS and
28
- content snapshots from core. PurgeCSS loads `fast-glob`, which reads the CPU
29
- count to size its concurrency, so the extension requests only `system:read`
30
- with `apis: ["cpus"]`. In Deno this maps to `--allow-sys=cpus`. The extension
31
- requests no filesystem, network, environment, subprocess, or native capability.
28
+ content snapshots from core. PurgeCSS 7 uses `glob`, whose matcher reads the
29
+ `__MINIMATCH_TESTING_PLATFORM__` environment key during module loading. The
30
+ extension declares only `env:read` for that key. In Deno this maps to
31
+ `--allow-env=__MINIMATCH_TESTING_PLATFORM__`. The exact capability audit rejects
32
+ unscoped environment access and any additional key or capability. The extension
33
+ requests no filesystem, network, subprocess, native, or system capability.
32
34
 
33
35
  PurgeCSS does not expose an operation-level cancellation signal, so this
34
36
  contract cannot interrupt an invocation after it enters the provider. Core
package/esm/deno.d.ts CHANGED
@@ -10,7 +10,7 @@ declare namespace _default {
10
10
  }
11
11
  let capabilities: {
12
12
  type: string;
13
- apis: string[];
13
+ keys: string[];
14
14
  }[];
15
15
  }
16
16
  let imports: {
package/esm/deno.js CHANGED
@@ -8,16 +8,16 @@ export default {
8
8
  "contracts": {
9
9
  "provides": ["CSSPurgingEngine"]
10
10
  },
11
- "capabilities": [{ "type": "system:read", "apis": ["cpus"] }]
11
+ "capabilities": [{ "type": "env:read", "keys": ["__MINIMATCH_TESTING_PLATFORM__"] }]
12
12
  },
13
13
  "imports": {
14
- "purgecss": "npm:purgecss@8.0.0",
14
+ "purgecss": "npm:purgecss@7.0.2",
15
15
  "@std/assert": "jsr:@std/assert@1.0.19",
16
16
  "@std/testing/bdd": "jsr:@std/testing@1.0.17/bdd",
17
17
  "veryfront/extensions": "../../src/extensions/types.ts",
18
18
  "veryfront/extensions/css": "../../src/extensions/css/index.ts"
19
19
  },
20
20
  "tasks": {
21
- "test": "deno test --frozen --no-check --allow-sys=cpus src/"
21
+ "test": "deno test --frozen --no-check --allow-env=__MINIMATCH_TESTING_PLATFORM__ src/"
22
22
  }
23
23
  };
package/esm/src/index.js CHANGED
@@ -210,7 +210,7 @@ const extCSSPurgeCSS = (config) => {
210
210
  name: "ext-css-purgecss",
211
211
  version: extensionPackage.version,
212
212
  contracts: { provides: ["CSSPurgingEngine"] },
213
- capabilities: [{ type: "system:read", apis: ["cpus"] }],
213
+ capabilities: [{ type: "env:read", keys: ["__MINIMATCH_TESTING_PLATFORM__"] }],
214
214
  setup(ctx) {
215
215
  ctx.provide(CSSPurgingEngineName, engine);
216
216
  ctx.logger.debug(`[ext-css-purgecss] ${CSSPurgingEngineName} registered`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veryfront/ext-css-purgecss",
3
- "version": "0.1.1270-rc.21871",
3
+ "version": "0.1.1270-rc.21886",
4
4
  "description": "Veryfront first-party extension package for ext-css-purgecss",
5
5
  "keywords": [
6
6
  "veryfront",
@@ -42,18 +42,18 @@
42
42
  },
43
43
  "capabilities": [
44
44
  {
45
- "type": "system:read",
46
- "apis": [
47
- "cpus"
45
+ "type": "env:read",
46
+ "keys": [
47
+ "__MINIMATCH_TESTING_PLATFORM__"
48
48
  ]
49
49
  }
50
50
  ]
51
51
  },
52
52
  "dependencies": {
53
- "purgecss": "8.0.0"
53
+ "purgecss": "7.0.2"
54
54
  },
55
55
  "peerDependencies": {
56
- "veryfront": "^0.1.1270-rc.21871"
56
+ "veryfront": "^0.1.1270-rc.21886"
57
57
  },
58
58
  "type": "module",
59
59
  "types": "./esm/src/index.d.ts",
@@ -63,5 +63,5 @@
63
63
  "NOTICE",
64
64
  "README.md"
65
65
  ],
66
- "gitHead": "3f12cd0176645b7f8bc36d52ecf76d6fb01aa5fb"
66
+ "gitHead": "5609b6ed5ebf2568ef4663eabec1d6c7465c56a3"
67
67
  }