@slickgrid-universal/rxjs-observable 0.19.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -2
- package/README.md +56 -56
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,17 +3,54 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# [1.2.0](https://github.com/ghiscoding/slickgrid-universal/compare/v1.1.1...v1.2.0) (2022-01-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @slickgrid-universal/rxjs-observable
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.1.1](https://github.com/ghiscoding/slickgrid-universal/compare/v1.1.0...v1.1.1) (2021-12-11)
|
|
7
15
|
|
|
8
16
|
|
|
9
17
|
### Bug Fixes
|
|
10
18
|
|
|
11
|
-
* **build:**
|
|
19
|
+
* **build:** bump version manually bcoz of previous force push ([5e9a610](https://github.com/ghiscoding/slickgrid-universal/commit/5e9a610ad01d752673856591f9b5de73b0ece0e9))
|
|
20
|
+
|
|
21
|
+
|
|
12
22
|
|
|
13
23
|
|
|
14
24
|
|
|
25
|
+
# [1.1.0](https://github.com/ghiscoding/slickgrid-universal/compare/v0.19.2...v1.1.0) (2021-12-11)
|
|
15
26
|
|
|
27
|
+
**Note:** Version bump only for package @slickgrid-universal/rxjs-observable
|
|
16
28
|
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## [0.19.2](https://github.com/ghiscoding/slickgrid-universal/compare/v0.19.1...v0.19.2) (2021-11-19)
|
|
35
|
+
|
|
36
|
+
**Note:** Version bump only for package @slickgrid-universal/rxjs-observable
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## [0.19.1](https://github.com/ghiscoding/slickgrid-universal/compare/v0.19.0...v0.19.1) (2021-11-15)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Bug Fixes
|
|
47
|
+
|
|
48
|
+
* **build:** typo on script package name to rename ([76cee09](https://github.com/ghiscoding/slickgrid-universal/commit/76cee094f4ef771ebfdb79386c3e8577f89d397e))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
17
54
|
|
|
18
55
|
# [0.19.0](https://github.com/ghiscoding/slickgrid-universal/compare/v0.18.0...v0.19.0) (2021-10-28)
|
|
19
56
|
|
package/README.md
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
[](https://opensource.org/licenses/MIT)
|
|
2
|
-
[](http://www.typescriptlang.org/)
|
|
3
|
-
[](https://lerna.js.org/)
|
|
4
|
-
[](https://www.npmjs.com/package/@slickgrid-universal/rxjs-observable)
|
|
5
|
-
[](https://www.npmjs.com/package/@slickgrid-universal/rxjs-observable)
|
|
6
|
-
|
|
7
|
-
[](https://github.com/ghiscoding/slickgrid-universal/actions)
|
|
8
|
-
[](https://www.cypress.io/)
|
|
9
|
-
[](https://github.com/facebook/jest)
|
|
10
|
-
[](https://codecov.io/gh/ghiscoding/slickgrid-universal)
|
|
11
|
-
|
|
12
|
-
## RxJS Observable Service Wrapper
|
|
13
|
-
#### @slickgrid-universal/rxjs-observable
|
|
14
|
-
|
|
15
|
-
An RxJS Observable Service Wrapper to make it possible to use RxJS with Slickgrid-Universal (with a Backend Service like OData/GraphQL). By default any Backend Service will be using Promises unless we use this RxJS Observable package.
|
|
16
|
-
|
|
17
|
-
This package is simply a bridge, a facade, to make it possible to use RxJS without adding RxJS to the `@slickgrid-universal/common` list of dependencies, so RxJS is a dependency of this package without being a dependency of the common (core) package, This will avoid adding dependencies not everyone need and won't clutter the common package (the common package will simply use an empty interface, which won't do anything, without requiring to install RxJS at all. We
|
|
18
|
-
|
|
19
|
-
### Internal Dependencies
|
|
20
|
-
- [@slickgrid-universal/common](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/common)
|
|
21
|
-
|
|
22
|
-
### External Dependencies
|
|
23
|
-
- [RxJS 7+](https://github.com/ReactiveX/RxJS)
|
|
24
|
-
|
|
25
|
-
### Installation
|
|
26
|
-
Follow the instruction provided in the main [README](https://github.com/ghiscoding/slickgrid-universal#installation), you can see a demo by looking at the [GitHub Demo](https://ghiscoding.github.io/slickgrid-universal) page.
|
|
27
|
-
|
|
28
|
-
### Usage
|
|
29
|
-
In order to use the Service, you will need to register it in your grid options via the `registerExternalResources` as shown below and of course install RxJS itself (this package requires [RxJS 7](https://github.com/ReactiveX/RxJS)).
|
|
30
|
-
|
|
31
|
-
##### ViewModel
|
|
32
|
-
```ts
|
|
33
|
-
import { GridOdataService } from '@slickgrid-universal/odata';
|
|
34
|
-
import { RxJsResource } from '@slickgrid-universal/rxjs-observable';
|
|
35
|
-
|
|
36
|
-
export class MyExample {
|
|
37
|
-
gridOptions: GridOption;
|
|
38
|
-
|
|
39
|
-
initializeGrid {
|
|
40
|
-
this.gridOptions = {
|
|
41
|
-
// you will most probably use it with a Backend Service, for example with OData or GraphQL
|
|
42
|
-
backendServiceApi: {
|
|
43
|
-
service: new GridOdataService(),
|
|
44
|
-
preProcess: () => this.displaySpinner(true),
|
|
45
|
-
postProcess: () => this.displaySpinner(false),
|
|
46
|
-
|
|
47
|
-
// assuming your Http call is with an RxJS Observable
|
|
48
|
-
process: (query) => this.getAllCustomers$(query),
|
|
49
|
-
} as OdataServiceApi,
|
|
50
|
-
|
|
51
|
-
// ...
|
|
52
|
-
registerExternalResources: [new RxJsResource()],
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
```
|
|
1
|
+
[](https://opensource.org/licenses/MIT)
|
|
2
|
+
[](http://www.typescriptlang.org/)
|
|
3
|
+
[](https://lerna.js.org/)
|
|
4
|
+
[](https://www.npmjs.com/package/@slickgrid-universal/rxjs-observable)
|
|
5
|
+
[](https://www.npmjs.com/package/@slickgrid-universal/rxjs-observable)
|
|
6
|
+
|
|
7
|
+
[](https://github.com/ghiscoding/slickgrid-universal/actions)
|
|
8
|
+
[](https://www.cypress.io/)
|
|
9
|
+
[](https://github.com/facebook/jest)
|
|
10
|
+
[](https://codecov.io/gh/ghiscoding/slickgrid-universal)
|
|
11
|
+
|
|
12
|
+
## RxJS Observable Service Wrapper
|
|
13
|
+
#### @slickgrid-universal/rxjs-observable
|
|
14
|
+
|
|
15
|
+
An RxJS Observable Service Wrapper to make it possible to use RxJS with Slickgrid-Universal (with a Backend Service like OData/GraphQL). By default any Backend Service will be using Promises unless we use this RxJS Observable package.
|
|
16
|
+
|
|
17
|
+
This package is simply a bridge, a facade, to make it possible to use RxJS without adding RxJS to the `@slickgrid-universal/common` list of dependencies, so RxJS is a dependency of this package without being a dependency of the common (core) package, This will avoid adding dependencies not everyone need and won't clutter the common package (the common package will simply use an empty interface, which won't do anything, without requiring to install RxJS at all. We also have full unit tests coverage for all of that).
|
|
18
|
+
|
|
19
|
+
### Internal Dependencies
|
|
20
|
+
- [@slickgrid-universal/common](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/common)
|
|
21
|
+
|
|
22
|
+
### External Dependencies
|
|
23
|
+
- [RxJS 7+](https://github.com/ReactiveX/RxJS)
|
|
24
|
+
|
|
25
|
+
### Installation
|
|
26
|
+
Follow the instruction provided in the main [README](https://github.com/ghiscoding/slickgrid-universal#installation), you can see a demo by looking at the [GitHub Demo](https://ghiscoding.github.io/slickgrid-universal) page.
|
|
27
|
+
|
|
28
|
+
### Usage
|
|
29
|
+
In order to use the Service, you will need to register it in your grid options via the `registerExternalResources` as shown below and of course install RxJS itself (this package requires [RxJS 7](https://github.com/ReactiveX/RxJS)).
|
|
30
|
+
|
|
31
|
+
##### ViewModel
|
|
32
|
+
```ts
|
|
33
|
+
import { GridOdataService } from '@slickgrid-universal/odata';
|
|
34
|
+
import { RxJsResource } from '@slickgrid-universal/rxjs-observable';
|
|
35
|
+
|
|
36
|
+
export class MyExample {
|
|
37
|
+
gridOptions: GridOption;
|
|
38
|
+
|
|
39
|
+
initializeGrid {
|
|
40
|
+
this.gridOptions = {
|
|
41
|
+
// you will most probably use it with a Backend Service, for example with OData or GraphQL
|
|
42
|
+
backendServiceApi: {
|
|
43
|
+
service: new GridOdataService(),
|
|
44
|
+
preProcess: () => this.displaySpinner(true),
|
|
45
|
+
postProcess: () => this.displaySpinner(false),
|
|
46
|
+
|
|
47
|
+
// assuming your Http call is with an RxJS Observable
|
|
48
|
+
process: (query) => this.getAllCustomers$(query),
|
|
49
|
+
} as OdataServiceApi,
|
|
50
|
+
|
|
51
|
+
// ...
|
|
52
|
+
registerExternalResources: [new RxJsResource()],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slickgrid-universal/rxjs-observable",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "RxJS Observable Wrapper",
|
|
5
5
|
"main": "dist/commonjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"not dead"
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@slickgrid-universal/common": "^
|
|
51
|
-
"rxjs": "^7.
|
|
50
|
+
"@slickgrid-universal/common": "^1.2.0",
|
|
51
|
+
"rxjs": "^7.5.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"cross-env": "^7.0.3",
|
|
55
55
|
"npm-run-all": "^4.1.5",
|
|
56
56
|
"rimraf": "^3.0.2"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "af25eecf8994d5b6ec9eb13bfd266cba71c1cfcb"
|
|
59
59
|
}
|