Skip to content

Commit 05fc2d5

Browse files
authored
Merge branch 'master' into fix-#6030-master
2 parents f6cc460 + d80d509 commit 05fc2d5

File tree

185 files changed

+2839
-2336
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+2839
-2336
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ before_deploy:
3939
- cd dist/igniteui-angular
4040
# update package versions
4141
- npm version "${TRAVIS_TAG}" --no-git-tag-version --save
42-
- if [[ "${TRAVIS_TAG}" == *"beta"* || "${TRAVIS_TAG}" == *"rc"* ]]; then export NPM_TAG="next"; else export NPM_TAG="latest"; fi
42+
- if [[ "${TRAVIS_TAG}" == *"alpha"* || "${TRAVIS_TAG}" == *"beta"* || "${TRAVIS_TAG}" == *"rc"* ]]; then export NPM_TAG="next"; else export NPM_TAG="latest"; fi
4343

4444
# copy readme
4545
- cp ../../README.md README.md

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
# Ignite UI for Angular Change Log
22

33
All notable changes for each version of this project will be documented in this file.
4+
5+
## 9.0.0
6+
7+
### General
8+
- Added support for the Ivy renderer.
9+
- **Breaking Changes** The following classes have been renamed. Using `ng update` will apply automatically migrate your project to use the new names.
10+
- `IgxDropDownBase` -> `IgxDropDownBaseDirective`
11+
- `IgxDropDownItemBase` -> `IgxDropDownBaseDirective`
12+
- `IgxGridBaseComponent` -> `IgxGridBaseDirective`
13+
- `IgxRowComponent` -> `IgxRowDirective`
14+
- `IgxHierarchicalGridBaseComponent` -> `IgxHierarchicalGridBaseDirective`
15+
416
## 8.2.4
517

618
### RTL Support

projects/igniteui-angular/migrations/migration-collection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@
5555
"version": "8.2.3",
5656
"description": "Updates Ignite UI for Angular from v8.2.0 to v8.2.3",
5757
"factory": "./update-8_2_3"
58+
},
59+
"migration-12": {
60+
"version": "9.0.0",
61+
"description": "Updates Ignite UI for Angular from v8.2.x to v9.2.0",
62+
"factory": "./update-9_0_0"
5863
}
5964
}
6065
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "../../common/schema/class.schema.json",
3+
"changes": [
4+
{
5+
"name": "IgxDropDownBase",
6+
"replaceWith": "IgxDropDownBaseDirective"
7+
},
8+
{
9+
"name": "IgxDropDownItemBase",
10+
"replaceWith": "IgxDropDownItemBaseDirective"
11+
},
12+
{
13+
"name": "IgxGridBaseComponent",
14+
"replaceWith": "IgxGridBaseDirective"
15+
},
16+
{
17+
"name": "IgxRowComponent",
18+
"replaceWith": "IgxRowDirective"
19+
},
20+
{
21+
"name": "IgxHierarchicalGridBaseComponent",
22+
"replaceWith": "IgxHierarchicalGridBaseDirective"
23+
}
24+
]
25+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import * as path from 'path';
2+
3+
// tslint:disable:no-implicit-dependencies
4+
import { virtualFs } from '@angular-devkit/core';
5+
import { EmptyTree } from '@angular-devkit/schematics';
6+
// tslint:disable-next-line:no-submodule-imports
7+
import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
8+
9+
describe('Update 9.0.0', () => {
10+
let appTree: UnitTestTree;
11+
const schematicRunner = new SchematicTestRunner('ig-migrate', path.join(__dirname, '../migration-collection.json'));
12+
const configJson = {
13+
defaultProject: 'testProj',
14+
projects: {
15+
testProj: {
16+
sourceRoot: '/testSrc'
17+
}
18+
},
19+
schematics: {
20+
'@schematics/angular:component': {
21+
prefix: 'appPrefix'
22+
}
23+
}
24+
};
25+
26+
beforeEach(() => {
27+
appTree = new UnitTestTree(new EmptyTree());
28+
appTree.create('/angular.json', JSON.stringify(configJson));
29+
});
30+
31+
it('should update base class names.', done => {
32+
appTree.create(
33+
'/testSrc/appPrefix/component/test.component.ts',
34+
`import { IgxDropDownBase, IgxDropDownItemBase, IgxGridBaseComponent,
35+
IgxRowComponent, IgxHierarchicalGridBaseComponent } from 'igniteui-angular';
36+
`);
37+
38+
const tree = schematicRunner.runSchematic('migration-12', {}, appTree);
39+
expect(tree.readContent('/testSrc/appPrefix/component/test.component.ts'))
40+
.toEqual(
41+
`import { IgxDropDownBaseDirective, IgxDropDownItemBaseDirective, IgxGridBaseDirective,
42+
IgxRowDirective, IgxHierarchicalGridBaseDirective } from 'igniteui-angular';
43+
`);
44+
done();
45+
});
46+
});
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import {
2+
Rule,
3+
SchematicContext,
4+
Tree
5+
} from '@angular-devkit/schematics';
6+
import { UpdateChanges } from '../common/UpdateChanges';
7+
8+
const version = '9.0.0';
9+
10+
export default function(): Rule {
11+
return (host: Tree, context: SchematicContext) => {
12+
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
13+
14+
const update = new UpdateChanges(__dirname, host, context);
15+
update.applyChanges();
16+
};
17+
}

projects/igniteui-angular/ng-package.prod.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
33
"dest": "../../dist/igniteui-angular",
44
"lib": {
5-
"entryFile": "src/public_api.ts"
5+
"entryFile": "src/public_api.ts",
6+
"umdModuleIds": {
7+
"jszip/dist/jszip": "JSZip",
8+
"resize-observer-polyfill": "ResizeObserver"
9+
}
610
},
711
"whitelistedNonPeerDependencies": [
812
"@types/hammerjs",

projects/igniteui-angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"web-animations-js": "^2.3.2"
8080
},
8181
"devDependencies": {
82-
"igniteui-cli": "~4.2.0"
82+
"@igniteui/angular-schematics": "^8.2.500-beta.0"
8383
},
8484
"ng-update": {
8585
"migrations": "./migrations/migration-collection.json"

projects/igniteui-angular/schematics/ng-add/index.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ describe('ng-add schematics', () => {
106106
runner.runSchematic('ng-add', { normalizeCss: false }, tree);
107107
const pkgJsonData = JSON.parse(tree.readContent('/package.json'));
108108

109-
expect(pkgJsonData.devDependencies['igniteui-cli']).toBeTruthy();
110-
expect(pkgJsonData.dependencies['igniteui-cli']).toBeFalsy();
109+
expect(pkgJsonData.devDependencies['@igniteui/angular-schematics']).toBeTruthy();
110+
expect(pkgJsonData.dependencies['@igniteui/angular-schematics']).toBeFalsy();
111111
});
112112

113113
it('should properly add polyfills', () => {

projects/igniteui-angular/schematics/utils/dependency-handler.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { getWorkspace } from '@schematics/angular/utility/config';
44
import { Options } from '../interfaces/options';
55
import { WorkspaceProject, ProjectType, WorkspaceSchema } from '@schematics/angular/utility/workspace-models';
66

7+
const schematicsPackage = '@igniteui/angular-schematics';
8+
79
function logIncludingDependency(context: SchematicContext, pkg: string, version: string): void {
810
context.logger.info(`Including ${pkg} - Version: ${version}`);
911
}
@@ -65,7 +67,7 @@ export function addDependencies(options: Options): Rule {
6567
}
6668
});
6769

68-
addPackageToPkgJson(tree, 'igniteui-cli', pkgJson.devDependencies['igniteui-cli'], devDependencies);
70+
addPackageToPkgJson(tree, schematicsPackage, pkgJson.devDependencies[schematicsPackage], devDependencies);
6971
return tree;
7072
};
7173
}

0 commit comments

Comments
 (0)