Skip to content

Commit

Permalink
use swc plugin inferno v1.0.0, converted more tests to tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Havunen committed Oct 19, 2024
1 parent 894dc39 commit 8cacbd0
Show file tree
Hide file tree
Showing 9 changed files with 2,030 additions and 5,128 deletions.
3,346 changes: 1,838 additions & 1,508 deletions fixtures/browser/package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions fixtures/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
"author": "",
"license": "MIT",
"dependencies": {
"@babel/core": "7.25.2",
"@babel/preset-env": "7.25.4",
"babel-loader": "^9.1.3",
"@babel/core": "7.25.8",
"@babel/preset-env": "7.25.8",
"babel-loader": "^9.2.1",
"build-time-reporter-webpack-plugin": "^1.4.3",
"jasmine-core": "^5.2.0",
"jasmine-core": "^5.4.0",
"karma": "^6.4.4",
"karma-chrome-launcher": "^3.2.0",
"karma-detect-browsers": "^2.3.3",
Expand All @@ -34,6 +34,6 @@
"output-compile-time-webpack-plugin": "^1.0.5",
"saucelabs": "8.0.0",
"ts-loader": "^9.5.1",
"webpack": "^5.94.0"
"webpack": "^5.95.0"
}
}
3,770 changes: 167 additions & 3,603 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 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.25.7",
"@babel/core": "^7.25.8",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-transform-modules-commonjs": "^7.25.7",
"@babel/preset-env": "7.25.7",
"@babel/preset-env": "7.25.8",
"@babel/preset-typescript": "^7.25.7",
"@rollup/plugin-alias": "^5.1.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.0",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-replace": "^6.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@swc/core": "1.7.26",
"@swc/core": "1.7.36",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.13",
"@types/jsdom": "^21.1.7",
"@types/node": "^22.7.5",
"@types/node": "^22.7.7",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"babel-plugin-inferno": "6.7.2",
"cli-table": "^0.3.11",
"concat-stream": "^2.0.0",
"coveralls-next": "^4.2.1",
"cross-env": "^7.0.3",
"d3-scale-chromatic": "^3.1.0",
"eslint": "^8.57.1",
"eslint": "^8",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard-with-typescript": "^43.0.1",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-n": "^17.10.3",
"eslint-plugin-n": "^17.11.1",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-promise": "^7.1.0",
"filesize": "^10.1.6",
Expand All @@ -124,7 +124,7 @@
"lerna": "^8",
"lint-staged": "^15.2.10",
"minimist": "^1.2.8",
"mobx": "^6.13.3",
"mobx": "^6.13.5",
"npm-run-all": "^4.1.5",
"perf-monitor": "^0.6.0",
"pre-commit": "^1.2.2",
Expand All @@ -133,8 +133,8 @@
"rollup": "^4.24.0",
"swc": "^1.0.11",
"swc-loader": "^0.2.6",
"swc-plugin-inferno": "^0.0.23",
"swc-plugin-inferno": "^1.0.0",
"ts-plugin-inferno": "^6.1.0",
"typescript": "^5.6.2"
"typescript": "^5.6.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ describe('Compat Children', () => {

describe('using JSX', () => {
it('should create a VNode with the correct className', function () {
// @ts-expect-error
const element = <div className="foo" test="hi" />;
expect(element.className).toBe('foo');
expect(element.props).toEqual({ test: 'hi', className: 'foo' });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ describe('Children - (non-JSX)', () => {
}

for (const arg of preDefined) {
const template = (child) => createElement('div', null, child)
const template = (child?) => createElement('div', null, child)

it('should set dynamic children as ' + arg.name, () => {
render(template(arg.value), container);
Expand Down Expand Up @@ -342,7 +342,7 @@ describe('Children - (non-JSX)', () => {
}

for (const arg of preDefined) {
const template = (child) => createElement('div', null, createElement('b', null, child));
const template = (child?) => createElement('div', null, createElement('b', null, child));

it('should set deep dynamic children as ' + arg.name, () => {
render(template(arg.value), container);
Expand Down
1 change: 1 addition & 0 deletions packages/inferno-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"inferno-shared": "8.2.2",
"inferno-vnode-flags": "8.2.2"
},
"type": "module",
"keywords": [],
"author": "",
"license": "ISC",
Expand Down
6 changes: 6 additions & 0 deletions packages/inferno-vnode-flags/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"version": "8.2.2",
"license": "MIT",
"type": "module",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./index.cjs"
}
},
"description": "Provides an enum of all possible VNode Flags used when calling Inferno.createVNode",
"author": {
"name": "Dominic Gannaway",
Expand Down

0 comments on commit 8cacbd0

Please sign in to comment.