Skip to content

Commit

Permalink
updated dependencies, added missing test assert and fixed lint errors in
Browse files Browse the repository at this point in the history
observer.ts
  • Loading branch information
Havunen committed Nov 14, 2023
1 parent 71e3a11 commit 8bc661e
Show file tree
Hide file tree
Showing 12 changed files with 1,047 additions and 977 deletions.
547 changes: 281 additions & 266 deletions fixtures/browser/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions fixtures/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"author": "",
"license": "MIT",
"dependencies": {
"@babel/core": "7.23.2",
"@babel/preset-env": "7.23.2",
"@babel/core": "7.23.3",
"@babel/preset-env": "7.23.3",
"babel-loader": "^9.1.3",
"build-time-reporter-webpack-plugin": "^1.4.3",
"jasmine-core": "^5.1.1",
Expand Down
2 changes: 1 addition & 1 deletion fixtures/packaging/brunch/dev/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "brunch-dev-test",
"devDependencies": {
"brunch": "^4.0.0",
"brunch": "^4.0.2",
"javascript-brunch": "^2.10.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion fixtures/packaging/brunch/prod/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "brunch-prod-test",
"devDependencies": {
"brunch": "^4.0.0",
"brunch": "^4.0.2",
"javascript-brunch": "^2.10.0"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions fixtures/packaging/webpack-alias/dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "webpack-alias-dev-test",
"private": true,
"dependencies": {
"webpack": "^5.76.3",
"webpack-cli": "^5.0.1"
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
},
"scripts": {
"build": "rm -f output.js && webpack --config config.js"
Expand Down
4 changes: 2 additions & 2 deletions fixtures/packaging/webpack-alias/prod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "webpack-alias-prod-test",
"private": true,
"dependencies": {
"webpack": "^5.76.3",
"webpack-cli": "^5.0.1"
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
},
"scripts": {
"build": "rm -f output.js && webpack --config config.js"
Expand Down
4 changes: 2 additions & 2 deletions fixtures/packaging/webpack/dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "webpack-dev-test",
"private": true,
"dependencies": {
"webpack": "^5.76.3",
"webpack-cli": "^5.0.1"
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
},
"scripts": {
"build": "rm -f output.js && webpack --config config.js"
Expand Down
4 changes: 2 additions & 2 deletions fixtures/packaging/webpack/prod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "webpack-prod-test",
"private": true,
"dependencies": {
"webpack": "^5.76.3",
"webpack-cli": "^5.0.1"
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
},
"scripts": {
"build": "rm -f output.js && webpack --config config.js"
Expand Down
1,403 changes: 728 additions & 675 deletions package-lock.json

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,35 +81,35 @@
"test:memory:js-framework:debug": "node --inspect-brk --expose-gc scripts/fakedom/js-framework-bench/start.js"
},
"devDependencies": {
"@babel/core": "^7.23.2",
"@babel/core": "^7.23.3",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-transform-modules-commonjs": "^7.23.0",
"@babel/preset-env": "7.23.2",
"@babel/preset-typescript": "^7.23.2",
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
"@babel/preset-env": "7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@rollup/plugin-alias": "^5.0.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-terser": "^0.4.4",
"@swc/core": "^1.3.95",
"@swc/core": "^1.3.96",
"@swc/jest": "^0.2.29",
"@types/jest": "^29.5.6",
"@types/jsdom": "^21.1.4",
"@types/node": "^20.8.9",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@types/jest": "^29.5.8",
"@types/jsdom": "^21.1.5",
"@types/node": "^20.9.0",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"babel-plugin-inferno": "6.7.0",
"cli-table": "^0.3.11",
"concat-stream-es6": "0.0.1",
"coveralls": "^3.1.1",
"cross-env": "^7.0.3",
"d3-scale-chromatic": "^3.0.0",
"eslint": "^8.52.0",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-standard-with-typescript": "^39.1.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-n": "^16.2.0",
"eslint-plugin-n": "^16.3.1",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-promise": "^6.1.1",
"filesize": "^10.1.0",
Expand All @@ -122,18 +122,18 @@
"jest-silent-reporter": "^0.5.0",
"jsdom": "^22.1.0",
"lerna": "^7",
"lint-staged": "^15.0.2",
"lint-staged": "^15.1.0",
"minimist": "^1.2.8",
"mobx": "^6.10.2",
"mobx": "^6.11.0",
"npm-run-all": "^4.1.5",
"perf-monitor": "^0.6.0",
"pre-commit": "^1.2.2",
"prettier": "^3.0.3",
"prettier": "^3.1.0",
"rimraf": "^5",
"rollup": "^4.1.5",
"rollup": "^4.4.1",
"swc": "^1.0.11",
"swc-loader": "^0.2.3",
"swc-plugin-inferno": "^0.0.11",
"swc-plugin-inferno": "^0.0.13",
"ts-plugin-inferno": "^6.0.2",
"typescript": "^5.2.2"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ describe('keyed-nodes', () => {
expect(container.textContent).toBe('12340');
expect(container.firstChild.childNodes.length).toBe(5);
render(template(generateKeyNodes([0, 1, 2, 3, 4])), container);
expect(container.textContent).toBe('01234');
expect(container.firstChild.childNodes.length).toBe(5);
render(
template(generateKeyNodes(['7', '4', '3', '2', '6', 'abc', 'def', '1'])),
container,
Expand Down
16 changes: 8 additions & 8 deletions packages/inferno-mobx/src/observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ function patch(target, funcName, runMixinFirst): void {
const f = !base
? mixinFunc
: runMixinFirst === true
? function () {
mixinFunc.apply(this, arguments);
base.apply(this, arguments);
}
: function () {
base.apply(this, arguments);
mixinFunc.apply(this, arguments);
};
? function () {
mixinFunc.apply(this, arguments);
base.apply(this, arguments);
}
: function () {
base.apply(this, arguments);
mixinFunc.apply(this, arguments);
};

// MWE: ideally we freeze here to protect against accidental overwrites in component instances, see #195
// ...but that breaks react-hot-loader, see #231...
Expand Down

0 comments on commit 8bc661e

Please sign in to comment.