@powerlines/plugin-react 0.1.2 → 0.1.4

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.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PluginContext, a as Plugin } from './runtime-Ft55bXzz.cjs';
1
+ import { P as PluginContext, a as Plugin } from './runtime-CkanKuur.cjs';
2
2
  import { Children } from '@alloy-js/core/jsx-runtime';
3
3
  import { PrintTreeOptions } from '@alloy-js/core';
4
4
  import { ReactPluginContext } from './types/plugin.cjs';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PluginContext, a as Plugin } from './runtime-DQYHDea3.js';
1
+ import { P as PluginContext, a as Plugin } from './runtime-CEq9TX4a.js';
2
2
  import { Children } from '@alloy-js/core/jsx-runtime';
3
3
  import { PrintTreeOptions } from '@alloy-js/core';
4
4
  import { ReactPluginContext } from './types/plugin.js';
@@ -3,7 +3,7 @@ import { PackageJson } from '@stryke/types/package-json';
3
3
  import { Jiti } from 'jiti';
4
4
  import { ParserOptions, ParseResult } from 'oxc-parser';
5
5
  import { Range } from 'semver';
6
- import { TransformResult, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginBuildContext } from 'unplugin';
6
+ import { TransformResult, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginBuildContext, UnpluginMessage } from 'unplugin';
7
7
  import { PluginItem, PluginObj, PluginPass, transformAsync } from '@babel/core';
8
8
  import { Format } from '@storm-software/build-tools/types';
9
9
  import { LogLevelLabel } from '@storm-software/config-tools/types';
@@ -810,6 +810,30 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
810
810
  * A logging function for the Powerlines engine
811
811
  */
812
812
  log: LogFn;
813
+ /**
814
+ * A logging function for fatal messages
815
+ */
816
+ fatal: (message: string | UnpluginMessage) => void;
817
+ /**
818
+ * A logging function for error messages
819
+ */
820
+ error: (message: string | UnpluginMessage) => void;
821
+ /**
822
+ * A logging function for warning messages
823
+ */
824
+ warn: (message: string | UnpluginMessage) => void;
825
+ /**
826
+ * A logging function for informational messages
827
+ */
828
+ info: (message: string | UnpluginMessage) => void;
829
+ /**
830
+ * A logging function for debug messages
831
+ */
832
+ debug: (message: string | UnpluginMessage) => void;
833
+ /**
834
+ * A logging function for trace messages
835
+ */
836
+ trace: (message: string | UnpluginMessage) => void;
813
837
  /**
814
838
  * The metadata information
815
839
  */
@@ -3,7 +3,7 @@ import { PackageJson } from '@stryke/types/package-json';
3
3
  import { Jiti } from 'jiti';
4
4
  import { ParserOptions, ParseResult } from 'oxc-parser';
5
5
  import { Range } from 'semver';
6
- import { TransformResult, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginBuildContext } from 'unplugin';
6
+ import { TransformResult, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginBuildContext, UnpluginMessage } from 'unplugin';
7
7
  import { PluginItem, PluginObj, PluginPass, transformAsync } from '@babel/core';
8
8
  import { Format } from '@storm-software/build-tools/types';
9
9
  import { LogLevelLabel } from '@storm-software/config-tools/types';
@@ -810,6 +810,30 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
810
810
  * A logging function for the Powerlines engine
811
811
  */
812
812
  log: LogFn;
813
+ /**
814
+ * A logging function for fatal messages
815
+ */
816
+ fatal: (message: string | UnpluginMessage) => void;
817
+ /**
818
+ * A logging function for error messages
819
+ */
820
+ error: (message: string | UnpluginMessage) => void;
821
+ /**
822
+ * A logging function for warning messages
823
+ */
824
+ warn: (message: string | UnpluginMessage) => void;
825
+ /**
826
+ * A logging function for informational messages
827
+ */
828
+ info: (message: string | UnpluginMessage) => void;
829
+ /**
830
+ * A logging function for debug messages
831
+ */
832
+ debug: (message: string | UnpluginMessage) => void;
833
+ /**
834
+ * A logging function for trace messages
835
+ */
836
+ trace: (message: string | UnpluginMessage) => void;
813
837
  /**
814
838
  * The metadata information
815
839
  */
@@ -1,6 +1,6 @@
1
1
  export { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig } from './plugin.cjs';
2
2
  export { ReactEnvInterface } from './runtime.cjs';
3
- import '../runtime-Ft55bXzz.cjs';
3
+ import '../runtime-CkanKuur.cjs';
4
4
  import '@stryke/env/get-env-paths';
5
5
  import '@stryke/types/package-json';
6
6
  import 'jiti';
@@ -1,6 +1,6 @@
1
1
  export { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig } from './plugin.js';
2
2
  export { ReactEnvInterface } from './runtime.js';
3
- import '../runtime-DQYHDea3.js';
3
+ import '../runtime-CEq9TX4a.js';
4
4
  import '@stryke/env/get-env-paths';
5
5
  import '@stryke/types/package-json';
6
6
  import 'jiti';
@@ -1,4 +1,4 @@
1
- import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, b as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-Ft55bXzz.cjs';
1
+ import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, b as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-CkanKuur.cjs';
2
2
  import { Children } from '@alloy-js/core/jsx-runtime';
3
3
  import { ReflectionClass } from '@deepkit/type';
4
4
  import * as $ from '@stryke/capnp';
@@ -1,4 +1,4 @@
1
- import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, b as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-DQYHDea3.js';
1
+ import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, b as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-CEq9TX4a.js';
2
2
  import { Children } from '@alloy-js/core/jsx-runtime';
3
3
  import { ReflectionClass } from '@deepkit/type';
4
4
  import * as $ from '@stryke/capnp';
@@ -1,4 +1,4 @@
1
- import { E as EnvInterface } from '../runtime-Ft55bXzz.cjs';
1
+ import { E as EnvInterface } from '../runtime-CkanKuur.cjs';
2
2
  import '@stryke/env/get-env-paths';
3
3
  import '@stryke/types/package-json';
4
4
  import 'jiti';
@@ -1,4 +1,4 @@
1
- import { E as EnvInterface } from '../runtime-DQYHDea3.js';
1
+ import { E as EnvInterface } from '../runtime-CEq9TX4a.js';
2
2
  import '@stryke/env/get-env-paths';
3
3
  import '@stryke/types/package-json';
4
4
  import 'jiti';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-react",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for building a React application.",
6
6
  "repository": {
@@ -130,19 +130,19 @@
130
130
  "@stryke/fs": "^0.32.10",
131
131
  "@stryke/path": "^0.18.5",
132
132
  "babel-plugin-react-compiler": "^1.0.0",
133
- "@powerlines/alloy": "^0.11.11",
134
- "@powerlines/plugin-babel": "^0.12.11",
135
- "@powerlines/plugin-env": "^0.13.8",
136
- "@powerlines/plugin-plugin": "^0.11.10",
133
+ "@powerlines/alloy": "^0.11.13",
134
+ "@powerlines/plugin-babel": "^0.12.13",
135
+ "@powerlines/plugin-env": "^0.13.10",
136
+ "@powerlines/plugin-plugin": "^0.11.12",
137
137
  "@vitejs/plugin-react": "^5.1.0",
138
138
  "defu": "^6.1.4",
139
- "powerlines": "^0.17.0"
139
+ "powerlines": "^0.19.0"
140
140
  },
141
141
  "devDependencies": {
142
- "@powerlines/nx": "^0.10.2",
142
+ "@powerlines/nx": "^0.10.4",
143
143
  "@storm-software/tsup": "^0.2.17",
144
144
  "@types/node": "^22.19.0"
145
145
  },
146
146
  "publishConfig": { "access": "public" },
147
- "gitHead": "27064ac269a2d34c5b9371105cdd58bf6ebe85b4"
147
+ "gitHead": "8ee43c2a7eebce6b221aa572553f4296c87fce76"
148
148
  }