Skip to content

Commit

Permalink
Merge pull request #195 from jeffbski/update-deps-2023-11-14
Browse files Browse the repository at this point in the history
Update deps 2023 11 14
  • Loading branch information
jeffbski committed Nov 14, 2023
2 parents a3e86d9 + 6e25af8 commit 27b4228
Show file tree
Hide file tree
Showing 8 changed files with 6,236 additions and 10,766 deletions.
2 changes: 1 addition & 1 deletion .browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
last 1 version
not dead
> 0.2%
maintained node versions
# maintained node versions
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
/* Also check test/.eslintrc for test specific config */
"root": true,
"extends": "airbnb-base",
"rules": {
"arrow-body-style": [1, "as-needed"],
Expand All @@ -8,6 +9,7 @@
"comma-dangle": 0,
"consistent-return": 1,
// causing issues with codacy
"default-param-last": 0,
"function-paren-newline": "off",
"import/no-unresolved": 0,
"indent": 0,
Expand All @@ -16,6 +18,7 @@
"no-multi-spaces": 0,
"no-nested-ternary": 0,
"no-plusplus": 0,
"no-promise-executor-return": 0,
"no-shadow": 0,
// don't require functions to be declared before use
"no-use-before-define": [2, { "functions": false, "classes": true }],
Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const presets = [
// targets are specified in .browserslist
// run `npx browserslist` will show resultant targets or see debug output from build
useBuiltIns: 'usage',
corejs: '3.6.4',
corejs: '3.33.2',
modules: BABEL_ENV === 'es' ? false : 'auto', // not transforming modules for es
debug: CI // show the browser target and plugins used when in CI mode
}
Expand Down
16,931 changes: 6,201 additions & 10,730 deletions package-lock.json

Large diffs are not rendered by default.

52 changes: 26 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
"escheck": "npm run escheck:commonjs && npm run escheck:es && npm run escheck:umd",
"escheck:commonjs": "es-check es5 build-lib/**.js",
"escheck:es": "es-check --module es6 build-es/**.js",
"escheck:umd": "es-check es5 dist/**.js",
"escheck:umd": "es-check es6 dist/**.js",
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir build-lib",
"build:es": "cross-env BABEL_ENV=es babel src --out-dir build-es",
"build:umd": "cross-env NODE_ENV=production MINIMIZE=false BABEL_ENV=es webpack --entry ./src/index.js --output ./dist/redux-logic.js",
"build:umd:min": "cross-env NODE_ENV=production BABEL_ENV=es webpack --entry ./src/index.js --output ./dist/redux-logic.min.js",
"build:umd": "cross-env NODE_ENV=production MINIMIZE=false BABEL_ENV=es webpack --entry ./src/index.js -o ./dist --output-filename redux-logic.js",
"build:umd:min": "cross-env NODE_ENV=production BABEL_ENV=es webpack --entry ./src/index.js -o ./dist --output-filename redux-logic.min.js",
"build": "npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min",
"debug-build": "cross-env CI=true npm run build:commonjs && cross-env CI=true npm run build:es && cross-env CI=true npm run build:umd && cross-env CI=true npm run build:umd:min",
"prepublish": "npm run clean && npm run check:src && npm run build && npm run escheck",
Expand Down Expand Up @@ -75,40 +75,40 @@
},
"homepage": "https://github.com/jeffbski/redux-logic",
"dependencies": {
"core-js": "^3.9.1",
"core-js": "^3.33.2",
"is-promise": "^4.0.0",
"loose-envify": "^1.4.0",
"rxjs": "^6.6.6"
"rxjs": "^7.8.1"
},
"peerDependencies": {
"redux": ">=3.5.2"
},
"devDependencies": {
"@babel/cli": "^7.13.10",
"@babel/core": "^7.13.10",
"@babel/preset-env": "^7.13.10",
"@babel/register": "^7.13.8",
"@types/mocha": "^7.0.2",
"@types/node": "^14.14.35",
"ajv": "^6.12.3",
"babel-loader": "^8.2.2",
"babel-plugin-istanbul": "^6.0.0",
"browserslist": "^4.16.3",
"@babel/cli": "^7.23.0",
"@babel/core": "^7.23.3",
"@babel/preset-env": "^7.23.3",
"@babel/register": "^7.22.15",
"@types/mocha": "^10.0.4",
"@types/node": "^20.9.0",
"ajv": "^8.12.0",
"babel-loader": "^9.1.3",
"babel-plugin-istanbul": "^6.1.1",
"browserslist": "^4.22.1",
"cross-env": "^7.0.3",
"es-check": "^5.2.3",
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-react": "^7.22.0",
"es-check": "^7.1.1",
"eslint": "^8.53.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-react": "^7.33.2",
"expect-legacy": "^1.20.2",
"lodash": "^4.17.21",
"mocha": "^7.2.0",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"redux": "^4.0.5",
"rimraf": "^3.0.2",
"typescript": "^3.9.6",
"webpack": "^4.43.0",
"webpack-command": "^0.5.0"
"redux": "^4.2.1",
"rimraf": "^5.0.5",
"typescript": "^5.2.2",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
},
"npmName": "redux-logic",
"npmFileMap": [
Expand Down
4 changes: 2 additions & 2 deletions test/createLogicMiddleware-many-logic.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { createLogic, createLogicMiddleware } from '../src/index';

describe('createLogicMiddleware-many-logic', () => {
describe('with validate and process', () => {
const NUM_LOGICS = 200; // 230 with cancel optimization
const NUM_LOGICS = 170; // 230 with cancel optimization
let mw;
let store;

Expand Down Expand Up @@ -52,7 +52,7 @@ describe('createLogicMiddleware-many-logic', () => {
});

describe('with validate', () => {
const NUM_LOGICS = 300; // 370 with cancel optimization
const NUM_LOGICS = 220; // 370 with cancel optimization
let mw;
let store;

Expand Down
4 changes: 2 additions & 2 deletions test/createLogicMiddleware-process.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ describe('createLogicMiddleware-process', () => {
it('dispatches UNHANDLED_LOGIC_ERROR', () => {
expect(dispatch.calls.length).toBe(1);
expect(dispatch.calls[0].arguments[0].type).toBe('UNHANDLED_LOGIC_ERROR');
expect(dispatch.calls[0].arguments[0].payload.message).toMatch('Cannot read property');
expect(dispatch.calls[0].arguments[0].payload.message).toMatch('Cannot read propert');
expect(dispatch.calls[0].arguments[0].error).toBe(true);
});

Expand All @@ -404,7 +404,7 @@ describe('createLogicMiddleware-process', () => {
{ nextAction: { type: 'FOO' }, op: 'bottom' },
{
action: { type: 'FOO' },
dispAction: { type: 'UNHANDLED_LOGIC_ERROR', payload: "Cannot read property 'xyz' of null", error: true },
dispAction: { type: 'UNHANDLED_LOGIC_ERROR', payload: "Cannot read properties of null (reading 'xyz')", error: true },
op: 'dispatch'
},
{ action: { type: 'FOO' }, name: 'L(FOO)-0', op: 'end' }
Expand Down
4 changes: 0 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

const webpack = require('webpack');
const rxPaths = require('rxjs/_esm5/path-mapping');
const babelOptions = require('./babel.config');

const env = process.env.NODE_ENV || 'production';
Expand All @@ -28,9 +27,6 @@ const config = {
}
]
},
resolve: {
alias: rxPaths() // not sure that this is needed but is in rxjs docs
},
output: {
library: 'ReduxLogic',
libraryTarget: 'umd'
Expand Down

0 comments on commit 27b4228

Please sign in to comment.