Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #464 from retarsis/develop
Browse files Browse the repository at this point in the history
release: 4.3.0
  • Loading branch information
tarsisexistence authored Dec 6, 2020
2 parents 079b071 + ff86c60 commit 469435b
Show file tree
Hide file tree
Showing 28 changed files with 2,291 additions and 2,721 deletions.
3 changes: 0 additions & 3 deletions .hound.yml

This file was deleted.

1 change: 0 additions & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"*.{ts,js}": [
"prettier --write",
"tslint",
"git add"
]
}
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 4.3.0 2020-12-06

- Support Angular 11
- Deprecated preserveQueryParams
- Updated dependencies

# 4.2.2 2020-08-31

- Refactored internal utilities
Expand Down
22 changes: 2 additions & 20 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "package/tsconfig.lib.json",
"project": "package/ng-package.json"
Expand All @@ -26,16 +26,6 @@
"options": {
"configPath": "./configs/jest.config.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"package/tsconfig.lib.json",
"package/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
},
Expand Down Expand Up @@ -82,7 +72,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
Expand Down Expand Up @@ -122,19 +111,12 @@
"test": {
"builder": "@angular-builders/jest:run",
"options": {}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["example-app/tsconfig.app.json"],
"exclude": ["**/node_modules/**"]
}
}
}
}
},
"cli": {
"packageManager": "npm"
"packageManager": "yarn"
},
"defaultProject": "routeshub"
}
1 change: 0 additions & 1 deletion example-app/app/core/components/header/header.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// tslint:disable:max-line-length
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import {
Expand Down
6 changes: 3 additions & 3 deletions example-app/app/hub/app.hub.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// tslint:disable:max-line-length
import { ModuleWithProviders, NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';

Expand Down Expand Up @@ -64,8 +63,9 @@ export const routing: ModuleWithProviders<AppHub> = RouterModule.forRoot(
enableTracing: false,
initialNavigation: 'enabled',
onSameUrlNavigation: 'reload',
scrollPositionRestoration: 'top'
}
scrollPositionRestoration: 'top',
relativeLinkResolution: 'legacy'
}
);

/**
Expand Down
1 change: 0 additions & 1 deletion example-app/polyfills.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// tslint:disable:max-line-length
/**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
Expand Down
17 changes: 0 additions & 17 deletions example-app/tslint.json

This file was deleted.

68 changes: 32 additions & 36 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"start": "ng serve --port 3000",
"build": "ng build routeshub --prod",
"test": "ng test routeshub",
"lint": "ng lint routeshub",
"// - SNYK - //": "------------------------------",
"snyk:test": "snyk test",
"snyk:wizard": "snyk wizard",
Expand All @@ -30,46 +29,43 @@
"publication": "yarn publication:prepare && yarn publication:publish"
},
"dependencies": {
"@angular/animations": "10.0.14",
"@angular/common": "10.0.14",
"@angular/compiler": "10.0.14",
"@angular/core": "10.0.14",
"@angular/forms": "10.0.14",
"@angular/platform-browser": "10.0.14",
"@angular/platform-browser-dynamic": "10.0.14",
"@angular/router": "10.0.8",
"@angular/animations": "11.0.3",
"@angular/common": "11.0.3",
"@angular/compiler": "11.0.3",
"@angular/core": "11.0.3",
"@angular/forms": "11.0.3",
"@angular/platform-browser": "11.0.3",
"@angular/platform-browser-dynamic": "11.0.3",
"@angular/router": "11.0.3",
"hammerjs": "2.0.8",
"routeshub": "4.2.2",
"rxjs": "6.6.2",
"zone.js": "0.11.1"
"rxjs": "6.6.3",
"zone.js": "0.11.3"
},
"devDependencies": {
"@angular-builders/jest": "10.0.0",
"@angular-devkit/build-angular": "0.1000.8",
"@angular-devkit/build-ng-packagr": "0.1000.8",
"@angular/cli": "10.0.8",
"@angular/compiler-cli": "10.0.14",
"@angular/language-service": "10.0.14",
"@commitlint/cli": "9.1.2",
"@commitlint/config-conventional": "9.1.2",
"@types/jest": "26.0.10",
"@types/node": "14.0.27",
"all-contributors-cli": "6.17.2",
"codelyzer": "5.2.2",
"husky": "4.2.5",
"jest": "26.2.2",
"lint-staged": "10.2.13",
"ng-packagr": "10.1.0",
"prettier": "2.1.1",
"@angular-builders/jest": "10.0.1",
"@angular-devkit/build-angular": "0.1100.3",
"@angular/cli": "11.0.3",
"@angular/compiler-cli": "11.0.3",
"@angular/language-service": "11.0.3",
"@commitlint/cli": "11.0.0",
"@commitlint/config-conventional": "11.0.0",
"@types/jest": "26.0.16",
"@types/node": "14.14.10",
"@routerkit/core": "0.8.1",
"all-contributors-cli": "6.19.0",
"codelyzer": "6.0.1",
"husky": "4.3.4",
"jest": "26.6.3",
"lint-staged": "10.5.3",
"ng-packagr": "11.0.3",
"prettier": "2.2.1",
"protractor": "7.0.0",
"snyk": "1.369.3",
"ts-node": "8.10.1",
"snyk": "1.434.2",
"ts-node": "9.1.0",
"tsickle": "0.39.1",
"tslib": "2.0.1",
"tslint": "6.1.2",
"tslint-angular": "3.0.2",
"tslint-config-prettier": "1.18.0",
"typescript": "3.9.7",
"yarn": "1.22.5"
"tslib": "2.0.3",
"typescript": "4.0.5",
"yarn": "1.22.10"
}
}
2 changes: 1 addition & 1 deletion package/configs/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
globals: {
'ts-jest': {
tsConfig: `${__dirname}/../tsconfig.spec.json`
tsConfig: `${__dirname}/../tsconfig.test.json`
}
},
moduleNameMapper: {
Expand Down
10 changes: 5 additions & 5 deletions package/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "routeshub",
"description": "A route management library and pattern for Angular",
"version": "4.2.2",
"version": "4.3.0",
"author": "Max Tarsis (https://github.com/retarsis)",
"repository": {
"type": "git",
Expand All @@ -11,11 +11,11 @@
"bugs": "https://github.com/retarsis/routeshub/issues",
"license": "MIT",
"peerDependencies": {
"@angular/common": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0",
"@angular/core": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0",
"@angular/router": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0",
"@angular/common": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0",
"@angular/core": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0",
"@angular/router": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0",
"rxjs": ">=6.0.0 || ^5.6.0-forward-compat.4",
"tslib": "2.0.1"
"tslib": "~2.0.3"
},
"keywords": [
"angular",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// tslint:disable:max-line-length
import { Routes } from '@angular/router';
import { createRoot } from '../root.creator';
import { createFeature } from '../feature.creator';
import { PRIVATE_NOTES_KEY } from '../../constants';
import { connectFeatures, getRegisteredUnits, getUnit } from '../../functions';
import { createRoot } from './root.creator';
import { createFeature } from './feature.creator';
import { PRIVATE_NOTES_KEY } from '../constants';
import { connectFeatures, getRegisteredUnits, getUnit } from '../functions';

describe('createFeature', () => {
it('should create feature with one route', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Routes } from '@angular/router';
import { createNote } from '../note.creator';
import { createNote } from './note.creator';

// tslint:disable:max-line-length
describe('createNote', () => {
it('should create note with root and wildcard', () => {
const routes: Routes = [{ path: '' }, { path: '**' }];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Routes } from '@angular/router';
import { createRoot } from '../root.creator';
import { PRIVATE_NOTES_KEY } from '../../constants';
import { createRoot } from './root.creator';
import { PRIVATE_NOTES_KEY } from '../constants';

// tslint:disable:max-line-length
describe('createRoot', () => {
it('should create root', () => {
const routes: Routes = [{ path: '' }];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Routes } from '@angular/router';
import { createNote } from '../note.creator';
import { createUnit } from '../unit.creator';
import { Spot } from '../../interfaces/common.interfaces';
import { createNote } from './note.creator';
import { createUnit } from './unit.creator';
import { Spot } from '../interfaces/common.interfaces';

describe('createUnit', () => {
it('should create basic without parent', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// tslint:disable:max-classes-per-file
// tslint:disable:max-line-length
import { Routes } from '@angular/router';
import { Secluded } from '../secluded.decorator';
import { createFeature, createRoot } from '../../creators';
import { PRIVATE_NOTES_KEY } from '../../constants';
import { connectFeatures } from '../../functions/connect-features';
import { Secluded } from './secluded.decorator';
import { createFeature, createRoot } from '../creators';
import { PRIVATE_NOTES_KEY } from '../constants';
import { connectFeatures } from '../functions/connect-features';

describe('[decorators]: Secluded', () => {
describe('when create simple unit', () => {
Expand Down
1 change: 0 additions & 1 deletion package/src/decorators/secluded.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { privateNotesKey } from '../interfaces/common.interfaces';
* decorator which provides possibility
* to get units inside component
*/
// tslint:disable:variable-name
export function Secluded<T = any>(
arg: privateNotesKey
): (target: any, propertyKey: PropertyKey) => void {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Routes } from '@angular/router';
import { connectFeatures } from '../connect-features';
import { getRegisteredUnits, getUnit } from '../get-unit';
import { createFeature, createRoot } from '../../creators';
import { PRIVATE_NOTES_KEY } from '../../constants';
import { connectFeatures } from './connect-features';
import { getRegisteredUnits, getUnit } from './get-unit';
import { createFeature, createRoot } from '../creators';
import { PRIVATE_NOTES_KEY } from '../constants';

describe('connectFeatures', () => {
const appRoutes: Routes = [{ path: '' }, { path: 'map' }];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// tslint:disable:max-line-length
import { Routes } from '@angular/router';
import { getRegisteredUnits } from '../get-unit';
import { createFeature, createRoot } from '../../creators';
import { connectFeatures } from '../connect-features';
import { PRIVATE_NOTES_KEY } from '../../constants';
import { getRegisteredUnits } from './get-unit';
import { createFeature, createRoot } from '../creators';
import { connectFeatures } from './connect-features';
import { PRIVATE_NOTES_KEY } from '../constants';

describe('connectNearby', () => {
it('should contain root and nearby feature', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// tslint:disable:max-line-length
import { Routes } from '@angular/router';
import { forwardParams } from '../forward-params';
import { createRoot } from '../../creators/root.creator';
import { forwardParams } from './forward-params';
import { createRoot } from '../creators/root.creator';

describe('forwardParams', () => {
it('should return the same state', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Routes } from '@angular/router';
import { PRIVATE_NOTES_KEY } from '../../constants';
import { connectFeatures } from '../connect-features';
import { getRegisteredUnits, getUnit } from '../get-unit';
import { createFeature, createRoot } from '../../creators';
import { PRIVATE_NOTES_KEY } from '../constants';
import { connectFeatures } from './connect-features';
import { getRegisteredUnits, getUnit } from './get-unit';
import { createFeature, createRoot } from '../creators';

describe('[get-unit] Unit', () => {
const appRoutes: Routes = [{ path: '' }, { path: '**' }, { path: 'map' }];
Expand Down
6 changes: 0 additions & 6 deletions package/src/navigation/navigation-link.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,7 @@ export class NavigationLink {
this.link = getRouteLink(value);
}

@Input()
set preserveQueryParams(value: boolean) {
this.preserve = value;
}

public link: string[];
private preserve!: boolean;

constructor(
private router: Router,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// tslint:disable:max-line-length
import { Component } from '@angular/core';
import { Location } from '@angular/common';
import { RouterTestingModule } from '@angular/router/testing';
Expand All @@ -10,9 +9,9 @@ import {
TestBed,
tick
} from '@angular/core/testing';
import { getUnit } from '../../functions';
import { NavigationModule } from '../navigation.module';
import { createRoot } from '../../creators/root.creator';
import { getUnit } from '../functions';
import { NavigationModule } from './navigation.module';
import { createRoot } from '../creators/root.creator';

const APP_NOTES_KEY = Symbol();

Expand Down
Loading

0 comments on commit 469435b

Please sign in to comment.