@pandacss/node 0.0.0-dev-20240123144105 → 0.0.0-dev-20240124004338

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/dist/index.js CHANGED
@@ -2225,7 +2225,7 @@ async function codegen(ctx, ids) {
2225
2225
  ctx.output.empty();
2226
2226
  const promises = ctx.getArtifacts(ids).map((artifact) => limit(() => ctx.output.write(artifact)));
2227
2227
  await Promise.allSettled(promises);
2228
- await ctx.hooks["codegen:done"]?.();
2228
+ await ctx.hooks["codegen:done"]?.({ changed: ids });
2229
2229
  return {
2230
2230
  box: createBox({
2231
2231
  content: ctx.messages.codegenComplete(),
@@ -2643,7 +2643,7 @@ var Builder = class {
2643
2643
  import_logger6.logger.debug("builder", this.affecteds);
2644
2644
  if (this.affecteds.hasConfigChanged) {
2645
2645
  import_logger6.logger.debug("builder", "\u2699\uFE0F Config changed, reloading");
2646
- await ctx.hooks["config:change"]?.({ config: ctx.config });
2646
+ await ctx.hooks["config:change"]?.({ config: ctx.config, changes: this.affecteds });
2647
2647
  return;
2648
2648
  }
2649
2649
  this.filesMeta = this.checkFilesChanged(ctx.getFiles());
@@ -2899,7 +2899,7 @@ async function generate(config, configPath) {
2899
2899
  return;
2900
2900
  }
2901
2901
  import_logger10.logger.info("config:change", "Config changed, restarting...");
2902
- await ctx.hooks["config:change"]?.({ config: ctx.config });
2902
+ await ctx.hooks["config:change"]?.({ config: ctx.config, changes: affecteds });
2903
2903
  return build(ctx, Array.from(affecteds.artifacts));
2904
2904
  });
2905
2905
  const contentWatcher = fs2.watch(ctx.config);
package/dist/index.mjs CHANGED
@@ -2200,7 +2200,7 @@ async function codegen(ctx, ids) {
2200
2200
  ctx.output.empty();
2201
2201
  const promises = ctx.getArtifacts(ids).map((artifact) => limit(() => ctx.output.write(artifact)));
2202
2202
  await Promise.allSettled(promises);
2203
- await ctx.hooks["codegen:done"]?.();
2203
+ await ctx.hooks["codegen:done"]?.({ changed: ids });
2204
2204
  return {
2205
2205
  box: createBox({
2206
2206
  content: ctx.messages.codegenComplete(),
@@ -2618,7 +2618,7 @@ var Builder = class {
2618
2618
  logger6.debug("builder", this.affecteds);
2619
2619
  if (this.affecteds.hasConfigChanged) {
2620
2620
  logger6.debug("builder", "\u2699\uFE0F Config changed, reloading");
2621
- await ctx.hooks["config:change"]?.({ config: ctx.config });
2621
+ await ctx.hooks["config:change"]?.({ config: ctx.config, changes: this.affecteds });
2622
2622
  return;
2623
2623
  }
2624
2624
  this.filesMeta = this.checkFilesChanged(ctx.getFiles());
@@ -2874,7 +2874,7 @@ async function generate(config, configPath) {
2874
2874
  return;
2875
2875
  }
2876
2876
  logger10.info("config:change", "Config changed, restarting...");
2877
- await ctx.hooks["config:change"]?.({ config: ctx.config });
2877
+ await ctx.hooks["config:change"]?.({ config: ctx.config, changes: affecteds });
2878
2878
  return build(ctx, Array.from(affecteds.artifacts));
2879
2879
  });
2880
2880
  const contentWatcher = fs2.watch(ctx.config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/node",
3
- "version": "0.0.0-dev-20240123144105",
3
+ "version": "0.0.0-dev-20240124004338",
4
4
  "description": "The core css panda library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -53,16 +53,16 @@
53
53
  "ts-pattern": "5.0.5",
54
54
  "tsconfck": "^2.1.2",
55
55
  "v8-profiler-next": "^1.10.0",
56
- "@pandacss/config": "0.0.0-dev-20240123144105",
57
- "@pandacss/core": "0.0.0-dev-20240123144105",
58
- "@pandacss/error": "0.0.0-dev-20240123144105",
59
- "@pandacss/extractor": "0.0.0-dev-20240123144105",
60
- "@pandacss/generator": "0.0.0-dev-20240123144105",
61
- "@pandacss/logger": "0.0.0-dev-20240123144105",
62
- "@pandacss/parser": "0.0.0-dev-20240123144105",
63
- "@pandacss/shared": "0.0.0-dev-20240123144105",
64
- "@pandacss/token-dictionary": "0.0.0-dev-20240123144105",
65
- "@pandacss/types": "0.0.0-dev-20240123144105"
56
+ "@pandacss/config": "0.0.0-dev-20240124004338",
57
+ "@pandacss/core": "0.0.0-dev-20240124004338",
58
+ "@pandacss/error": "0.0.0-dev-20240124004338",
59
+ "@pandacss/extractor": "0.0.0-dev-20240124004338",
60
+ "@pandacss/generator": "0.0.0-dev-20240124004338",
61
+ "@pandacss/logger": "0.0.0-dev-20240124004338",
62
+ "@pandacss/parser": "0.0.0-dev-20240124004338",
63
+ "@pandacss/shared": "0.0.0-dev-20240124004338",
64
+ "@pandacss/token-dictionary": "0.0.0-dev-20240124004338",
65
+ "@pandacss/types": "0.0.0-dev-20240124004338"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/fs-extra": "11.0.4",