Skip to content

Commit

Permalink
chore: update dev deps and examples
Browse files Browse the repository at this point in the history
ernscht committed May 11, 2021
1 parent 2feef5a commit 5cf2151
Showing 17 changed files with 173 additions and 172 deletions.
4 changes: 2 additions & 2 deletions examples/find-components/package.json
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
},
"dependencies": {
"@gondel/core": "^1.2.7",
"core-js": "3.12.0"
"core-js": "3.12.1"
},
"devDependencies": {
"@babel/core": "7.14.0",
@@ -16,7 +16,7 @@
"html-webpack-plugin": "4.5.2",
"js-config-webpack-plugin": "2.0.2",
"webpack": "4.46.0",
"webpack-cli": "4.6.0",
"webpack-cli": "4.7.0",
"webpack-dev-server": "3.11.2"
}
}
4 changes: 2 additions & 2 deletions examples/five-star/package.json
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
},
"dependencies": {
"@gondel/core": "^1.2.7",
"core-js": "3.12.0"
"core-js": "3.12.1"
},
"devDependencies": {
"@babel/core": "7.14.0",
@@ -17,7 +17,7 @@
"js-config-webpack-plugin": "2.0.2",
"scss-config-webpack-plugin": "2.0.2",
"webpack": "4.46.0",
"webpack-cli": "4.6.0",
"webpack-cli": "4.7.0",
"webpack-dev-server": "3.11.2"
}
}
4 changes: 2 additions & 2 deletions examples/get-component-by-dom-node/package.json
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
},
"dependencies": {
"@gondel/core": "^1.2.7",
"core-js": "3.12.0"
"core-js": "3.12.1"
},
"devDependencies": {
"@babel/core": "7.14.0",
@@ -16,7 +16,7 @@
"html-webpack-plugin": "4.5.2",
"js-config-webpack-plugin": "2.0.2",
"webpack": "4.46.0",
"webpack-cli": "4.6.0",
"webpack-cli": "4.7.0",
"webpack-dev-server": "3.11.2"
}
}
2 changes: 1 addition & 1 deletion examples/gondel-react/package.json
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
"ts-config-webpack-plugin": "2.0.2",
"typescript": "4.2.4",
"webpack": "4.46.0",
"webpack-cli": "4.6.0",
"webpack-cli": "4.7.0",
"webpack-dev-server": "3.11.2"
}
}
4 changes: 2 additions & 2 deletions examples/hello-world/package.json
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
},
"dependencies": {
"@gondel/core": "^1.2.7",
"core-js": "3.12.0"
"core-js": "3.12.1"
},
"devDependencies": {
"@babel/core": "7.14.0",
@@ -16,7 +16,7 @@
"html-webpack-plugin": "4.5.2",
"js-config-webpack-plugin": "2.0.2",
"webpack": "4.46.0",
"webpack-cli": "4.6.0",
"webpack-cli": "4.7.0",
"webpack-dev-server": "3.11.2"
}
}
4 changes: 2 additions & 2 deletions examples/lazy-load/package.json
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
},
"dependencies": {
"@gondel/core": "^1.2.7",
"core-js": "3.12.0",
"core-js": "3.12.1",
"funnies": "2.1.0"
},
"devDependencies": {
@@ -17,7 +17,7 @@
"html-webpack-plugin": "4.5.2",
"js-config-webpack-plugin": "2.0.2",
"webpack": "4.46.0",
"webpack-cli": "4.6.0",
"webpack-cli": "4.7.0",
"webpack-dev-server": "3.11.2"
}
}
2 changes: 1 addition & 1 deletion examples/plugin-data/package.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
"html-webpack-plugin": "4.5.2",
"ts-config-webpack-plugin": "2.0.2",
"webpack": "4.46.0",
"webpack-cli": "4.6.0",
"webpack-cli": "4.7.0",
"webpack-dev-server": "3.11.2"
}
}
4 changes: 2 additions & 2 deletions examples/plugin-media-query/package.json
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
"dependencies": {
"@gondel/core": "^1.2.7",
"@gondel/plugin-media-queries": "^1.2.7",
"core-js": "3.12.0"
"core-js": "3.12.1"
},
"devDependencies": {
"@babel/core": "7.14.0",
@@ -17,7 +17,7 @@
"html-webpack-plugin": "4.5.2",
"js-config-webpack-plugin": "2.0.2",
"webpack": "4.46.0",
"webpack-cli": "4.6.0",
"webpack-cli": "4.7.0",
"webpack-dev-server": "3.11.2"
}
}
4 changes: 2 additions & 2 deletions examples/plugin-resize/package.json
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
"dependencies": {
"@gondel/core": "^1.2.7",
"@gondel/plugin-resize": "^1.2.7",
"core-js": "3.12.0"
"core-js": "3.12.1"
},
"devDependencies": {
"@babel/core": "7.14.0",
@@ -18,7 +18,7 @@
"html-webpack-plugin": "4.5.2",
"js-config-webpack-plugin": "2.0.2",
"webpack": "4.46.0",
"webpack-cli": "4.6.0",
"webpack-cli": "4.7.0",
"webpack-dev-server": "3.11.2"
}
}
4 changes: 2 additions & 2 deletions examples/react-gondel/package.json
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@
"@gondel/plugin-hot": "^1.2.7",
"@gondel/plugin-react": "^1.2.7",
"@types/react": "17.0.5",
"@types/react-dom": "17.0.3",
"@types/react-dom": "17.0.4",
"react": "17.0.2",
"react-dom": "17.0.2"
},
@@ -20,7 +20,7 @@
"common-config-webpack-plugin": "2.0.2",
"html-webpack-plugin": "4.5.2",
"webpack": "4.46.0",
"webpack-cli": "4.6.0",
"webpack-cli": "4.7.0",
"webpack-dev-server": "3.11.2"
}
}
4 changes: 2 additions & 2 deletions examples/trigger-public-event/package.json
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
},
"dependencies": {
"@gondel/core": "^1.2.7",
"core-js": "3.12.0"
"core-js": "3.12.1"
},
"devDependencies": {
"@babel/core": "7.14.0",
@@ -16,7 +16,7 @@
"html-webpack-plugin": "4.5.2",
"js-config-webpack-plugin": "2.0.2",
"webpack": "4.46.0",
"webpack-cli": "4.6.0",
"webpack-cli": "4.7.0",
"webpack-dev-server": "3.11.2"
}
}
2 changes: 1 addition & 1 deletion examples/typescript/package.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
"ts-config-webpack-plugin": "2.0.2",
"typescript": "4.2.4",
"webpack": "4.46.0",
"webpack-cli": "4.6.0",
"webpack-cli": "4.7.0",
"webpack-dev-server": "3.11.2"
}
}
266 changes: 132 additions & 134 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -60,18 +60,18 @@
}
],
"devDependencies": {
"commitizen": "4.2.3",
"commitizen": "4.2.4",
"@commitlint/cli": "12.1.1",
"@namics/commitlint-conventional-changelog": "1.2.1",
"@namics/prettier-config": "2.0.0",
"@size-limit/preset-small-lib": "4.10.2",
"cz-conventional-changelog": "3.3.0",
"husky": "4.3.8",
"lerna": "4.0.0",
"lint-staged": "10.5.4",
"npm-check-updates": "11.5.10",
"lint-staged": "11.0.0",
"npm-check-updates": "11.5.11",
"npm-run-all": "4.1.5",
"prettier": "2.2.1",
"prettier": "2.3.0",
"rimraf": "3.0.2",
"size-limit": "4.10.2",
"standard-version": "9.3.0"
4 changes: 2 additions & 2 deletions packages/core/src/GondelComponentStarter.ts
Original file line number Diff line number Diff line change
@@ -10,11 +10,11 @@ import { internalGondelAsyncRefAttribute, internalGondelRefAttribute } from './G
import { triggerPublicEvent } from './GondelEventEmitter';
import { fireGondelPluginEvent } from './GondelPluginUtils';
const noop = () => {};
const Deferred = (function () {
const Deferred = function () {
this.promise = new Promise((resolve) => {
this.resolve = resolve;
});
} as any) as { new (): { promise: Promise<any>; resolve: () => void } };
} as any as { new (): { promise: Promise<any>; resolve: () => void } };

/**
* Start all components of the gondel component registry
22 changes: 12 additions & 10 deletions packages/plugins/react/src/AppWrapper.tsx
Original file line number Diff line number Diff line change
@@ -12,16 +12,18 @@ export class AppWrapper<TConfig> extends Component<Props<TConfig>, TConfig> {
this.state = props.config;

// Forward react life cycle hooks
([
'componentWillMount',
'componentDidMount',
'componentWillReceiveProps',
'shouldComponentUpdate',
'componentWillUpdate',
'componentDidUpdate',
'componentWillUnmount',
'componentDidCatch',
] as const).forEach((reactHook) => {
(
[
'componentWillMount',
'componentDidMount',
'componentWillReceiveProps',
'shouldComponentUpdate',
'componentWillUpdate',
'componentDidUpdate',
'componentWillUnmount',
'componentDidCatch',
] as const
).forEach((reactHook) => {
if (!(this.props as any)[reactHook]) {
return;
}
3 changes: 2 additions & 1 deletion packages/plugins/react/src/GondelReactComponent.tsx
Original file line number Diff line number Diff line change
@@ -88,7 +88,8 @@ export function createGondelReactLoader<State extends {}, Module extends { [key:

export class GondelReactComponent<State extends {} = {}, TElement extends HTMLElement = HTMLDivElement>
extends GondelBaseComponent<TElement>
implements ComponentLifecycle<null, State> {
implements ComponentLifecycle<null, State>
{
static readonly AppPromiseMap = new WeakMap<
Promise<RenderableReactComponent<any>>,
RenderableReactComponent<any>

0 comments on commit 5cf2151

Please sign in to comment.