@modern-js/plugin-polyfill 2.41.0 → 2.42.1

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,4 +1,4 @@
1
1
  import type { CliPlugin } from '@modern-js/core';
2
2
  import type { AppTools } from '@modern-js/app-tools';
3
3
  export declare const polyfillPlugin: () => CliPlugin<AppTools>;
4
- export default polyfillPlugin;
4
+ export default polyfillPlugin;
@@ -1,4 +1,4 @@
1
1
  export declare const defaultPolyfill = "/__polyfill__";
2
2
  export declare const getDefaultFeatures: () => Record<string, {
3
- flags: string[];
4
- }>;
3
+ flags: string[];
4
+ }>;
@@ -1,3 +1,3 @@
1
1
  import type { ServerPlugin } from '@modern-js/server-core';
2
2
  declare const _default: () => ServerPlugin;
3
- export default _default;
3
+ export default _default;
@@ -1,14 +1,14 @@
1
1
  type CacheQueryOptions = {
2
- features: string;
3
- minify: boolean;
4
- name: string;
5
- version: string;
2
+ features: string;
3
+ minify: boolean;
4
+ name: string;
5
+ version: string;
6
6
  };
7
7
  export declare const generateCacheKey: (options: CacheQueryOptions) => string;
8
8
  export default class Cache {
9
- private readonly caches;
10
- constructor();
11
- get(hash: string): string | undefined;
12
- set(hash: string, content: string): void;
9
+ private readonly caches;
10
+ constructor();
11
+ get(hash: string): string | undefined;
12
+ set(hash: string, content: string): void;
13
13
  }
14
- export {};
14
+ export {};
@@ -1,9 +1,9 @@
1
1
  export type ServerPolyfill = {
2
- polyfill: {
3
- route: string;
4
- features: Record<string, {
5
- flags: string[];
6
- }>;
7
- minify: boolean;
8
- };
9
- };
2
+ polyfill: {
3
+ route: string;
4
+ features: Record<string, {
5
+ flags: string[];
6
+ }>;
7
+ minify: boolean;
8
+ };
9
+ };
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.41.0",
18
+ "version": "2.42.1",
19
19
  "jsnext:source": "./src/cli.ts",
20
20
  "types": "./dist/types/cli.d.ts",
21
21
  "main": "./dist/cjs/cli.js",
@@ -51,7 +51,7 @@
51
51
  "lru-cache": "^6.0.0",
52
52
  "ua-parser-js": "^0.7.33",
53
53
  "@swc/helpers": "0.5.3",
54
- "@modern-js/utils": "2.41.0"
54
+ "@modern-js/utils": "2.42.1"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/jest": "^29",
@@ -60,12 +60,12 @@
60
60
  "@types/ua-parser-js": "^0.7.36",
61
61
  "typescript": "^5",
62
62
  "jest": "^29",
63
- "@modern-js/app-tools": "2.41.0",
64
- "@modern-js/types": "2.41.0",
65
- "@modern-js/core": "2.41.0",
66
- "@scripts/build": "2.41.0",
67
- "@scripts/jest-config": "2.41.0",
68
- "@modern-js/server-core": "2.41.0"
63
+ "@modern-js/server-core": "2.42.1",
64
+ "@modern-js/app-tools": "2.42.1",
65
+ "@modern-js/types": "2.42.1",
66
+ "@modern-js/core": "2.42.1",
67
+ "@scripts/build": "2.42.1",
68
+ "@scripts/jest-config": "2.42.1"
69
69
  },
70
70
  "sideEffects": false,
71
71
  "publishConfig": {