Skip to content

Commit

Permalink
chore: try to fix peer deps for npm >= 7
Browse files Browse the repository at this point in the history
  • Loading branch information
KillerCodeMonkey committed Nov 9, 2021
1 parent 6e4765c commit 6888ca6
Show file tree
Hide file tree
Showing 6 changed files with 148 additions and 19 deletions.
146 changes: 139 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
"@angular/platform-browser": "^13.0.0",
"@angular/platform-browser-dynamic": "^13.0.0",
"@angular/router": "^13.0.0",
"rxjs": "^6.6.7",
"rxjs": "^7.4.0",
"tslib": "^2.3.1",
"zone.js": "~0.10.3 || ~0.11.4"
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "^13.0.0",
Expand Down Expand Up @@ -100,5 +100,5 @@
"name": "Bengt Weiße"
}
],
"version": "16.0.0"
"version": "16.0.1"
}
2 changes: 1 addition & 1 deletion projects/ngx-quill/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions projects/ngx-quill/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-quill",
"version": "16.0.0",
"version": "16.0.1",
"license": "MIT",
"author": {
"name": "Bengt Weiße"
Expand Down Expand Up @@ -33,7 +33,7 @@
"peerDependencies": {
"@angular/core": ">=13.0.0",
"quill": "^1.3.7",
"rxjs": "^6.5.0"
"rxjs": "^6.5.3 || ^7.4.0"
},
"contributors": [
{
Expand Down
3 changes: 0 additions & 3 deletions projects/ngx-quill/src/lib/quill-editor.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -952,9 +952,6 @@ describe('Advanced QuillEditorComponent', () => {
fixture.detectChanges()
await fixture.whenStable()

// eslint-disable-next-line no-underscore-dangle
expect(editorFixture.componentInstance.subscription._subscriptions.length).toEqual(3)

fixture.destroy()

expect(quillOffSpy).toHaveBeenCalledTimes(3)
Expand Down
6 changes: 3 additions & 3 deletions projects/ngx-quill/src/lib/quill-editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ export abstract class QuillEditorBase implements AfterViewInit, ControlValueAcce
// mark model as touched if editor lost focus
fromEvent(this.quillEditor, 'selection-change').subscribe(
([range, oldRange, source]) => {
this.selectionChangeHandler(range, oldRange, source)
this.selectionChangeHandler(range as any, oldRange as any, source)
}
)
)
Expand All @@ -686,14 +686,14 @@ export abstract class QuillEditorBase implements AfterViewInit, ControlValueAcce
this.subscription.add(
// update model if text changes
textChange$.subscribe(([delta, oldDelta, source]) => {
this.textChangeHandler(delta, oldDelta, source)
this.textChangeHandler(delta as any, oldDelta as any, source)
})
)

this.subscription.add(
// triggered if selection or text changed
editorChange$.subscribe(([event, current, old, source]) => {
this.editorChangeHandler(event, current, old, source)
this.editorChangeHandler(event as 'text-change' | 'selection-change', current, old, source)
})
)
})
Expand Down

0 comments on commit 6888ca6

Please sign in to comment.