@cocreate/mongodb 1.7.0 → 1.7.2
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/.github/workflows/automated.yml +1 -2
- package/CHANGELOG.md +14 -0
- package/package.json +2 -2
- package/webpack.config.js +0 -90
|
@@ -58,8 +58,7 @@ jobs:
|
|
|
58
58
|
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
|
59
59
|
- name: Install dependencies
|
|
60
60
|
run: yarn install
|
|
61
|
-
|
|
62
|
-
run: yarn build
|
|
61
|
+
|
|
63
62
|
- name: Set Environment Variables
|
|
64
63
|
run: |
|
|
65
64
|
echo "organization_id=${{ secrets.COCREATE_ORGANIZATION_ID }}" >> $GITHUB_ENV
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.7.2](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.7.1...v1.7.2) (2023-08-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* removed webpack.config and build step as no webpack.config exist ([2f15aff](https://github.com/CoCreate-app/CoCreate-mongodb/commit/2f15aff759bc500691359f708fcb24264d312470))
|
|
7
|
+
|
|
8
|
+
## [1.7.1](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.7.0...v1.7.1) (2023-08-21)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* bump dependencies ([1f3709e](https://github.com/CoCreate-app/CoCreate-mongodb/commit/1f3709e809545481b3aa8716bc7a423038b46389))
|
|
14
|
+
|
|
1
15
|
# [1.7.0](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.6.3...v1.7.0) (2023-08-21)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/mongodb",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"description": "A simple mongodb component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mongodb",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"main": "./src/index.js",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@cocreate/utils": "^1.
|
|
48
|
+
"@cocreate/utils": "^1.24.0",
|
|
49
49
|
"mongodb": "^4.12.1"
|
|
50
50
|
}
|
|
51
51
|
}
|
package/webpack.config.js
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
const path = require("path")
|
|
2
|
-
const TerserPlugin = require("terser-webpack-plugin")
|
|
3
|
-
const MiniCssExtractPlugin = require("mini-css-extract-plugin")
|
|
4
|
-
const { CleanWebpackPlugin } = require("clean-webpack-plugin")
|
|
5
|
-
|
|
6
|
-
module.exports = (env, argv) => {
|
|
7
|
-
let isProduction = false
|
|
8
|
-
if (argv.mode === 'production')
|
|
9
|
-
isProduction = true
|
|
10
|
-
|
|
11
|
-
const config = {
|
|
12
|
-
entry: {
|
|
13
|
-
"CoCreate-mongodb": "./src/index.js",
|
|
14
|
-
},
|
|
15
|
-
output: {
|
|
16
|
-
path: path.resolve(__dirname, "dist"),
|
|
17
|
-
filename: isProduction ? "[name].min.js" : "[name].js",
|
|
18
|
-
libraryTarget: "umd",
|
|
19
|
-
libraryExport: "default",
|
|
20
|
-
library: ["CoCreate", "mongodb"],
|
|
21
|
-
globalObject: "this",
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
plugins: [
|
|
25
|
-
new CleanWebpackPlugin(),
|
|
26
|
-
new MiniCssExtractPlugin({
|
|
27
|
-
filename: "[name].css",
|
|
28
|
-
}),
|
|
29
|
-
],
|
|
30
|
-
// Default mode for Webpack is production.
|
|
31
|
-
// Depending on mode Webpack will apply different things
|
|
32
|
-
// on final bundle. For now we don't need production's JavaScript
|
|
33
|
-
// minifying and other thing so let's set mode to development
|
|
34
|
-
mode: isProduction ? "production" : "development",
|
|
35
|
-
module: {
|
|
36
|
-
rules: [
|
|
37
|
-
{
|
|
38
|
-
test: /.js$/,
|
|
39
|
-
exclude: /(node_modules)/,
|
|
40
|
-
use: {
|
|
41
|
-
loader: "babel-loader",
|
|
42
|
-
options: {
|
|
43
|
-
plugins: ["@babel/plugin-transform-modules-commonjs"],
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
test: /.css$/i,
|
|
49
|
-
use: [
|
|
50
|
-
{ loader: "style-loader", options: { injectType: "linkTag" } },
|
|
51
|
-
"file-loader",
|
|
52
|
-
],
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
// add source map
|
|
58
|
-
...(isProduction ? {} : { devtool: "eval-source-map" }),
|
|
59
|
-
|
|
60
|
-
optimization: {
|
|
61
|
-
minimize: true,
|
|
62
|
-
minimizer: [
|
|
63
|
-
new TerserPlugin({
|
|
64
|
-
extractComments: true,
|
|
65
|
-
// cache: true,
|
|
66
|
-
parallel: true,
|
|
67
|
-
// sourceMap: true, // Must be set to true if using source-maps in production
|
|
68
|
-
terserOptions: {
|
|
69
|
-
// https://github.com/webpack-contrib/terser-webpack-plugin#terseroptions
|
|
70
|
-
// extractComments: 'all',
|
|
71
|
-
compress: {
|
|
72
|
-
drop_console: true,
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
}),
|
|
76
|
-
],
|
|
77
|
-
splitChunks: {
|
|
78
|
-
chunks: "all",
|
|
79
|
-
minSize: 200,
|
|
80
|
-
// maxSize: 99999,
|
|
81
|
-
//minChunks: 1,
|
|
82
|
-
|
|
83
|
-
cacheGroups: {
|
|
84
|
-
defaultVendors: false,
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
}
|
|
89
|
-
return config
|
|
90
|
-
}
|