Skip to content

Commit

Permalink
fix: update dependencies to resolve build issues (#1888)
Browse files Browse the repository at this point in the history
* fix: fix error with ts 4.7.2 version

* Removed duplicate 'fetch' variable as it is already defined as a built-in global variable

* removed data-reactroot from tests

* fix version of cheerio to resolve cannot find module issue

Co-authored-by: Srinath Muthyala <[email protected]>
  • Loading branch information
smuthya and srinathm85 authored Jun 27, 2022
1 parent 69d28ee commit 60e173d
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/webpack-config-composer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"sinon": "^9.2.2",
"sinon-chai": "^3.5.0",
"source-map-support": "^0.5.19",
"ts-node": "^9.1.1",
"ts-node": "^10.7.0",
"typedoc": "^0.20.13",
"typescript": "^4.1.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/xarc-app-dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"sinon": "^9.2.2",
"sinon-chai": "^3.5.0",
"source-map-support": "^0.5.19",
"ts-node": "^9.1.1",
"ts-node": "^10.7.0",
"typedoc": "^0.20.13",
"typescript": "^4.1.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/xarc-app-dev/src/lib/dev-admin/log-view.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-magic-numbers, no-use-before-define, no-unused-vars */
/* eslint-disable no-console, max-statements, no-param-reassign, complexity */
/* global window, document, EventSource, fetch */
/* global window, document, EventSource */

// c is from json-formatter-js.js, keep it loaded ahead of log-view.js
/* eslint-disable no-undef */
Expand Down
6 changes: 4 additions & 2 deletions packages/xarc-react/test/spec/node/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@ describe("createDynamicComponent", function () {
expect(container.getNames()).contains("test");
expect(Component).to.be.a("function");

// data-reactroot isn't getting created due to Context.Provider
// see https://github.com/facebook/react/issues/15012
const html = renderToString(<Component />);
expect(html).to.equal(
`<div data-reactroot="">subapp <!-- -->test<!-- --> component loading... </div>`
`<div>subapp <!-- -->test<!-- --> component loading... </div>`
);

await container.get("test")._getModule();

const html2 = renderToString(<Component />);
expect(html2).to.equal(`<div data-reactroot="">hello</div>`);
expect(html2).to.equal(`<div>hello</div>`);
});
});
2 changes: 1 addition & 1 deletion packages/xarc-subapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"sinon": "^9.2.2",
"sinon-chai": "^3.5.0",
"source-map-support": "^0.5.19",
"ts-node": "^9.1.1",
"ts-node": "^10.7.0",
"typedoc": "^0.20.13",
"typescript": "^4.1.3",
"xsh": "^0.4.5"
Expand Down
3 changes: 2 additions & 1 deletion samples/react-jest-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@
"@xarc/opt-less": "^1.0.2",
"@xarc/opt-mocha": "^1.0.0",
"@xarc/opt-postcss": "^1.0.4",
"@xarc/opt-stylus": "^1.0.2"
"@xarc/opt-stylus": "^1.0.2",
"cheerio": "=1.0.0-rc.10"
},
"fyn": {
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion samples/stylus-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
"@xarc/opt-karma": "^1.0.0",
"@xarc/opt-mocha": "^1.0.0",
"@xarc/opt-postcss": "^1.0.0",
"@xarc/opt-stylus": "^1.0.0"
"@xarc/opt-stylus": "^1.0.0",
"cheerio": "=1.0.0-rc.10"
},
"fyn": {
"dependencies": {
Expand Down

0 comments on commit 60e173d

Please sign in to comment.