Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade dependencies and fix tests #88

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion check-types/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SimpleNode, SimpleDocument, SimpleElement, SimpleText, SimpleComment, SimpleDocumentFragment, SerializableNode, SerializableElement } from '@simple-dom/interface';
import { SimpleDocument, SimpleElement, SimpleText, SimpleComment, SimpleDocumentFragment, SerializableNode, SerializableElement } from '@simple-dom/interface';

export class CheckSimple {
createHTMLDocument(): SimpleDocument {
Expand All @@ -20,6 +20,10 @@ export class CheckSimple {
createDocumentFragment(text: string): SimpleDocumentFragment {
return document.createDocumentFragment() as SimpleDocumentFragment;
}

getOffsetParent(): SimpleElement | null {
return document.createElement('div').offsetParent as SimpleElement | null;
}
}

export class CheckSerializable {
Expand Down
2 changes: 1 addition & 1 deletion lib/build.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';
const fs = require('fs');
const path = require('path');
const typescript = require('broccoli-typescript-compiler').typescript;
const typescript = require('broccoli-typescript-compiler').default;
const Rollup = require('broccoli-rollup');
const Funnel = require('broccoli-funnel');
const mergeTrees = require('broccoli-merge-trees');
Expand Down
25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,25 @@
},
"devDependencies": {
"@types/qunit": "^2.0.31",
"broccoli-concat": "^3.2.2",
"broccoli-concat": "^4.2.5",
"broccoli-debug": "^0.6.4",
"broccoli-funnel": "^2.0.1",
"broccoli-merge-trees": "^3.0.0",
"broccoli-persistent-filter": "^2.0.0",
"broccoli-rollup": "^2.0.0",
"broccoli-funnel": "3.0.0",
"broccoli-merge-trees": "^4.2.0",
"broccoli-persistent-filter": "^3.1.2",
"broccoli-rollup": "^5.0.0",
"broccoli-tee": "^1.0.2",
"broccoli-typescript-compiler": "^2.2.0",
"broccoli-typescript-compiler": "^8.0.0",
"do-you-even-bench": "^1.0.5",
"ember-cli": "^3.0.0",
"lerna": "^2.5.1",
"ember-cli": "^4.3.0",
"lerna": "^4.0.0",
"loader.js": "^4.6.0",
"nyc": "^13.3.0",
"nyc": "^15.1.0",
"qunit": "^2.4.1",
"rollup": "^2.70.2",
"rollup-plugin-buble": "^0.19.2",
"rollup-plugin-sourcemaps": "^0.4.2",
"tslint": "^5.7.0",
"typescript": "^2.7.1"
"rollup-plugin-sourcemaps": "^0.6.3",
"tslint": "^6.1.3",
"typescript": "^4.6.3"
},
"workspaces": [
"packages/@simple-dom/void-map",
Expand Down
4 changes: 2 additions & 2 deletions packages/@simple-dom/document/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"@simple-dom/dom-test-helper": "^1.4.0",
"@simple-dom/serializer": "^1.4.0",
"@simple-dom/void-map": "^1.4.0",
"ember-cli": "^3.0.0",
"nyc": "^11.3.0",
"ember-cli": "^4.3.0",
"nyc": "^15.1.0",
"qunit": "^2.4.1"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@simple-dom/interface/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export type SimpleNode =
SimpleDocumentFragment;

export interface SimpleNodeBase {
readonly ownerDocument: SimpleDocument;
readonly ownerDocument: SimpleDocument | null;
readonly nodeType: NodeType;
readonly nodeName: string;

Expand Down
6 changes: 3 additions & 3 deletions packages/@simple-dom/parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"@simple-dom/dom-test-helper": "^1.4.0",
"@simple-dom/serializer": "^1.4.0",
"@simple-dom/void-map": "^1.4.0",
"ember-cli": "^3.0.0",
"nyc": "^11.3.0",
"ember-cli": "^4.3.0",
"nyc": "^15.1.0",
"qunit": "^2.4.1",
"simple-html-tokenizer": "^0.4.3"
"simple-html-tokenizer": "^0.5.11"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/@simple-dom/serializer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"devDependencies": {
"@simple-dom/dom-test-helper": "^1.4.0",
"@simple-dom/void-map": "^1.4.0",
"ember-cli": "^3.0.0",
"nyc": "^11.3.0",
"ember-cli": "^4.3.0",
"nyc": "^15.1.0",
"qunit": "^2.4.1"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@simple-dom/void-map/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"prepare": "ember build --environment=production"
},
"devDependencies": {
"ember-cli": "^3.0.0"
"ember-cli": "^4.3.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/simple-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@simple-dom/void-map": "^1.4.0"
},
"devDependencies": {
"ember-cli": "^3.0.0"
"ember-cli": "^4.3.0"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 0 additions & 1 deletion testem.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"test_page": "test/index.html",
"parallel": 5,
"before_tests": "yarn run build",
"launch_in_ci": ["Chrome"],
"launch_in_dev": ["Chrome", "Firefox", "Safari"],
"browser_args": {
Expand Down