@atlaskit/web-config-client 0.5.0 → 0.7.0
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,21 @@
|
|
|
1
1
|
# @atlaskit/web-config-client
|
|
2
2
|
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#143303](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/143303)
|
|
8
|
+
[`522c49d66ab9b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/522c49d66ab9b) -
|
|
9
|
+
Upgrading @atlassian/experiment-feature-gates to the latest version
|
|
10
|
+
|
|
11
|
+
## 0.6.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#130164](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/130164)
|
|
16
|
+
[`7ef463decabca`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7ef463decabca) -
|
|
17
|
+
Removed JS bundles from publish files to improve AFM build health. ESM and CJS are unaffected.
|
|
18
|
+
|
|
3
19
|
## 0.5.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/web-config-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "JavaScript Frontend Web Client for Dynamic Configuration.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,10 +27,6 @@
|
|
|
27
27
|
]
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
"scripts": {
|
|
31
|
-
"webpack-build": "NODE_OPTIONS=--max-old-space-size=4096 webpack --env NODE_ENV=production --env prod --progress --config config/webpack.config.js",
|
|
32
|
-
"ak-postbuild": "NODE_OPTIONS=--max-old-space-size=4096 webpack --env NODE_ENV=production --env prod --config config/webpack.config.js"
|
|
33
|
-
},
|
|
34
30
|
"sideEffects": [
|
|
35
31
|
"*.compiled.css"
|
|
36
32
|
],
|
|
@@ -39,24 +35,22 @@
|
|
|
39
35
|
".": "./src/index.ts"
|
|
40
36
|
},
|
|
41
37
|
"dependencies": {
|
|
42
|
-
"@atlaskit/config-common-libs": "
|
|
38
|
+
"@atlaskit/config-common-libs": "^0.2.0",
|
|
43
39
|
"@babel/runtime": "^7.0.0"
|
|
44
40
|
},
|
|
45
41
|
"peerDependencies": {
|
|
46
42
|
"react": "^18.2.0"
|
|
47
43
|
},
|
|
48
44
|
"devDependencies": {
|
|
49
|
-
"@af/integration-testing": "
|
|
50
|
-
"@af/visual-regression": "
|
|
51
|
-
"@atlaskit/ssr": "
|
|
52
|
-
"@atlaskit/visual-regression": "
|
|
53
|
-
"@atlassian/experiment-feature-gates": "^
|
|
45
|
+
"@af/integration-testing": "^0.5.0",
|
|
46
|
+
"@af/visual-regression": "^1.3.0",
|
|
47
|
+
"@atlaskit/ssr": "^0.4.0",
|
|
48
|
+
"@atlaskit/visual-regression": "^0.10.0",
|
|
49
|
+
"@atlassian/experiment-feature-gates": "^6.0.0",
|
|
54
50
|
"@testing-library/react": "^13.4.0",
|
|
55
51
|
"react-dom": "^18.2.0",
|
|
56
52
|
"typescript": "~5.4.2",
|
|
57
|
-
"wait-for-expect": "^1.2.0"
|
|
58
|
-
"webpack": "^4.41.3",
|
|
59
|
-
"webpack-cli": "^4.10.0"
|
|
53
|
+
"wait-for-expect": "^1.2.0"
|
|
60
54
|
},
|
|
61
55
|
"techstack": {
|
|
62
56
|
"@atlassian/frontend": {
|
package/config/babel.config.js
DELETED
package/config/webpack.common.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
const crypto = require('crypto');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* START HASH HACKS FOR NODE 18 COMPATIBILITY
|
|
6
|
-
* See: https://stackoverflow.com/a/69761823
|
|
7
|
-
*/
|
|
8
|
-
const createHashOriginal = crypto.createHash;
|
|
9
|
-
crypto.createHash = (algorithm) => createHashOriginal(algorithm === 'md4' ? 'sha256' : algorithm);
|
|
10
|
-
/**
|
|
11
|
-
* END HASH HACKS
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
module.exports = {
|
|
15
|
-
output: {
|
|
16
|
-
path: path.join(__dirname, '../dist'),
|
|
17
|
-
filename: '[name].js',
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
resolve: {
|
|
21
|
-
extensions: ['.ts', '.js', '.json'],
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
module: {
|
|
25
|
-
rules: [
|
|
26
|
-
{
|
|
27
|
-
test: /\.(t|j)sx?$/,
|
|
28
|
-
use: {
|
|
29
|
-
loader: require.resolve('babel-loader'),
|
|
30
|
-
options: {
|
|
31
|
-
envName: 'production:es2019',
|
|
32
|
-
cacheDirectory: true,
|
|
33
|
-
presets: ['@babel/preset-env'],
|
|
34
|
-
configFile: path.join(__dirname, './babel.config.js'),
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
exclude: /node_modules/,
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
plugins: [],
|
|
43
|
-
};
|
package/config/webpack.config.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/* eslint-disable import/no-extraneous-dependencies */
|
|
2
|
-
const path = require('path');
|
|
3
|
-
|
|
4
|
-
const webpack = require('webpack');
|
|
5
|
-
const merge = require('webpack-merge');
|
|
6
|
-
|
|
7
|
-
const commonConfig = require('./webpack.common');
|
|
8
|
-
|
|
9
|
-
const indexPath = path.resolve(__dirname, '../src/index.ts');
|
|
10
|
-
|
|
11
|
-
const baseConfig = merge(commonConfig, {
|
|
12
|
-
mode: 'none',
|
|
13
|
-
plugins: [
|
|
14
|
-
new webpack.DefinePlugin({
|
|
15
|
-
'process.env': {
|
|
16
|
-
NODE_ENV: JSON.stringify('production'),
|
|
17
|
-
},
|
|
18
|
-
}),
|
|
19
|
-
],
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
const amdConfig = {
|
|
23
|
-
output: {
|
|
24
|
-
library: 'web-config-client',
|
|
25
|
-
libraryTarget: 'amd',
|
|
26
|
-
umdNamedDefine: true,
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
module.exports = [
|
|
31
|
-
// AMD with dependencies
|
|
32
|
-
merge(baseConfig, amdConfig, {
|
|
33
|
-
entry: {
|
|
34
|
-
'web-config-client.with-deps.amd': indexPath,
|
|
35
|
-
},
|
|
36
|
-
optimization: {
|
|
37
|
-
minimize: false,
|
|
38
|
-
},
|
|
39
|
-
}),
|
|
40
|
-
|
|
41
|
-
// AMD with dependencies minified
|
|
42
|
-
merge(baseConfig, amdConfig, {
|
|
43
|
-
entry: {
|
|
44
|
-
'web-config-client.with-deps.amd.min': indexPath,
|
|
45
|
-
},
|
|
46
|
-
optimization: {
|
|
47
|
-
minimize: true,
|
|
48
|
-
},
|
|
49
|
-
}),
|
|
50
|
-
];
|