Skip to content

Commit

Permalink
Update dependencies 20230508 (#198)
Browse files Browse the repository at this point in the history
* update dependencies to latest

* replace `rollup-plugin-terser` with `@rollup/plugin-terser`

* fix benchmark not working as expected
  • Loading branch information
planttheidea authored May 8, 2023
1 parent 00b4323 commit 4710fa1
Show file tree
Hide file tree
Showing 4 changed files with 1,941 additions and 1,609 deletions.
10 changes: 5 additions & 5 deletions benchmark/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ const onCycle = (event) => {
}

csvResults[currentTarget.name][target.name] = ~~event.target.hz;

ora(target.name).succeed();
const prevText = spinner.text;
spinner.succeed(target.name);
spinner.start(prevText);
};

const onComplete = () => {
Expand Down Expand Up @@ -184,7 +185,6 @@ const getSuiteOptions = (name, resolve) => {
};

const runSinglePrimitiveSuite = () => {
// const fibonacciSuite = new Benchmark.Suite('Single parameter (primitive)');
const fibonacciNumber = 35;

const mAddyOsmani = addyOsmani(fibonacciSinglePrimitive);
Expand Down Expand Up @@ -243,7 +243,7 @@ const runSingleArraySuite = () => {
const mFastMemoize = fastMemoize(fibonacciSingleArray);
const mLodash = lodash(fibonacciSingleArray);
const mLruMemoize = lruMemoize(Infinity)(fibonacciSingleArray);
const mMem = mem(fibonacciSingleArray);
const mMem = mem(fibonacciSingleArray, { cacheKey: JSON.stringify });
const mMemoizee = memoizee(fibonacciSingleArray);
const mMemoizerific = memoizerific(Infinity)(fibonacciSingleArray);
const mMoize = moize(fibonacciSingleArray);
Expand Down Expand Up @@ -298,7 +298,7 @@ const runSingleObjectSuite = () => {
const mFastMemoize = fastMemoize(fibonacciSingleObject);
const mLodash = lodash(fibonacciSingleObject);
const mLruMemoize = lruMemoize(Infinity)(fibonacciSingleObject);
const mMem = mem(fibonacciSingleObject);
const mMem = mem(fibonacciSingleObject, { cacheKey: JSON.stringify });
const mMemoizee = memoizee(fibonacciSingleObject);
const mMemoizerific = memoizerific(Infinity)(fibonacciSingleObject);
const mMoize = moize(fibonacciSingleObject);
Expand Down
118 changes: 59 additions & 59 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,65 +18,65 @@
},
"description": "Blazing fast memoization based on all parameters passed",
"devDependencies": {
"@babel/cli": "7.20.7",
"@babel/core": "7.20.12",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/preset-env": "7.20.2",
"@babel/preset-react": "7.18.6",
"@babel/preset-typescript": "7.18.6",
"@rollup/plugin-babel": "6.0.3",
"@rollup/plugin-commonjs": "24.0.0",
"@rollup/plugin-node-resolve": "15.0.1",
"@types/bluebird": "3.5.38",
"@types/eslint": "8.4.10",
"@types/jest": "29.2.5",
"@types/lodash": "4.14.191",
"@types/memoizee": "0.4.8",
"@types/react": "18.0.26",
"@types/react-dom": "18.0.10",
"@typescript-eslint/eslint-plugin": "5.48.0",
"@typescript-eslint/parser": "5.48.0",
"babel-jest": "29.3.1",
"babel-loader": "9.1.2",
"benchmark": "2.1.4",
"bluebird": "3.7.2",
"cli-table2": "0.2.0",
"core-js": "3.27.1",
"eslint": "8.31.0",
"eslint-friendly-formatter": "4.0.1",
"eslint-plugin-react": "7.31.11",
"eslint-webpack-plugin": "3.2.0",
"fast-memoize": "2.5.2",
"html-webpack-plugin": "5.5.0",
"in-publish": "2.0.1",
"ink-docstrap": "1.3.2",
"jest": "29.3.1",
"jest-environment-jsdom": "29.3.1",
"jsdoc": "4.0.0",
"jsdoc-babel": "0.5.0",
"lodash": "4.17.21",
"lru-memoize": "1.1.0",
"mem": "9.0.2",
"memoizee": "0.4.15",
"memoizerific": "1.11.3",
"ora": "6.1.2",
"prop-types": "15.8.1",
"q": "1.5.1",
"ramda": "0.28.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"regenerator-runtime": "0.13.11",
"release-it": "15.6.0",
"rimraf": "3.0.2",
"rollup": "3.9.1",
"rollup-plugin-terser": "7.0.2",
"tslib": "2.4.1",
"typedoc": "0.23.23",
"typescript": "4.9.4",
"underscore": "1.13.6",
"webpack": "5.76.0",
"webpack-cli": "5.0.1",
"webpack-dev-server": "4.11.1"
"@babel/cli": "^7.21.5",
"@babel/core": "^7.21.8",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/preset-env": "^7.21.5",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.5",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-commonjs": "^24.1.0",
"@rollup/plugin-node-resolve": "^15.0.2",
"@rollup/plugin-terser": "^0.4.1",
"@types/bluebird": "^3.5.38",
"@types/eslint": "^8.37.0",
"@types/jest": "^29.5.1",
"@types/lodash": "^4.14.194",
"@types/memoizee": "^0.4.8",
"@types/react": "^18.2.6",
"@types/react-dom": "^18.2.4",
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^5.59.2",
"babel-jest": "^29.5.0",
"babel-loader": "^9.1.2",
"benchmark": "^2.1.4",
"bluebird": "^3.7.2",
"cli-table2": "^0.2.0",
"core-js": "^3.30.2",
"eslint": "^8.40.0",
"eslint-friendly-formatter": "^4.0.1",
"eslint-plugin-react": "^7.32.2",
"eslint-webpack-plugin": "^4.0.1",
"fast-memoize": "^2.5.2",
"html-webpack-plugin": "^5.5.1",
"in-publish": "^2.0.1",
"ink-docstrap": "^1.3.2",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"jsdoc": "^4.0.2",
"jsdoc-babel": "^0.5.0",
"lodash": "^4.17.21",
"lru-memoize": "^1.1.0",
"mem": "^8.1.1",
"memoizee": "^0.4.15",
"memoizerific": "^1.11.3",
"ora": "^5.4.1",
"prop-types": "^15.8.1",
"q": "^1.5.1",
"ramda": "^0.29.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"regenerator-runtime": "^0.13.11",
"release-it": "^15.10.3",
"rimraf": "^5.0.0",
"rollup": "^3.21.5",
"tslib": "^2.5.0",
"typedoc": "^0.24.7",
"typescript": "^5.0.4",
"underscore": "^1.13.6",
"webpack": "^5.82.0",
"webpack-cli": "^5.1.0",
"webpack-dev-server": "^4.15.0"
},
"homepage": "https://github.com/planttheidea/moize#readme",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
import { terser } from 'rollup-plugin-terser';
import terser from '@rollup/plugin-terser';
import pkg from './package.json';

const EXTERNALS = [
Expand Down
Loading

0 comments on commit 4710fa1

Please sign in to comment.