Skip to content

Commit 70012b9

Browse files
authored
Version 12 (#2)
* upgrade deps for angular 12 * update readme * update publish action * update tests
1 parent 5166a37 commit 70012b9

8 files changed

Lines changed: 81 additions & 352 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
node-version: 14
1616
registry-url: https://registry.npmjs.org/
1717
- name: create angular cli project
18-
run: npx @angular/cli@11 new build --skip-tests --minimal --routing --skip-git --strict false --style scss
18+
run: npx @angular/cli@12 new build --skip-tests --minimal --routing --skip-git --strict false --style scss
1919
- name: set analytics off
2020
working-directory: build
2121
run: npm run ng analytics off -- --global
@@ -28,15 +28,12 @@ jobs:
2828
- name: clone repository
2929
working-directory: build
3030
run: git clone https://github.com/themost-framework/angular.git projects/angular
31-
- name: install dependencies
32-
working-directory: build/projects/angular
33-
run: npm ci
3431
- name: install peer dependencies
3532
working-directory: build/projects/angular
3633
run: npx @themost/peers
3734
- name: build library
3835
working-directory: build
39-
run: npm run ng build angular -- --prod
36+
run: npm run ng build angular
4037
- name: publish library
4138
working-directory: build/dist/angular
4239
run: npm publish --access=public

README.md

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -19,45 +19,17 @@ Choose the version corresponding to your Angular version:
1919

2020
Angular | @themost/angular |
2121
--- | --- |
22+
12 | 12.x+
2223
11 | 11.x+
2324
6 | 6.x+
2425
5 | 2.x+
2526
2 to 4 | 2.x+
2627

27-
## Changelog
28-
29-
### 6.2.2 - 2019-04-15
30-
31-
#### Changed
32-
33-
- Stict date formats (e.g. 2019-01-20) are always treated as strings and are being excluded while parsing JSON HTTP responses.
34-
35-
### 6.2.1 - 2019-02-15
36-
37-
#### Changed
38-
- @themost/angular/client module has been deprecated.
39-
Exported members of @themost/angular/client are now explicitly exported from @themost/angular.
40-
e.g. replace
41-
42-
import { DATA_CONTEXT_CONFIG } from '@themost/angular/client';
43-
44-
with
45-
46-
import { DATA_CONTEXT_CONFIG } from '@themost/angular';
47-
48-
- @themost/angular/module module has been deprecated.
49-
Exported members of @themost/angular/module are now explicitly exported from @themost/angular.
50-
e.g. replace
51-
52-
import { MostModule } from '@themost/angular/module';
53-
54-
with
55-
56-
import { MostModule } from '@themost/angular';
57-
5828

5929
### Usage
6030

31+
Provide `DATA_CONTEXT_CONFIG` and set [`@themost-framework`](https://github.com/themost-framework) api server URI. Include `AngularDataContext` in application providers.
32+
6133
app.module.ts
6234

6335
import { NgModule } from '@angular/core';
@@ -73,10 +45,7 @@ app.module.ts
7345
providers: [
7446
{
7547
provide: DATA_CONTEXT_CONFIG, useValue: {
76-
base: 'http://localhost:3000/',
77-
options: {
78-
useMediaTypeExtensions: false
79-
}
48+
base: 'http://localhost:3000/'
8049
}
8150
},
8251
AngularDataContext

package-lock.json

Lines changed: 0 additions & 252 deletions
This file was deleted.

package.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"name": "@themost/angular",
3-
"version": "11.1.0",
3+
"version": "12.1.0",
44
"description": "MOST Web Framework client module for angular",
55
"main": "./bundles/themost-angular.umd.js",
6+
"scripts": {
7+
},
68
"peerDependencies": {
7-
"@angular/common": "^11.2.14",
8-
"@angular/core": "^11.2.14",
9-
"@angular/platform-browser": "^11.2.14",
10-
"@angular/platform-browser-dynamic": "^11.2.14",
9+
"@angular/common": "^12",
10+
"@angular/core": "^12",
11+
"@angular/platform-browser": "^12",
12+
"@angular/platform-browser-dynamic": "^12",
13+
"@themost/client": "^2.9.0",
14+
"@themost/xml": "^2.5.2",
1115
"core-js": "^3.21.1",
1216
"rxjs": "^6.6.0",
13-
"zone.js": "^0.11.3",
14-
"@themost/client": "^2.5.6",
15-
"@themost/xml": "^2.5.2"
16-
},
17-
"dependencies": {
17+
"zone.js": "^0.11.4"
1818
},
1919
"repository": {
2020
"type": "git",
@@ -25,5 +25,7 @@
2525
"bugs": {
2626
"url": "https://github.com/themost-framework/angular/issues"
2727
},
28-
"homepage": "https://github.com/themost-framework/angular#readme"
28+
"homepage": "https://github.com/themost-framework/angular#readme",
29+
"devDependencies": {
30+
}
2931
}

0 commit comments

Comments
 (0)