Skip to content

Commit

Permalink
release package version 3.0.0, which requires Angular9 and ng-bootstrap6
Browse files Browse the repository at this point in the history
  • Loading branch information
changhuixu committed Feb 22, 2020
1 parent 41fce37 commit 28a36f1
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ addons:

language: node_js
node_js:
- '12'
- node

branches:
only:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

An Angular library of Date Range Picker. Dependencies: Angular, ng-bootstrap, Bootstrap 4 (css)

Since **v3.0.0**, this library requires @angular/localize, due to updates in Angular 9 and ng-bootstrap 6.

[![Build Status](https://img.shields.io/travis/changhuixu/date-range-picker/master.svg?label=Travis%20CI&style=flat-square)](https://travis-ci.org/changhuixu/date-range-picker)

[![npm](https://img.shields.io/npm/v/@uiowa/date-range-picker.svg?style=flat-square)](https://www.npmjs.com/package/@uiowa/date-range-picker)
Expand Down
9 changes: 3 additions & 6 deletions 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"start": "ng serve",
"build": "ng build",
"build:prod": "ng build --prod",
"build:lib": "ng build @uiowa/date-range-picker",
"build:lib": "ng build @uiowa/date-range-picker --prod",
"test": "ng test",
"test:lib": "ng test @uiowa/date-range-picker --watch=false --code-coverage",
"lint": "ng lint",
Expand All @@ -24,7 +24,7 @@
"@angular/platform-browser-dynamic": "~9.0.2",
"@angular/router": "~9.0.2",
"@ng-bootstrap/ng-bootstrap": "^6.0.0",
"@uiowa/date-range-picker": "^2.1.0",
"@uiowa/date-range-picker": "^3.0.0",
"bootstrap": "^4.4.1",
"rxjs": "~6.4.0",
"tslib": "^1.10.0",
Expand Down
7 changes: 6 additions & 1 deletion projects/uiowa/date-range-picker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

An Angular library of Date Range Picker. Dependencies: Angular, ng-bootstrap, Bootstrap 4 (css)

Since **v3.0.0**, this library requires @angular/localize, due to updates in Angular 9 and ng-bootstrap 6.

[![Build Status](https://img.shields.io/travis/changhuixu/date-range-picker/master.svg?label=Travis%20CI&style=flat-square)](https://travis-ci.org/changhuixu/date-range-picker)
[![npm](https://img.shields.io/npm/v/@uiowa/date-range-picker.svg?style=flat-square)](https://www.npmjs.com/package/@uiowa/date-range-picker)

Expand Down Expand Up @@ -44,7 +46,10 @@ import { DateRangePickerModule } from '@uiowa/date-range-picker';

```html
// in your component.html
<date-range-picker [(dateRange)]="dateRange" [maxDate]="maxDate"></date-range-picker>
<date-range-picker
[(dateRange)]="dateRange"
[maxDate]="maxDate"
></date-range-picker>
<date-picker [(date)]="date"></date-picker>
```

Expand Down
9 changes: 5 additions & 4 deletions projects/uiowa/date-range-picker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uiowa/date-range-picker",
"version": "2.1.0",
"version": "3.0.0",
"author": "Changhui Xu <[email protected]>",
"contributors": [
"Jacob Feuerbach <[email protected]>"
Expand All @@ -18,8 +18,9 @@
},
"license": "MIT",
"peerDependencies": {
"@angular/common": ">=8.0.0",
"@angular/core": ">=8.0.0",
"@ng-bootstrap/ng-bootstrap": ">=4.0.0"
"@angular/common": ">=9.0.0",
"@angular/core": ">=9.0.0",
"@angular/localize": ">=9.0.0",
"@ng-bootstrap/ng-bootstrap": ">=6.0.0"
}
}
19 changes: 3 additions & 16 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,11 @@
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2018",
"dom"
],
"paths": {
"@uiowa/date-range-picker": [
"dist/uiowa/date-range-picker"
],
"@uiowa/date-range-picker/*": [
"dist/uiowa/date-range-picker/*"
]
}
"typeRoots": ["node_modules/@types"],
"lib": ["es2018", "dom"]
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true
}
}
}

0 comments on commit 28a36f1

Please sign in to comment.