@relative-ci/rollup-plugin 5.3.4-alpha.0 → 6.0.0-beta.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.
@@ -19,11 +19,10 @@ var __copyProps = (to, from, except, desc) => {
19
19
  }
20
20
  return to;
21
21
  };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
23
23
  value: mod,
24
24
  enumerable: true
25
25
  }) : target, mod));
26
26
 
27
27
  //#endregion
28
-
29
28
  exports.__toESM = __toESM;
package/dist/plugin.cjs CHANGED
@@ -42,20 +42,23 @@ const relativeCiAgent = (userOptions = {}) => ({
42
42
  return;
43
43
  }
44
44
  const { moduleOriginalSize, transform, ...extractStatsOptions } = statsOptions;
45
- const bundleWebpackStats = (0, rollup_plugin_webpack_stats_transform.bundleToWebpackStats)((0, rollup_plugin_stats_extract.default)(bundle, {
45
+ const bundleStats = (0, rollup_plugin_stats_extract.default)(bundle, {
46
46
  source: true,
47
47
  ...extractStatsOptions
48
- }), {
48
+ });
49
+ const bundleWebpackStats = (0, rollup_plugin_webpack_stats_transform.bundleToWebpackStats)(bundleStats, {
49
50
  moduleOriginalSize,
50
51
  transform
51
52
  });
52
53
  try {
53
54
  (0, _relative_ci_core.validateWebpackStats)(bundleWebpackStats);
54
55
  const envParams = await (0, _relative_ci_core_env.default)({ agentType: "rollup-plugin" }, { includeCommitMessage }, logger);
55
- (0, _relative_ci_core.logResponse)(await (0, _relative_ci_core_ingest.default)((0, _relative_ci_core.filterArtifacts)([{
56
+ const artifactsData = (0, _relative_ci_core.filterArtifacts)([{
56
57
  key: _relative_ci_core.SOURCE_WEBPACK_STATS,
57
58
  data: bundleWebpackStats
58
- }]), envParams, agentOptions, logger));
59
+ }]);
60
+ const response = await (0, _relative_ci_core_ingest.default)(artifactsData, envParams, agentOptions, logger);
61
+ (0, _relative_ci_core.logResponse)(response);
59
62
  } catch (pluginError) {
60
63
  const error = pluginError instanceof Error ? pluginError.message : String(pluginError);
61
64
  if (failOnError) {
package/dist/plugin.d.cts CHANGED
@@ -2,7 +2,6 @@ import { OutputBundle } from "rollup-plugin-stats";
2
2
  import { StatsOptions } from "rollup-plugin-stats/extract";
3
3
  import { BundleTransformOptions } from "rollup-plugin-webpack-stats/transform";
4
4
  import { PluginConfig } from "@relative-ci/core";
5
-
6
5
  //#region src/plugin.d.ts
7
6
  /**
8
7
  * Subset of the Vite/Rolldown/Rollup plugin hook context (`this`) used by this plugin.
@@ -22,7 +21,8 @@ type PluginContext = {
22
21
  * }
23
22
  */
24
23
  type Plugin = {
25
- /** Unique identifier for the plugin, used in error messages and logs. */name: string;
24
+ /** Unique identifier for the plugin, used in error messages and logs. */
25
+ name: string;
26
26
  /**
27
27
  * Hook called after the bundle has been fully generated but before it is
28
28
  * written to disk. Receives the resolved output options and the complete
@@ -49,5 +49,5 @@ type RelativeCiAgentOptions = {
49
49
  } & PluginConfig;
50
50
  declare const relativeCiAgent: (userOptions?: RelativeCiAgentOptions) => Plugin;
51
51
  //#endregion
52
- export { relativeCiAgent };
52
+ export { Plugin, relativeCiAgent };
53
53
  //# sourceMappingURL=plugin.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../src/plugin.ts"],"mappings":";;;;;;;;AAgB2B;KAStB,aAAA;EACH,IAAA,GAAO,OAAA;EACP,IAAA,GAAO,OAAA;EACP,KAAA,GAAQ,OAAA;AAAA;;;;;;AAAe;AAYzB;;;KAAY,MAAA;EAYA,yEAVV,IAAA;EAYmB;;;;;EALnB,cAAA,IACE,IAAA,EAAM,aAAA,EACN,aAAA,WACA,MAAA,EAAQ,YAAA,EACR,OAAA,qBACU,OAAA;AAAA;AAAA,KAGT,sBAAA;EALD;;;;EAUF,OAAA;EALG;;;;EAUH,WAAA;EAKuC;;;;EAAvC,KAAA,GAAQ,IAAA,CAAK,YAAA,cAA0B,sBAAA;AAAA,IACrC,YAAA;AAAA,cAeS,eAAA,GAAmB,WAAA,GAAa,sBAAA,KAA8B,MAoEzE"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../src/plugin.ts"],"mappings":";;;;;;;;KAyBK;EACH,OAAO;EACP,OAAO;EACP,QAAQ;;;;;;;;;;;KAYE;;EAEV;;;;;;EAOA,kBACE,MAAM,eACN,wBACA,QAAQ,cACR,4BACU;;KAGT;;;;;EAKH;;;;;EAKA;;;;;EAKA,QAAQ,KAAK,0BAA0B;IACrC;cAeS,kBAAmB,cAAa,2BAA8B"}
package/dist/plugin.d.mts CHANGED
@@ -2,7 +2,6 @@ import { StatsOptions } from "rollup-plugin-stats/extract";
2
2
  import { BundleTransformOptions } from "rollup-plugin-webpack-stats/transform";
3
3
  import { PluginConfig } from "@relative-ci/core";
4
4
  import { OutputBundle } from "rollup-plugin-stats";
5
-
6
5
  //#region src/plugin.d.ts
7
6
  /**
8
7
  * Subset of the Vite/Rolldown/Rollup plugin hook context (`this`) used by this plugin.
@@ -22,7 +21,8 @@ type PluginContext = {
22
21
  * }
23
22
  */
24
23
  type Plugin = {
25
- /** Unique identifier for the plugin, used in error messages and logs. */name: string;
24
+ /** Unique identifier for the plugin, used in error messages and logs. */
25
+ name: string;
26
26
  /**
27
27
  * Hook called after the bundle has been fully generated but before it is
28
28
  * written to disk. Receives the resolved output options and the complete
@@ -49,5 +49,5 @@ type RelativeCiAgentOptions = {
49
49
  } & PluginConfig;
50
50
  declare const relativeCiAgent: (userOptions?: RelativeCiAgentOptions) => Plugin;
51
51
  //#endregion
52
- export { relativeCiAgent };
52
+ export { Plugin, relativeCiAgent };
53
53
  //# sourceMappingURL=plugin.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../src/plugin.ts"],"mappings":";;;;;;;;AAgB2B;KAStB,aAAA;EACH,IAAA,GAAO,OAAA;EACP,IAAA,GAAO,OAAA;EACP,KAAA,GAAQ,OAAA;AAAA;;;;;;AAAe;AAYzB;;;KAAY,MAAA;EAYA,yEAVV,IAAA;EAYmB;;;;;EALnB,cAAA,IACE,IAAA,EAAM,aAAA,EACN,aAAA,WACA,MAAA,EAAQ,YAAA,EACR,OAAA,qBACU,OAAA;AAAA;AAAA,KAGT,sBAAA;EALD;;;;EAUF,OAAA;EALG;;;;EAUH,WAAA;EAKuC;;;;EAAvC,KAAA,GAAQ,IAAA,CAAK,YAAA,cAA0B,sBAAA;AAAA,IACrC,YAAA;AAAA,cAeS,eAAA,GAAmB,WAAA,GAAa,sBAAA,KAA8B,MAoEzE"}
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../src/plugin.ts"],"mappings":";;;;;;;;KAyBK;EACH,OAAO;EACP,OAAO;EACP,QAAQ;;;;;;;;;;;KAYE;;EAEV;;;;;;EAOA,kBACE,MAAM,eACN,wBACA,QAAQ,cACR,4BACU;;KAGT;;;;;EAKH;;;;;EAKA;;;;;EAKA,QAAQ,KAAK,0BAA0B;IACrC;cAeS,kBAAmB,cAAa,2BAA8B"}
package/dist/plugin.mjs CHANGED
@@ -37,20 +37,23 @@ const relativeCiAgent = (userOptions = {}) => ({
37
37
  return;
38
38
  }
39
39
  const { moduleOriginalSize, transform, ...extractStatsOptions } = statsOptions;
40
- const bundleWebpackStats = bundleToWebpackStats(extractStats(bundle, {
40
+ const bundleStats = extractStats(bundle, {
41
41
  source: true,
42
42
  ...extractStatsOptions
43
- }), {
43
+ });
44
+ const bundleWebpackStats = bundleToWebpackStats(bundleStats, {
44
45
  moduleOriginalSize,
45
46
  transform
46
47
  });
47
48
  try {
48
49
  validateWebpackStats(bundleWebpackStats);
49
50
  const envParams = await loadEnv({ agentType: "rollup-plugin" }, { includeCommitMessage }, logger);
50
- logResponse(await ingest(filterArtifacts([{
51
+ const artifactsData = filterArtifacts([{
51
52
  key: SOURCE_WEBPACK_STATS,
52
53
  data: bundleWebpackStats
53
- }]), envParams, agentOptions, logger));
54
+ }]);
55
+ const response = await ingest(artifactsData, envParams, agentOptions, logger);
56
+ logResponse(response);
54
57
  } catch (pluginError) {
55
58
  const error = pluginError instanceof Error ? pluginError.message : String(pluginError);
56
59
  if (failOnError) {
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.mjs","names":[],"sources":["../src/plugin.ts"],"sourcesContent":["import _ from 'lodash';\nimport { type OutputBundle } from 'rollup-plugin-stats';\n// eslint-disable-next-line import/no-unresolved\nimport extractStats, { type StatsOptions } from 'rollup-plugin-stats/extract';\n// eslint-disable-next-line import/no-unresolved\nimport { bundleToWebpackStats } from 'rollup-plugin-webpack-stats/transform';\nimport type { BundleTransformOptions } from 'rollup-plugin-webpack-stats/transform';\n\nimport {\n type Logger,\n type PluginConfig,\n SOURCE_WEBPACK_STATS,\n debug,\n filterArtifacts,\n logResponse,\n validateWebpackStats,\n} from '@relative-ci/core';\nimport loadEnv, { isCi } from '@relative-ci/core/env';\nimport ingest from '@relative-ci/core/ingest';\n\nconst PLUGIN_NAME = 'RelativeCiAgent';\n\n/**\n * Subset of the Vite/Rolldown/Rollup plugin hook context (`this`) used by this plugin.\n */\ntype PluginContext = {\n info: (message: string) => void;\n warn: (message: string) => void;\n error: (message: string) => void;\n};\n\n/**\n * Minimum plugin interface compatible with Vite/Rolldown/Rollup.\n *\n * @example\n * {\n * name: 'rollupStats',\n * async generateBundle(outputOptions, bundle) { ... },\n * }\n */\nexport type Plugin = {\n /** Unique identifier for the plugin, used in error messages and logs. */\n name: string;\n\n /**\n * Hook called after the bundle has been fully generated but before it is\n * written to disk. Receives the resolved output options and the complete\n * output bundle map.\n */\n generateBundle?: (\n this: PluginContext,\n outputOptions: unknown,\n bundle: OutputBundle,\n isWrite: boolean,\n ) => void | Promise<void>;\n};\n\ntype RelativeCiAgentOptions = {\n /**\n * Plugin is enabled - sends data to RelativeCI\n * @default env-ci isCi value\n */\n enabled?: boolean;\n /**\n * Throw error when validation or ingestion fails\n * @default {false}\n */\n failOnError?: boolean;\n /**\n * Rollup/Vite/Rolldown stats options\n * @default assets, chunks, modules\n */\n stats?: Omit<StatsOptions, 'source'> & BundleTransformOptions;\n} & PluginConfig;\n\nconst DEFAULT_OPTIONS = {\n enabled: isCi(),\n failOnError: false,\n includeCommitMessage: true,\n payloadFilepath: undefined,\n compress: false,\n stats: {\n assets: true,\n chunks: true,\n modules: true,\n },\n};\n\nexport const relativeCiAgent = (userOptions: RelativeCiAgentOptions = {}): Plugin => ({\n name: PLUGIN_NAME,\n async generateBundle(__, bundle) {\n const logger: Logger = {\n log: console.log, // eslint-disable-line no-console\n info: this.info,\n warn: this.warn,\n error: this.error,\n debug, // send debug messages to the inline utility for consistent debugging across plugins\n };\n\n const options = _.merge({}, DEFAULT_OPTIONS, userOptions) as RelativeCiAgentOptions;\n\n logger.debug(options);\n\n const {\n enabled,\n failOnError,\n includeCommitMessage,\n stats: statsOptions = {},\n ...agentOptions\n } = options;\n\n // Skip if not enabled\n if (!enabled) {\n logger.debug(`${PLUGIN_NAME} is disabled, skip sending data.`);\n return;\n }\n\n // 1. Extract bundle stats from rollup/vite/rolldown\n const { moduleOriginalSize, transform, ...extractStatsOptions } = statsOptions;\n\n const bundleStats = extractStats(bundle, {\n source: true, // extract stats source to calculate module size\n ...extractStatsOptions,\n });\n\n // 2. Transform bundle stats to supported format\n const bundleWebpackStats = bundleToWebpackStats(bundleStats, { moduleOriginalSize, transform });\n\n // 3. Ingest data\n // catch error to prevent process failure on error\n try {\n validateWebpackStats(bundleWebpackStats);\n\n const envParams = await loadEnv(\n { agentType: 'rollup-plugin' },\n { includeCommitMessage },\n logger,\n );\n const artifactsData = filterArtifacts([\n { key: SOURCE_WEBPACK_STATS, data: bundleWebpackStats },\n ]);\n const response = await ingest(artifactsData, envParams, agentOptions, logger);\n\n logResponse(response);\n } catch (pluginError: unknown) {\n const error = pluginError instanceof Error ? pluginError.message : String(pluginError);\n\n // Propagate the error to the bundler if failOnError is enabled, otherwise log a warning and continue\n if (failOnError) {\n logger.error(error);\n return;\n }\n\n logger.warn(error);\n }\n },\n});\n"],"mappings":";;;;;;;;AAoBA,MAAM,cAAc;AAuDpB,MAAM,kBAAkB;CACtB,SAAS,KAAK;CACd,aAAa;CACb,sBAAsB;CACtB,iBAAiB;CACjB,UAAU;CACV,OAAO;EACL,QAAQ;EACR,QAAQ;EACR,SAAS;CACX;AACF;AAEA,MAAa,mBAAmB,cAAsC,CAAC,OAAe;CACpF,MAAM;CACN,MAAM,eAAe,IAAI,QAAQ;EAC/B,MAAM,SAAiB;GACrB,KAAK,QAAQ;GACb,MAAM,KAAK;GACX,MAAM,KAAK;GACX,OAAO,KAAK;GACZ;EACF;EAEA,MAAM,UAAU,EAAE,MAAM,CAAC,GAAG,iBAAiB,WAAW;EAExD,OAAO,MAAM,OAAO;EAEpB,MAAM,EACJ,SACA,aACA,sBACA,OAAO,eAAe,CAAC,GACvB,GAAG,iBACD;EAGJ,IAAI,CAAC,SAAS;GACZ,OAAO,MAAM,GAAG,YAAY,iCAAiC;GAC7D;EACF;EAGA,MAAM,EAAE,oBAAoB,WAAW,GAAG,wBAAwB;EAQlE,MAAM,qBAAqB,qBANP,aAAa,QAAQ;GACvC,QAAQ;GACR,GAAG;EACL,CAG0D,GAAG;GAAE;GAAoB;EAAU,CAAC;EAI9F,IAAI;GACF,qBAAqB,kBAAkB;GAEvC,MAAM,YAAY,MAAM,QACtB,EAAE,WAAW,gBAAgB,GAC7B,EAAE,qBAAqB,GACvB,MACF;GAMA,YAAY,MAFW,OAHD,gBAAgB,CACpC;IAAE,KAAK;IAAsB,MAAM;GAAmB,CACxD,CAC0C,GAAG,WAAW,cAAc,MAAM,CAExD;EACtB,SAAS,aAAsB;GAC7B,MAAM,QAAQ,uBAAuB,QAAQ,YAAY,UAAU,OAAO,WAAW;GAGrF,IAAI,aAAa;IACf,OAAO,MAAM,KAAK;IAClB;GACF;GAEA,OAAO,KAAK,KAAK;EACnB;CACF;AACF"}
1
+ {"version":3,"file":"plugin.mjs","names":[],"sources":["../src/plugin.ts"],"sourcesContent":["import _ from 'lodash';\nimport { type OutputBundle } from 'rollup-plugin-stats';\n// eslint-disable-next-line import/no-unresolved\nimport extractStats, { type StatsOptions } from 'rollup-plugin-stats/extract';\n// eslint-disable-next-line import/no-unresolved\nimport { bundleToWebpackStats } from 'rollup-plugin-webpack-stats/transform';\nimport type { BundleTransformOptions } from 'rollup-plugin-webpack-stats/transform';\n\nimport {\n type Logger,\n type PluginConfig,\n SOURCE_WEBPACK_STATS,\n debug,\n filterArtifacts,\n logResponse,\n validateWebpackStats,\n} from '@relative-ci/core';\nimport loadEnv, { isCi } from '@relative-ci/core/env';\nimport ingest from '@relative-ci/core/ingest';\n\nconst PLUGIN_NAME = 'RelativeCiAgent';\n\n/**\n * Subset of the Vite/Rolldown/Rollup plugin hook context (`this`) used by this plugin.\n */\ntype PluginContext = {\n info: (message: string) => void;\n warn: (message: string) => void;\n error: (message: string) => void;\n};\n\n/**\n * Minimum plugin interface compatible with Vite/Rolldown/Rollup.\n *\n * @example\n * {\n * name: 'rollupStats',\n * async generateBundle(outputOptions, bundle) { ... },\n * }\n */\nexport type Plugin = {\n /** Unique identifier for the plugin, used in error messages and logs. */\n name: string;\n\n /**\n * Hook called after the bundle has been fully generated but before it is\n * written to disk. Receives the resolved output options and the complete\n * output bundle map.\n */\n generateBundle?: (\n this: PluginContext,\n outputOptions: unknown,\n bundle: OutputBundle,\n isWrite: boolean,\n ) => void | Promise<void>;\n};\n\ntype RelativeCiAgentOptions = {\n /**\n * Plugin is enabled - sends data to RelativeCI\n * @default env-ci isCi value\n */\n enabled?: boolean;\n /**\n * Throw error when validation or ingestion fails\n * @default {false}\n */\n failOnError?: boolean;\n /**\n * Rollup/Vite/Rolldown stats options\n * @default assets, chunks, modules\n */\n stats?: Omit<StatsOptions, 'source'> & BundleTransformOptions;\n} & PluginConfig;\n\nconst DEFAULT_OPTIONS = {\n enabled: isCi(),\n failOnError: false,\n includeCommitMessage: true,\n payloadFilepath: undefined,\n compress: false,\n stats: {\n assets: true,\n chunks: true,\n modules: true,\n },\n};\n\nexport const relativeCiAgent = (userOptions: RelativeCiAgentOptions = {}): Plugin => ({\n name: PLUGIN_NAME,\n async generateBundle(__, bundle) {\n const logger: Logger = {\n log: console.log, // eslint-disable-line no-console\n info: this.info,\n warn: this.warn,\n error: this.error,\n debug, // send debug messages to the inline utility for consistent debugging across plugins\n };\n\n const options = _.merge({}, DEFAULT_OPTIONS, userOptions) as RelativeCiAgentOptions;\n\n logger.debug(options);\n\n const {\n enabled,\n failOnError,\n includeCommitMessage,\n stats: statsOptions = {},\n ...agentOptions\n } = options;\n\n // Skip if not enabled\n if (!enabled) {\n logger.debug(`${PLUGIN_NAME} is disabled, skip sending data.`);\n return;\n }\n\n // 1. Extract bundle stats from rollup/vite/rolldown\n const { moduleOriginalSize, transform, ...extractStatsOptions } = statsOptions;\n\n const bundleStats = extractStats(bundle, {\n source: true, // extract stats source to calculate module size\n ...extractStatsOptions,\n });\n\n // 2. Transform bundle stats to supported format\n const bundleWebpackStats = bundleToWebpackStats(bundleStats, { moduleOriginalSize, transform });\n\n // 3. Ingest data\n // catch error to prevent process failure on error\n try {\n validateWebpackStats(bundleWebpackStats);\n\n const envParams = await loadEnv(\n { agentType: 'rollup-plugin' },\n { includeCommitMessage },\n logger,\n );\n const artifactsData = filterArtifacts([\n { key: SOURCE_WEBPACK_STATS, data: bundleWebpackStats },\n ]);\n const response = await ingest(artifactsData, envParams, agentOptions, logger);\n\n logResponse(response);\n } catch (pluginError: unknown) {\n const error = pluginError instanceof Error ? pluginError.message : String(pluginError);\n\n // Propagate the error to the bundler if failOnError is enabled, otherwise log a warning and continue\n if (failOnError) {\n logger.error(error);\n return;\n }\n\n logger.warn(error);\n }\n },\n});\n"],"mappings":";;;;;;;;AAoBA,MAAM,cAAc;AAuDpB,MAAM,kBAAkB;CACtB,SAAS,KAAK;CACd,aAAa;CACb,sBAAsB;CACtB,iBAAiB;CACjB,UAAU;CACV,OAAO;EACL,QAAQ;EACR,QAAQ;EACR,SAAS;CACX;AACF;AAEA,MAAa,mBAAmB,cAAsC,CAAC,OAAe;CACpF,MAAM;CACN,MAAM,eAAe,IAAI,QAAQ;EAC/B,MAAM,SAAiB;GACrB,KAAK,QAAQ;GACb,MAAM,KAAK;GACX,MAAM,KAAK;GACX,OAAO,KAAK;GACZ;EACF;EAEA,MAAM,UAAU,EAAE,MAAM,CAAC,GAAG,iBAAiB,WAAW;EAExD,OAAO,MAAM,OAAO;EAEpB,MAAM,EACJ,SACA,aACA,sBACA,OAAO,eAAe,CAAC,GACvB,GAAG,iBACD;EAGJ,IAAI,CAAC,SAAS;GACZ,OAAO,MAAM,GAAG,YAAY,iCAAiC;GAC7D;EACF;EAGA,MAAM,EAAE,oBAAoB,WAAW,GAAG,wBAAwB;EAElE,MAAM,cAAc,aAAa,QAAQ;GACvC,QAAQ;GACR,GAAG;EACL,CAAC;EAGD,MAAM,qBAAqB,qBAAqB,aAAa;GAAE;GAAoB;EAAU,CAAC;EAI9F,IAAI;GACF,qBAAqB,kBAAkB;GAEvC,MAAM,YAAY,MAAM,QACtB,EAAE,WAAW,gBAAgB,GAC7B,EAAE,qBAAqB,GACvB,MACF;GACA,MAAM,gBAAgB,gBAAgB,CACpC;IAAE,KAAK;IAAsB,MAAM;GAAmB,CACxD,CAAC;GACD,MAAM,WAAW,MAAM,OAAO,eAAe,WAAW,cAAc,MAAM;GAE5E,YAAY,QAAQ;EACtB,SAAS,aAAsB;GAC7B,MAAM,QAAQ,uBAAuB,QAAQ,YAAY,UAAU,OAAO,WAAW;GAGrF,IAAI,aAAa;IACf,OAAO,MAAM,KAAK;IAClB;GACF;GAEA,OAAO,KAAK,KAAK;EACnB;CACF;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relative-ci/rollup-plugin",
3
- "version": "5.3.4-alpha.0",
3
+ "version": "6.0.0-beta.3",
4
4
  "description": "Rollup/Vite/Rolldown plugin that sends bundle stats and CI build information to RelativeCI",
5
5
  "keywords": [
6
6
  "relative-ci",
@@ -36,7 +36,7 @@
36
36
  "url": "https://relative-ci.com"
37
37
  },
38
38
  "engines": {
39
- "node": ">= 18.0.0"
39
+ "node": ">= 22.0.0"
40
40
  },
41
41
  "main": "./dist/index.cjs",
42
42
  "module": "./dist/index.mjs",
@@ -66,22 +66,22 @@
66
66
  },
67
67
  "devDependencies": {
68
68
  "@rollup/plugin-replace": "6.0.3",
69
- "@types/lodash": "4.17.24",
69
+ "@types/lodash": "4.17.25",
70
70
  "rimraf": "6.1.3",
71
- "tsdown": "0.22.0",
71
+ "tsdown": "0.22.14",
72
72
  "typescript": "5.9.3",
73
- "vite": "7.3.2",
74
- "vitest": "4.1.7"
73
+ "vite": "^8.2.2",
74
+ "vitest": "4.1.11"
75
75
  },
76
76
  "dependencies": {
77
- "@relative-ci/core": "5.3.4-alpha.0",
77
+ "@relative-ci/core": "6.0.0-beta.3",
78
78
  "lodash": "4.18.1",
79
- "rollup-plugin-stats": "2.1.2",
80
- "rollup-plugin-webpack-stats": "3.1.2"
79
+ "rollup-plugin-stats": "3.0.0-beta.4",
80
+ "rollup-plugin-webpack-stats": "4.0.0-beta.4"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "rolldown": "^1.0.0-beta.0",
84
- "rollup": "^4.60.4",
84
+ "rollup": "^4.62.5",
85
85
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
86
86
  },
87
87
  "peerDependenciesMeta": {
@@ -95,5 +95,5 @@
95
95
  "optional": true
96
96
  }
97
97
  },
98
- "gitHead": "69e26c5358110cc3664896224e421f28bdad3c06"
98
+ "gitHead": "a53523758635a90675e6f367cc6b34ae76c4ebe9"
99
99
  }