@flatjs/evolve 1.8.1-next.46 → 1.8.1-next.48

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @flatjs/evolve
2
2
 
3
+ ## 1.8.1-next.48
4
+
5
+ ### Patch Changes
6
+
7
+ - 3aee5ed: update typings & add import chunks for reactjs test case
8
+ - Updated dependencies [7bb6aae]
9
+ - @flatjs/mock@1.8.1-next.41
10
+
11
+ ## 1.8.1-next.47
12
+
13
+ ### Patch Changes
14
+
15
+ - e710ec5: update armit/git fix branch list issue
16
+
3
17
  ## 1.8.1-next.46
4
18
 
5
19
  ### Patch Changes
@@ -2,7 +2,7 @@ import { type WebpackPlugin } from '../../create-webpack/types.js';
2
2
  import { type FlatEvolveOptions } from '../../types/types-options.js';
3
3
  /**
4
4
  * The DefinePlugin replaces variables in your code with other values or expressions at compile time.
5
- * `__SENTRY_DEBUG__`,`process.env.FLAT_BUILT_DATE`, `process.env.FLAT_COMMIT_HASH`, `process.env.FLAT_BRANCH_NAME`
5
+ * `__SENTRY_DEBUG__`,`process.env.FLAT_BUILD_DATE`, `process.env.FLAT_COMMIT_HASH`, `process.env.FLAT_BRANCH_NAME`
6
6
  * @returns
7
7
  */
8
8
  export declare const createBuiltinDefineVariables: (serveMode: boolean, evolveOptions: FlatEvolveOptions) => Promise<WebpackPlugin[]>;
@@ -1 +1 @@
1
- import{getLastCommitHash,gitBranchName}from"@armit/git";import webpack from"webpack";export const createBuiltinDefineVariables=async(e,i)=>{const t=await getLastCommitHash(),n=await gitBranchName();return[new webpack.DefinePlugin({__SENTRY_DEBUG__:e,"process.env.FLAT_BUILT_DATE":JSON.stringify(Date.now()),"process.env.FLAT_COMMIT_HASH":JSON.stringify(t),"process.env.FLAT_BRANCH_NAME":JSON.stringify(n),...i.pluginOptions.definePlugin})]};
1
+ import{getLastCommitHash,gitBranchName}from"@armit/git";import webpack from"webpack";export const createBuiltinDefineVariables=async(e,i)=>{const t=await getLastCommitHash(),n=await gitBranchName();return[new webpack.DefinePlugin({__SENTRY_DEBUG__:e,"process.env.FLAT_BUILD_DATE":JSON.stringify((new Date).toISOString()),"process.env.FLAT_COMMIT_HASH":JSON.stringify(t),"process.env.FLAT_BRANCH_NAME":JSON.stringify(n),...i.pluginOptions.definePlugin})]};
@@ -1,7 +1,7 @@
1
1
  export interface EvolvePluginOptions {
2
2
  /**
3
3
  * The DefinePlugin replaces variables in your code with other values or expressions at compile time.
4
- * @default `__SENTRY_DEBUG__`,`process.env.FLAT_BUILT_DATE`, `process.env.FLAT_COMMIT_HASH`, `process.env.FLAT_BRANCH_NAME`
4
+ * @default `__SENTRY_DEBUG__`,`process.env.FLAT_BUILD_DATE`, `process.env.FLAT_COMMIT_HASH`, `process.env.FLAT_BRANCH_NAME`
5
5
  */
6
6
  definePlugin?: Record<string, unknown>;
7
7
  }
@@ -69,7 +69,8 @@ export interface FlatEvolveWebpackOptions extends Pick<Configuration, 'performan
69
69
  */
70
70
  enableBundleHashName?: boolean;
71
71
  /**
72
- * The output directory as absolute path
72
+ * The output directory as absolute path, Note we must keep custom outputDir with prefix `public`
73
+ * e.g. `public/a/b`, `public/c/d`, don't support `a/b`.
73
74
  * @default `public`
74
75
  */
75
76
  outputDir?: string | (() => string | Promise<string>);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatjs/evolve",
3
- "version": "1.8.1-next.46",
3
+ "version": "1.8.1-next.48",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -38,14 +38,14 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@armit/file-utility": "^0.0.22",
41
- "@armit/git": "^0.0.26",
41
+ "@armit/git": "^0.0.27",
42
42
  "@armit/package": "^0.0.35",
43
43
  "@babel/core": "7.22.1",
44
44
  "@flatjs/common": "1.8.1-next.21",
45
45
  "@flatjs/evolve-preset-babel": "1.8.1-next.10",
46
46
  "@flatjs/forge-postcss-plugin-pixel": "1.8.1-next.21",
47
47
  "@flatjs/graph": "1.8.1-next.24",
48
- "@flatjs/mock": "1.8.1-next.40",
48
+ "@flatjs/mock": "1.8.1-next.41",
49
49
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
50
50
  "@types/babel__core": "7.20.1",
51
51
  "babel-loader": "9.1.2",