Skip to content

Commit bbf5830

Browse files
authored
Merge pull request #9 from rars/angular-11-update
Angular 11 update
2 parents e4277a8 + 302adc6 commit bbf5830

File tree

9 files changed

+1339
-1068
lines changed

9 files changed

+1339
-1068
lines changed

angular.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"optimization": true,
4444
"outputHashing": "all",
4545
"sourceMap": false,
46-
"extractCss": true,
4746
"namedChunks": false,
4847
"extractLicenses": true,
4948
"vendorChunk": false,
@@ -131,7 +130,7 @@
131130
"prefix": "lib",
132131
"architect": {
133132
"build": {
134-
"builder": "@angular-devkit/build-ng-packagr:build",
133+
"builder": "@angular-devkit/build-angular:ng-packagr",
135134
"options": {
136135
"tsConfig": "projects/ngx-diff/tsconfig.lib.json",
137136
"project": "projects/ngx-diff/ng-package.json"

package-lock.json

Lines changed: 1309 additions & 1041 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-diff",
3-
"version": "0.3.0",
3+
"version": "0.4.0-rc.0",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
@@ -11,38 +11,38 @@
1111
},
1212
"private": true,
1313
"dependencies": {
14-
"@angular/animations": "^10.2.3",
15-
"@angular/common": "^10.2.3",
16-
"@angular/compiler": "^10.2.3",
17-
"@angular/core": "^10.2.3",
18-
"@angular/forms": "^10.2.3",
19-
"@angular/platform-browser": "^10.2.3",
20-
"@angular/platform-browser-dynamic": "^10.2.3",
21-
"@angular/router": "^10.2.3",
14+
"@angular/animations": "^11.0.0",
15+
"@angular/common": "^11.0.0",
16+
"@angular/compiler": "^11.0.0",
17+
"@angular/core": "^11.0.0",
18+
"@angular/forms": "^11.0.0",
19+
"@angular/platform-browser": "^11.0.0",
20+
"@angular/platform-browser-dynamic": "^11.0.0",
21+
"@angular/router": "^11.0.0",
2222
"diff-match-patch-ts": "^0.2.0",
2323
"rxjs": "~6.5.4",
2424
"tslib": "^2.0.0",
2525
"zone.js": "~0.10.3"
2626
},
2727
"devDependencies": {
28-
"@angular-devkit/build-angular": "^0.1002.0",
29-
"@angular-devkit/build-ng-packagr": "^0.1002.0",
30-
"@angular/cli": "^10.2.0",
31-
"@angular/compiler-cli": "^10.2.3",
32-
"@angular/language-service": "^10.2.3",
33-
"@types/jasmine": "^3.5.4",
28+
"@angular-devkit/build-angular": "^0.1100.1",
29+
"@angular-devkit/core": "^11.0.1",
30+
"@angular/cli": "^11.0.1",
31+
"@angular/compiler-cli": "^11.0.0",
32+
"@angular/language-service": "^11.0.0",
33+
"@types/jasmine": "~3.6.0",
3434
"@types/jasminewd2": "~2.0.3",
3535
"@types/node": "^14.14.7",
36-
"codelyzer": "^5.1.2",
37-
"jasmine-core": "~3.5.0",
36+
"codelyzer": "^6.0.0",
37+
"jasmine-core": "~3.6.0",
3838
"jasmine-spec-reporter": "~5.0.0",
39-
"karma": "~5.0.0",
39+
"karma": "~5.1.1",
4040
"karma-chrome-launcher": "~3.1.0",
4141
"karma-coverage-istanbul-reporter": "~3.0.2",
4242
"karma-firefox-launcher": "^1.3.0",
4343
"karma-jasmine": "~4.0.0",
4444
"karma-jasmine-html-reporter": "^1.5.0",
45-
"ng-packagr": "^10.1.0",
45+
"ng-packagr": "^11.0.2",
4646
"protractor": "~7.0.0",
4747
"ts-node": "~8.3.0",
4848
"tslint": "~6.1.0",

projects/ngx-diff/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-diff",
3-
"version": "0.3.0",
3+
"version": "0.4.0-rc.0",
44
"peerDependencies": {
55
"@angular/common": ">=10.0.0",
66
"@angular/core": ">=10.0.0",

projects/ngx-diff/src/inline-diff/inline-diff.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { NO_ERRORS_SCHEMA } from '@angular/core';
2-
import { async, TestBed, ComponentFixture } from '@angular/core/testing';
2+
import { TestBed, ComponentFixture, waitForAsync } from '@angular/core/testing';
33
import { Diff, DiffOp } from 'diff-match-patch-ts';
44

55
import { InlineDiffComponent } from './inline-diff.component';
@@ -21,7 +21,7 @@ describe('InlineDiffComponent', () => {
2121
let component: InlineDiffComponent;
2222
let fixture: ComponentFixture<InlineDiffComponent>;
2323

24-
beforeEach(async(() => {
24+
beforeEach(waitForAsync(() => {
2525
TestBed.configureTestingModule({
2626
declarations: [InlineDiffComponent],
2727
providers: [{ provide: DiffMatchPatchService, useClass: DiffMatchPatchServiceMock }],

projects/ngx-diff/tsconfig.lib.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"outDir": "../../out-tsc/lib",
5+
"declarationMap": true,
56
"target": "es2015",
67
"declaration": true,
78
"inlineSources": true,

projects/ngx-diff/tsconfig.lib.prod.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"extends": "./tsconfig.lib.json",
3+
"compilerOptions": {
4+
"declarationMap": false
5+
},
36
"angularCompilerOptions": {
47
"enableIvy": false
58
}

src/app/app-routing.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Routes, RouterModule } from '@angular/router';
55
const routes: Routes = [];
66

77
@NgModule({
8-
imports: [RouterModule.forRoot(routes)],
8+
imports: [RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' })],
99
exports: [RouterModule]
1010
})
1111
export class AppRoutingModule { }

src/app/app.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { TestBed, async } from '@angular/core/testing';
1+
import { TestBed, waitForAsync } from '@angular/core/testing';
22
import { RouterTestingModule } from '@angular/router/testing';
33
import { AppComponent } from './app.component';
44

55
describe('AppComponent', () => {
6-
beforeEach(async(() => {
6+
beforeEach(waitForAsync(() => {
77
TestBed.configureTestingModule({
88
imports: [
99
RouterTestingModule

0 commit comments

Comments
 (0)