@flatjs/evolve 1.8.1-next.78 → 1.8.1-next.80

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @flatjs/evolve
2
2
 
3
+ ## 1.8.1-next.80
4
+
5
+ ### Patch Changes
6
+
7
+ - 9bb0721: Add `release version`
8
+
9
+ ## 1.8.1-next.79
10
+
11
+ ### Patch Changes
12
+
13
+ - @flatjs/graph@1.8.1-next.40
14
+ - @flatjs/mock@1.8.1-next.64
15
+
3
16
  ## 1.8.1-next.78
4
17
 
5
18
  ### Patch Changes
@@ -2,7 +2,13 @@ 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_BUILD_DATE`, `process.env.FLAT_COMMIT_HASH`, `process.env.FLAT_BRANCH_NAME`
5
+ * ```ts
6
+ * `__SENTRY_DEBUG__`
7
+ * `process.env.FLAT_BUILD_DATE`
8
+ * `process.env.FLAT_COMMIT_HASH`
9
+ * `process.env.FLAT_BRANCH_NAME`
10
+ * `process.env.FLAT_RELEASE_VERSION`
11
+ * ```
6
12
  * @returns
7
13
  */
8
14
  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_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
+ 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),"process.env.FLAT_RELEASE_VERSION":JSON.stringify(i.ci?.releaseVersion||t),...i.pluginOptions.definePlugin})]};
@@ -15,4 +15,9 @@ export type FlatEvolveCI = {
15
15
  * @default `master`
16
16
  */
17
17
  basedBranch: string;
18
+ /**
19
+ * The release version will setup to `process.env.FLAT_RELEASE_VERSION`
20
+ * @default ''
21
+ */
22
+ releaseVersion?: string;
18
23
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatjs/evolve",
3
- "version": "1.8.1-next.78",
3
+ "version": "1.8.1-next.80",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -45,8 +45,8 @@
45
45
  "@flatjs/common": "1.8.1-next.30",
46
46
  "@flatjs/evolve-preset-babel": "1.8.1-next.15",
47
47
  "@flatjs/forge-postcss-plugin-pixel": "1.8.1-next.30",
48
- "@flatjs/graph": "1.8.1-next.39",
49
- "@flatjs/mock": "1.8.1-next.63",
48
+ "@flatjs/graph": "1.8.1-next.40",
49
+ "@flatjs/mock": "1.8.1-next.64",
50
50
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
51
51
  "@types/babel__core": "7.20.1",
52
52
  "babel-loader": "9.1.2",