Skip to content

Commit a4ee057

Browse files
committed
chore: update version
1 parent 1f104f3 commit a4ee057

File tree

10 files changed

+23
-18
lines changed

10 files changed

+23
-18
lines changed

.env

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# shared basic environment variable
22
# the build tool will load this file with any NODE_ENV
3-
SNOWPACK_PUBLIC_FLUENT_VERSION=2.6.3
43
NODE_ENV=production
54
CI=
65
SNOWPACK_PUBLIC_SENTRY_DSN=
7-
SNOWPACK_PUBLIC_FLUENT_ENV="production"
8-
SNOWPACK_PUBLIC_FLUENT_VERSION=
6+
SNOWPACK_PUBLIC_FLUENT_ENV="production"

.env.development.local.example

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ SNOWPACK_PUBLIC_IS_LOCAL_ENV=true
77
NODE_ENV=development
88
CI=false
99
SNOWPACK_PUBLIC_SENTRY_DSN=
10-
SNOWPACK_PUBLIC_FLUENT_ENV="debug-release"
11-
SNOWPACK_PUBLIC_FLUENT_VERSION="0.0.0"
10+
SNOWPACK_PUBLIC_FLUENT_ENV="debug-release"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "helios",
33
"private": true,
4-
"version": "2.6.2",
4+
"version": "2.6.3",
55
"workspaces": [
66
"websites/*",
77
"packages/doc-ui/*",

packages/inner-utils/env.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import browser from 'webextension-polyfill'
2+
import packageJson from '../../package.json'
23

34
export const MODE = import.meta.env.NODE_ENV
45
export const IS_TEST_MODE = MODE === 'test'
@@ -10,4 +11,6 @@ export const IS_CI = Boolean(
1011
: import.meta.env.CI,
1112
)
1213

14+
export const PACKAGE_VERSION = packageJson.version
15+
1316
export const isManifestV3 = browser.runtime.getManifest().manifest_version === 3

packages/popup/src/index.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import App from './App'
55
import './i18n.js'
66
import {SWRConfig} from 'swr'
77
import {ROUTES} from './constants'
8-
import {IS_PROD_MODE} from '@fluent-wallet/inner-utils'
8+
import {IS_PROD_MODE, PACKAGE_VERSION} from '@fluent-wallet/inner-utils'
99
import {
1010
init as initSentry,
1111
capture as sentryCapture,
@@ -97,7 +97,4 @@ ReactDOM.render(
9797
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
9898
// reportWebVitals()
9999

100-
if (!IS_PROD_MODE)
101-
console.log(
102-
`Fluent Version: ${import.meta.env.SNOWPACK_PUBLIC_FLUENT_VERSION}`,
103-
)
100+
if (!IS_PROD_MODE) console.log(`Fluent Version: ${PACKAGE_VERSION}`)

packages/rpcs/wallet_getFluentMetadata/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {optParam} from '@fluent-wallet/spec'
2+
import {PACKAGE_VERSION} from '@fluent-wallet/inner-utils'
23

34
export const NAME = 'wallet_getFluentMetadata'
45

@@ -14,5 +15,7 @@ export const permissions = {
1415
}
1516

1617
export const main = () => {
17-
return {version: import.meta.env.SNOWPACK_PUBLIC_FLUENT_VERSION}
18+
return {
19+
version: PACKAGE_VERSION,
20+
}
1821
}
+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
import {PACKAGE_VERSION} from '@fluent-wallet/inner-utils'
2+
13
export function getDefaultOptions() {
24
return {
35
dsn: import.meta.env.SNOWPACK_PUBLIC_SENTRY_DSN,
46
environment:
57
import.meta.env.SNOWPACK_PUBLIC_FLUENT_ENV || import.meta.env.NODE_ENV,
6-
release: import.meta.env.SNOWPACK_PUBLIC_FLUENT_VERSION,
8+
release: PACKAGE_VERSION,
79
}
810
}

scripts/before_all.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
const {isDev, mustacheRender} = require('./snowpack.utils')
22
const path = require('path')
33
const {ensureDirSync} = require('fs-extra')
4+
const {PACKAGE_VERSION} = require('@fluent-wallet/inner-utils')
45

56
const extDir = path.resolve(__dirname, '../packages/browser-extension')
67

78
ensureDirSync(path.resolve(extDir, 'build'))
89
ensureDirSync(path.resolve(extDir, 'build/popup'))
910
ensureDirSync(path.resolve(extDir, 'build/background'))
1011

11-
const version = process.env.SNOWPACK_PUBLIC_FLUENT_VERSION
12+
const version = PACKAGE_VERSION
1213

1314
mustacheRender(
1415
path.resolve(extDir, 'manifest.json.mustache'),

scripts/create-zip.cjs

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import {PACKAGE_VERSION} from '@fluent-wallet/inner-utils'
2+
13
const {zip} = require('zip-a-folder')
24
const path = require('path')
35
const mkdirp = require('mkdirp')
@@ -6,9 +8,9 @@ const buildPath = path.resolve(__dirname, '../packages/browser-extension/build')
68
const targetPath = path.resolve(__dirname, '../releases')
79
const targetFile = path.resolve(
810
targetPath,
9-
`fluent-wallet-${
10-
process.env.SNOWPACK_PUBLIC_FLUENT_VERSION || 'na_version'
11-
}-${process.env.GITHUB_SHA || 'na_sha'}.zip`,
11+
`fluent-wallet-${PACKAGE_VERSION || 'na_version'}-${
12+
process.env.GITHUB_SHA || 'na_sha'
13+
}.zip`,
1214
)
1315

1416
;(async function () {

scripts/webpack.config.prod.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default merge(webpackConfig, {
1919
path: path.join(path.resolve(), './.env'),
2020
safe: true,
2121
}),
22-
new BundleAnalyzerPlugin(),
22+
// new BundleAnalyzerPlugin(),
2323
],
2424
optimization: {
2525
minimizer: [

0 commit comments

Comments
 (0)