Skip to content

Commit

Permalink
chore(node): update version (#5959)
Browse files Browse the repository at this point in the history
* chore(node): update version

* fix(build): patch uglifyJS to stringify buffers

* move

* chore(bundle): larger margins

* chore(deps): update webpack

webpack/webpack#14532

* chore(bundle): bump

* chore(webpack): pass node options in vue examples
  • Loading branch information
Haroenv authored Dec 11, 2023
1 parent f9ab0ff commit dd1b9c4
Show file tree
Hide file tree
Showing 17 changed files with 51 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ references:
defaults: &defaults
working_directory: ~/instantsearch
docker:
- image: cimg/node:16.14.0
- image: cimg/node:20.10.0

workflows:
version: 2
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.14.0
20.10.0
6 changes: 3 additions & 3 deletions bundlesize.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
"files": [
{
"path": "packages/algoliasearch-helper/dist/algoliasearch.helper.js",
"maxSize": "38.5 kB"
"maxSize": "38.75 kB"
},
{
"path": "packages/algoliasearch-helper/dist/algoliasearch.helper.min.js",
"maxSize": "12 kB"
},
{
"path": "./packages/instantsearch.js/dist/instantsearch.production.min.js",
"maxSize": "75.5 kB"
"maxSize": "75.75 kB"
},
{
"path": "./packages/instantsearch.js/dist/instantsearch.development.js",
"maxSize": "166.5 kB"
"maxSize": "166.75 kB"
},
{
"path": "packages/react-instantsearch-core/dist/umd/ReactInstantSearchCore.min.js",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"babel-jest": "24.9.0",
"babel-loader": "8.2.2",
"nodemon": "1.19.3",
"webpack": "4.41.5",
"webpack": "4.47.0",
"webpack-cli": "3.3.7",
"webpack-node-externals": "1.7.2"
},
Expand Down
6 changes: 3 additions & 3 deletions examples/vue/default-theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.34.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"website:examples": "vue-cli-service build --dest ../../../website/examples/vue/default-theme"
"serve": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve",
"build": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build",
"website:examples": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build --dest ../../../website/examples/vue/default-theme"
},
"dependencies": {
"algoliasearch": "4.14.3",
Expand Down
6 changes: 3 additions & 3 deletions examples/vue/e-commerce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.34.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"website:examples": "vue-cli-service build --dest ../../../website/examples/vue/e-commerce"
"serve": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve",
"build": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build",
"website:examples": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build --dest ../../../website/examples/vue/e-commerce"
},
"dependencies": {
"algoliasearch": "4.14.3",
Expand Down
4 changes: 2 additions & 2 deletions examples/vue/getting-started/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "1.0.20",
"private": true,
"scripts": {
"start": "vue-cli-service serve --port 3000",
"build": "vue-cli-service build"
"start": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve --port 3000",
"build": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build"
},
"dependencies": {
"algoliasearch": "4.14.3",
Expand Down
6 changes: 3 additions & 3 deletions examples/vue/media/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.34.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"website:examples": "vue-cli-service build --dest ../../../website/examples/vue/media"
"serve": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve",
"build": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build",
"website:examples": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build --dest ../../../website/examples/vue/media"
},
"dependencies": {
"algoliasearch": "4.14.3",
Expand Down
6 changes: 3 additions & 3 deletions examples/vue/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.34.0",
"private": true,
"scripts": {
"build": "vue-cli-service ssr:build",
"serve": "vue-cli-service ssr:serve",
"start": "cross-env NODE_ENV=production vue-cli-service ssr:serve --mode production"
"build": "NODE_OPTIONS=--openssl-legacy-provider -cli-service ssr:build",
"serve": "NODE_OPTIONS=--openssl-legacy-provider -cli-service ssr:serve",
"start": "NODE_ENV=production NODE_OPTIONS=--openssl-legacy-provider -cli-service ssr:serve --mode production"
},
"dependencies": {
"algoliasearch": "4.14.3",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
},
"resolutions": {
"brotli-size": "4.0.0",
"webpack": "4.46.0",
"webpack": "4.47.0",
"babel-loader": "8.2.2"
}
}
3 changes: 2 additions & 1 deletion packages/algoliasearch-helper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"test:unit": "jest",
"test:watch": "jest --watch",
"test:v3": "yarn run test",
"version": "./scripts/update-version.js"
"version": "./scripts/update-version.js",
"prepare": "patch-package"
},
"author": {
"name": "Algolia Inc.",
Expand Down
13 changes: 13 additions & 0 deletions packages/algoliasearch-helper/patches/uglify-js+2.8.29.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/uglify-js/bin/uglifyjs b/node_modules/uglify-js/bin/uglifyjs
index 63b2f26..d12131f 100755
--- a/node_modules/uglify-js/bin/uglifyjs
+++ b/node_modules/uglify-js/bin/uglifyjs
@@ -513,7 +513,7 @@ function done() {
var base64_string = new Buffer(SOURCE_MAP.toString()).toString('base64');
output += "\n//# sourceMappingURL=data:application/json;charset=utf-8;base64," + base64_string;
} else {
- fs.writeFileSync(ARGS.source_map, SOURCE_MAP, "utf8");
+ fs.writeFileSync(ARGS.source_map, SOURCE_MAP.toString(), "utf8");
var source_map_url = ARGS.source_map_url || (
P_RELATIVE
? path.relative(path.dirname(OUTPUT_FILE), ARGS.source_map)
Original file line number Diff line number Diff line change
Expand Up @@ -5412,9 +5412,9 @@ exports[`Templates Vue InstantSearch File content: package.json 1`] = `
\\"version\\": \\"1.0.0\\",
\\"private\\": true,
\\"scripts\\": {
\\"start\\": \\"vue-cli-service serve --port 3000\\",
\\"build\\": \\"vue-cli-service build\\",
\\"lint\\": \\"vue-cli-service lint\\",
\\"start\\": \\"NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve --port 3000\\",
\\"build\\": \\"NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build\\",
\\"lint\\": \\"NODE_OPTIONS=--openssl-legacy-provider vue-cli-service lint\\",
\\"lint:fix\\": \\"npm run lint -- --fix\\"
},
\\"browserslist\\": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.0.0",
"private": true,
"scripts": {
"start": "vue-cli-service serve --port 3000",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"start": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve --port 3000",
"build": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build",
"lint": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service lint",
"lint:fix": "npm run lint -- --fix"
},
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/instantsearch.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"build:cjs": "rm -rf cjs && BABEL_ENV=cjs babel --root-mode upward src --extensions '.js,.ts,.tsx' --out-dir cjs/ --ignore 'src/index.es.ts','**/__tests__','**/__mocks__' --quiet",
"build:es": "rm -rf es && BABEL_ENV=es babel --root-mode upward src --extensions '.js,.ts,.tsx' --out-dir es/ --ignore 'src/index.es.ts','**/__tests__','**/__mocks__' --quiet && BABEL_ENV=es babel --root-mode upward src/index.es.ts --out-file es/index.js --quiet && echo '{\"type\":\"module\",\"sideEffects\":false}' > es/package.json",
"build:types": "scripts/typescript/extract.js",
"storybook": "start-storybook --quiet --port 6006 --ci --static-dir .storybook/static",
"storybook:build": "build-storybook --quiet --output-dir ../../website/stories/js --static-dir .storybook/static",
"storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook --quiet --port 6006 --ci --static-dir .storybook/static",
"storybook:build": "NODE_OPTIONS=--openssl-legacy-provider build-storybook --quiet --output-dir ../../website/stories/js --static-dir .storybook/static",
"test:exports": "node test/module/is-es-module.mjs && node test/module/is-cjs-module.cjs",
"version": "./scripts/version/update-version.js"
},
Expand All @@ -63,6 +63,6 @@
"algoliasearch": "4.14.3",
"places.js": "1.17.1",
"scriptjs": "2.5.9",
"webpack": "4.41.5"
"webpack": "4.47.0"
}
}
4 changes: 2 additions & 2 deletions packages/vue-instantsearch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"scripts": {
"prebuild": "rm -rf vue2 vue3",
"build": "rollup -c",
"storybook": "start-storybook -p 6006 -c .storybook",
"storybook:build": "build-storybook -c .storybook -o ../../website/stories/vue",
"storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006 -c .storybook",
"storybook:build": "NODE_OPTIONS=--openssl-legacy-provider build-storybook -c .storybook -o ../../website/stories/vue",
"test:exports": "node ./test/module/vue2/is-es-module.mjs && node ./test/module/vue2/is-cjs-module.cjs",
"test:exports:vue3": "node ./test/module/vue3/is-es-module.mjs && node ./test/module/vue3/is-cjs-module.cjs"
},
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -32439,10 +32439,10 @@ webpack-virtual-modules@^0.2.0:
dependencies:
debug "^3.0.0"

webpack@4.41.5, webpack@4.43.0, webpack@4.46.0, webpack@^4.0.0, webpack@^4.33.0, webpack@^4.38.0, webpack@^4.46.0:
version "4.46.0"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.46.0.tgz#bf9b4404ea20a073605e0a011d188d77cb6ad542"
integrity sha512-6jJuJjg8znb/xRItk7bkT0+Q7AHCYjjFnvKIWQPkNIOyRqoCGvkOs0ipeQzrqz4l5FtN5ZI/ukEHroeX/o1/5Q==
[email protected], webpack@4.47.0, webpack@^4.0.0, webpack@^4.33.0, webpack@^4.38.0, webpack@^4.46.0:
version "4.47.0"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.47.0.tgz#8b8a02152d7076aeb03b61b47dad2eeed9810ebc"
integrity sha512-td7fYwgLSrky3fI1EuU5cneU4+pbH6GgOfuKNS1tNPcfdGinGELAqsb/BP4nnvZyKSG2i/xFGU7+n2PvZA8HJQ==
dependencies:
"@webassemblyjs/ast" "1.9.0"
"@webassemblyjs/helper-module-context" "1.9.0"
Expand Down

0 comments on commit dd1b9c4

Please sign in to comment.