Skip to content

Release 8.20.0 #2033

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

Merged
merged 43 commits into from
Oct 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
0e266df
chore: change version for "master" branch
Oct 17, 2019
e1b9328
Merge pull request #2019 from NativeScript/merge-release-in-master
Oct 17, 2019
ed16c12
initial commit
tbozhikov Oct 7, 2019
2ca7acd
save progress
tbozhikov Oct 7, 2019
55da9f3
chore: make most of e2e apps work with the revamped older package
tbozhikov Oct 8, 2019
1d640af
fix: single-page test app
tbozhikov Oct 8, 2019
1090095
fix: revert changes to modal navigation e2e
tbozhikov Oct 9, 2019
10b9253
chore: reorganise exports
tbozhikov Oct 9, 2019
f519624
chore: remove comment
tbozhikov Oct 10, 2019
f725a6e
fix: unit tests after refactoring
tbozhikov Oct 10, 2019
fdad1c9
chore: first bits of a pack script for non-scoped dependency
tbozhikov Oct 10, 2019
1cb22db
chore: pack script for compat package
tbozhikov Oct 11, 2019
d975201
chore: rename out tgz file to nativescript-angular-compat.tgz
tbozhikov Oct 11, 2019
1ca8279
fix: comments
tbozhikov Oct 11, 2019
398fbe0
chore: remove unused npm script
tbozhikov Oct 14, 2019
2595456
chore: add pack script in scoped pckg
tbozhikov Oct 14, 2019
5c7f25f
fix: ensure dist
tbozhikov Oct 14, 2019
a492023
chore: build scoped package through nodejs script
tbozhikov Oct 14, 2019
e9e9327
chore: update build scripts, fix jenkins build
tbozhikov Oct 15, 2019
63872d8
fix: try to fix error in jenkins
tbozhikov Oct 15, 2019
faede8a
fix: remove bin prop from compat so that npm flattens scoped deps in …
tbozhikov Oct 17, 2019
ddefe0e
cleanup: wrongly committed files
tbozhikov Oct 17, 2019
8174558
fix: revert tns-ios and tns-android versions in package jsons
tbozhikov Oct 17, 2019
0a25c40
chore: export most types from root scope of the scoped package
tbozhikov Oct 17, 2019
916bc85
chore: add platform common exports in compat, clean ups
tbozhikov Oct 17, 2019
cb0292f
fix: update compat build script to work correctly with save-exact
tbozhikov Oct 21, 2019
f82e9aa
fix: potential breaking change
tbozhikov Oct 21, 2019
9e0f59b
Merge pull request #2014 from NativeScript/tbozhikov/scoped-package
tbozhikov Oct 21, 2019
2df562c
chore: bump next version
tbozhikov Oct 21, 2019
176b987
Merge pull request #2024 from NativeScript/tbozhikov/bump-versions
tbozhikov Oct 21, 2019
c382682
fix(animations): resolve issue with "query animations" on iOS 13 (#2022)
Oct 22, 2019
bab4278
fix: use cwd() as backup for getting path
tbozhikov Oct 22, 2019
1639e65
Merge pull request #2027 from NativeScript/tbozhikov/fix-update-ng-deps
tbozhikov Oct 22, 2019
09bf9ba
fix: local development workflow errors
tbozhikov Oct 22, 2019
d7c6f90
fix: expose missing export for TemplatedItemsComponent
tbozhikov Oct 22, 2019
bb378eb
fix: add additional path for export of templated-items-comp
tbozhikov Oct 22, 2019
c22d44e
Merge pull request #2028 from NativeScript/tbozhikov/fix-e2e-apps-aot
tbozhikov Oct 22, 2019
f9c61e3
refactor: deprecated topmost() usage
manoldonev Oct 22, 2019
77d2f53
fix: update-app-ng-deps
tbozhikov Oct 23, 2019
40878ff
Merge pull request #2031 from NativeScript/tbozhikov/fix-update-app-n…
tbozhikov Oct 23, 2019
b44df23
Merge branch 'master' into mdonev/deprecated-api-fix
elena-p Oct 23, 2019
e722877
Merge pull request #2029 from NativeScript/mdonev/deprecated-api-fix
tbozhikov Oct 23, 2019
8ada54a
release: cut the 8.20.0 release
tbozhikov Oct 23, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ node_modules
platforms
hooks
tags
dist
**/*.js.map
**/*.metadata.json

Expand All @@ -14,6 +15,15 @@ tags
!/nativescript-angular/gulpfile.js
!/nativescript-angular/zone-js/dist/*.js

/nativescript-angular-package/**/*.d.ts
/nativescript-angular-package/**/*.js

!/nativescript-angular-package/global.d.ts
!/nativescript-angular-package/postinstall.js
!/nativescript-angular-package/hooks/**/*.js
!/nativescript-angular-package/gulpfile.js
!/nativescript-angular-package/zone-js/dist/*.js

.tscache
.nvm
.vscode
Expand Down Expand Up @@ -46,3 +56,4 @@ tsconfig.tns.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="8.20.0"></a>
# [8.20.0](https://github.com/NativeScript/nativescript-angular/compare/8.2.2...8.20.0) (2019-10-23)

### Features
* add scoped package @nativescript/angular ([#2014](https://github.com/NativeScript/nativescript-angular/pull/2014))

### Bug Fixes

* **animations:** resolve issue with "query animations" on iOS 13 ([#2022](https://github.com/NativeScript/nativescript-angular/issues/2022)) ([c382682](https://github.com/NativeScript/nativescript-angular/commit/c382682))

<a name="8.2.2"></a>
## [8.2.2](https://github.com/NativeScript/nativescript-angular/compare/8.2.1...8.2.2) (2019-10-16)

Expand Down
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ In this case the commits should be merge firstly from release in master branch a
2. Execute `npm i` to install dependencies:
```
cd nativescript-angular && npm i
cd nativescript-angular-package && npm i
```
3. Execute [`npm version`](https://docs.npmjs.com/cli/version) to bump the version:
3. Execute [`npm version`](https://docs.npmjs.com/cli/version) to bump the version in both `nativescript-angular` and `nativescript-angular-package` folders:
```
npm --no-git-tag-version version [patch|minor|major] -m "release: cut the %s release"
```
Expand Down
45 changes: 45 additions & 0 deletions build/pack-scripts/pack-compat.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import * as path from "path";
import * as fs from "fs-extra";
import { execSync } from "child_process";

// var myArgs = process.argv.slice(2);
var scopedVersion = process.argv[2];
console.log(`Packing nativescript-angular package with @nativescript/angular: ${scopedVersion}`);

const distFolderPath = path.resolve("../../dist");
const tempFolderPath = path.resolve("./temp-compat");
const outFileName = "nativescript-angular-compat.tgz";

const nsAngularPackagePath = path.resolve("../../nativescript-angular-package");
const packageJsonPath = path.resolve(`${nsAngularPackagePath}/package.json`);
console.log("Getting package.json from", packageJsonPath);

let npmInstallParams = "";
if (scopedVersion.indexOf(".tgz") > 0) {
// rewrite dependency in package.json
const packageJsonObject = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: "utf8" }));
packageJsonObject.dependencies["@nativescript/angular"] = scopedVersion;
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJsonObject, null, 4));
} else {
npmInstallParams = `@nativescript/angular@${scopedVersion}`;
}

execSync(`npm install --save-exact ${npmInstallParams}`, {
cwd: nsAngularPackagePath
});

// ensure empty temp and existing dist folders
fs.emptyDirSync(tempFolderPath);
fs.ensureDirSync(distFolderPath);

// create .tgz in temp folder
execSync(`npm pack ${nsAngularPackagePath}`, {
cwd: tempFolderPath
});

// assume we have a single file built in temp folder, take its name
const currentFileName = fs.readdirSync(tempFolderPath)[0];

// move built file and remove temp folder
fs.moveSync(`${tempFolderPath}/${currentFileName}`, `${distFolderPath}/${outFileName}`, { overwrite: true });
fs.removeSync(`${tempFolderPath}`);
31 changes: 31 additions & 0 deletions build/pack-scripts/pack-scoped.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import * as path from "path";
import * as fs from "fs-extra";
import { execSync } from "child_process";

console.log(`Packing @nativescript/angular package`);

const distFolderPath = path.resolve("../../dist");
const tempFolderPath = path.resolve("./temp-scoped");
const outFileName = "nativescript-angular-scoped.tgz";

const nsAngularPackagePath = path.resolve("../../nativescript-angular");

execSync(`npm install --save-exact`, {
cwd: nsAngularPackagePath
});

// ensure empty temp and dist folders
fs.emptyDirSync(tempFolderPath);
fs.ensureDirSync(distFolderPath);

// create .tgz in temp folder
execSync(`npm pack ${nsAngularPackagePath}`, {
cwd: tempFolderPath
});

// assume we have a single file built in temp folder, take its name
const currentFileName = fs.readdirSync(tempFolderPath)[0];

// move built file and remove temp folder
fs.moveSync(`${tempFolderPath}/${currentFileName}`, `${distFolderPath}/${outFileName}`, { overwrite: true });
fs.removeSync(`${tempFolderPath}`);
18 changes: 18 additions & 0 deletions build/pack-scripts/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "build",
"version": "1.0.0",
"description": "",
"main": "prepublish-next.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"@types/node": "^12.7.12",
"fs-extra": "^8.1.0",
"rimraf": "^3.0.0",
"ts-node": "^8.4.1",
"typescript": "^3.6.4"
}
}
25 changes: 25 additions & 0 deletions build/pack-scripts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"noEmitHelpers": true,
"noEmitOnError": true,
"lib": [
"es6",
"dom",
"es2015.iterable"
],
"types": [
"node"
],
"typeRoots": [ "./node_modules/@types" ]
},
"include": [
"./**/*.ts"
],
"exclude": [
"node_modules"
]
}
2 changes: 1 addition & 1 deletion e2e/animation-examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@angular/platform-browser": "~8.2.0",
"@angular/platform-browser-dynamic": "~8.2.0",
"@angular/router": "~8.2.0",
"nativescript-angular": "file:../../nativescript-angular",
"nativescript-angular": "file:../../nativescript-angular-package",
"nativescript-theme-core": "~1.0.2",
"reflect-metadata": "~0.1.8",
"rxjs": "^6.4.0",
Expand Down
6 changes: 5 additions & 1 deletion e2e/animation-examples/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,22 @@
"paths": {
"*": [
"./node_modules/tns-core-modules/*",
"./node_modules/*"
"./node_modules/*",
"./node_modules/nativescript-angular/node_modules/*"
],
"~/*": [
"app/*"
]
}
},
"include": [
"../../nativescript-angular-package",
"../../nativescript-angular",
"**/*"
],
"exclude": [
"../../nativescript-angular-package/node_modules",
"../../nativescript-angular-package/**/*.d.ts",
"../../nativescript-angular/node_modules",
"../../nativescript-angular/**/*.d.ts",
"node_modules",
Expand Down
2 changes: 1 addition & 1 deletion e2e/modal-navigation-ng/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@angular/platform-browser": "~8.2.0",
"@angular/platform-browser-dynamic": "~8.2.0",
"@angular/router": "~8.2.0",
"nativescript-angular": "file:../../nativescript-angular",
"nativescript-angular": "file:../../nativescript-angular-package",
"nativescript-theme-core": "~1.0.4",
"reflect-metadata": "~0.1.8",
"rxjs": "^6.4.0",
Expand Down
6 changes: 5 additions & 1 deletion e2e/modal-navigation-ng/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,22 @@
"paths": {
"*": [
"./node_modules/tns-core-modules/*",
"./node_modules/*"
"./node_modules/*",
"./node_modules/nativescript-angular/node_modules/*"
],
"~/*": [
"app/*"
]
}
},
"include": [
"../../nativescript-angular-package",
"../../nativescript-angular",
"**/*"
],
"exclude": [
"../../nativescript-angular-package/node_modules",
"../../nativescript-angular-package/**/*.d.ts",
"../../nativescript-angular/node_modules",
"../../nativescript-angular/**/*.d.ts",
"node_modules",
Expand Down
2 changes: 1 addition & 1 deletion e2e/nested-router-tab-view/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { routerTraceCategory } from "nativescript-angular/trace";
// addCategories(routerTraceCategory);
traceEnable();

class MyErrorHandler implements ErrorHandler {
export class MyErrorHandler implements ErrorHandler {
handleError(error) {
console.log("### ErrorHandler Error: " + error.toString());
console.log("### ErrorHandler Stack: " + error.stack);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Label class="action-bar-title" text="Modal Second"></Label>
</ActionBar>

<GridLayout #rootLayout rows="auto, auto" (loaded)="onLoaded($event)">
<GridLayout #rootLayout rows="auto, auto" (loaded)="onLoaded()">
<Button text="Go Back(activatedRoute)" (tap)="goBack()"></Button>
<Button row="1" text="Close Modal" (tap)="close(rootLayout)"></Button>
</GridLayout>
2 changes: 1 addition & 1 deletion e2e/nested-router-tab-view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@angular/platform-browser": "~8.2.0",
"@angular/platform-browser-dynamic": "~8.2.0",
"@angular/router": "~8.2.0",
"nativescript-angular": "file:../../nativescript-angular",
"nativescript-angular": "file:../../nativescript-angular-package",
"nativescript-theme-core": "~1.0.4",
"reflect-metadata": "~0.1.8",
"rxjs": "^6.4.0",
Expand Down
6 changes: 5 additions & 1 deletion e2e/nested-router-tab-view/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,22 @@
"paths": {
"*": [
"./node_modules/tns-core-modules/*",
"./node_modules/*"
"./node_modules/*",
"./node_modules/nativescript-angular/node_modules/*"
],
"~/*": [
"app/*"
]
}
},
"include": [
"../../nativescript-angular-package",
"../../nativescript-angular",
"**/*"
],
"exclude": [
"../../nativescript-angular-package/node_modules",
"../../nativescript-angular-package/**/*.d.ts",
"../../nativescript-angular/node_modules",
"../../nativescript-angular/**/*.d.ts",
"node_modules",
Expand Down
2 changes: 1 addition & 1 deletion e2e/renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@angular/platform-browser": "~8.2.0",
"@angular/platform-browser-dynamic": "~8.2.0",
"@angular/router": "~8.2.0",
"nativescript-angular": "file:../../nativescript-angular",
"nativescript-angular": "file:../../nativescript-angular-package",
"nativescript-theme-core": "~1.0.4",
"reflect-metadata": "~0.1.8",
"rxjs": "^6.4.0",
Expand Down
6 changes: 5 additions & 1 deletion e2e/renderer/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,22 @@
"paths": {
"*": [
"./node_modules/tns-core-modules/*",
"./node_modules/*"
"./node_modules/*",
"./node_modules/nativescript-angular/node_modules/*"
],
"~/*": [
"app/*"
]
}
},
"include": [
"../../nativescript-angular-package",
"../../nativescript-angular",
"**/*"
],
"exclude": [
"../../nativescript-angular-package/node_modules",
"../../nativescript-angular-package/**/*.d.ts",
"../../nativescript-angular/node_modules",
"../../nativescript-angular/**/*.d.ts",
"node_modules",
Expand Down
2 changes: 1 addition & 1 deletion e2e/routable-animations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@angular/platform-browser": "~8.2.0",
"@angular/platform-browser-dynamic": "~8.2.0",
"@angular/router": "~8.2.0",
"nativescript-angular": "next",
"nativescript-angular": "file:../../nativescript-angular-package",
"nativescript-theme-core": "~1.0.2",
"reflect-metadata": "~0.1.8",
"rxjs": "^6.4.0",
Expand Down
6 changes: 5 additions & 1 deletion e2e/routable-animations/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,22 @@
"paths": {
"*": [
"./node_modules/tns-core-modules/*",
"./node_modules/*"
"./node_modules/*",
"./node_modules/nativescript-angular/node_modules/*"
],
"~/*": [
"app/*"
]
}
},
"include": [
"../../nativescript-angular-package",
"../../nativescript-angular",
"**/*"
],
"exclude": [
"../../nativescript-angular-package/node_modules",
"../../nativescript-angular-package/**/*.d.ts",
"../../nativescript-angular/node_modules",
"../../nativescript-angular/**/*.d.ts",
"node_modules",
Expand Down
3 changes: 1 addition & 2 deletions e2e/router-tab-view/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Component, OnInit, AfterViewInit, AfterContentInit, ViewChild } from "@angular/core";
import { Component, ViewChild } from "@angular/core";
import { TabViewDirective } from "nativescript-angular/directives";
import { Router, NavigationEnd } from "@angular/router";
import { NSLocationStrategy } from "nativescript-angular/router/ns-location-strategy";


@Component({
selector: "ns-app",
templateUrl: "app.component.html",
Expand Down
5 changes: 2 additions & 3 deletions e2e/router-tab-view/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ import { AppComponent } from "./app.component";

import { DataService } from "./data.service";

import { enable as traceEnable, addCategories } from "tns-core-modules/trace";
import { routerTraceCategory } from "nativescript-angular/trace";
import { enable as traceEnable } from "tns-core-modules/trace";

// addCategories(routerTraceCategory);
traceEnable();

class MyErrorHandler implements ErrorHandler {
export class MyErrorHandler implements ErrorHandler {
handleError(error) {
console.log("### ErrorHandler Error: " + error.toString());
console.log("### ErrorHandler Stack: " + error.stack);
Expand Down
2 changes: 1 addition & 1 deletion e2e/router-tab-view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@angular/platform-browser": "~8.2.0",
"@angular/platform-browser-dynamic": "~8.2.0",
"@angular/router": "~8.2.0",
"nativescript-angular": "file:../../nativescript-angular",
"nativescript-angular": "file:../../nativescript-angular-package",
"nativescript-theme-core": "~1.0.4",
"reflect-metadata": "~0.1.8",
"rxjs": "^6.4.0",
Expand Down
Loading