Skip to content

Commit

Permalink
Merge d892472 into ea07e05
Browse files Browse the repository at this point in the history
  • Loading branch information
elie29 committed Mar 17, 2023
2 parents ea07e05 + d892472 commit ca39d6b
Show file tree
Hide file tree
Showing 7 changed files with 2,336 additions and 1,842 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/npm-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: build

on:
push:
branches: ['master', 'feature/*']
pull_request:
branches: ['master']

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependancies
run: npm install

- name: Build TSC
run: npm run tsc

- name: Test & covers
run: npm run coveralls

- name: Coveralls publish on 18.x only
if: matrix.node-version == '18.x'
uses: coverallsapp/github-action@v1
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

25 changes: 23 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,30 @@

All notable changes to this project will be documented in this file, in reverse chronological order by release.

## V1.1.0 - 2022-03-10
## V2.0.0 - 2023-03-17

### Added

## V1.1.0-alpha - 2022-03-08
- Nothing.

### Changed

- package.json updated and tested with node 12, 14, 16 and 18
- [#26](https://github.com/elie29/store/issues/26) [BC] RxJS 7.8.0 compliant

### Deprecated

- Nothing.

### Removed

- Nothing.

### Fixed

- Nothing.

## V1.1.0 - 2022-03-10

### Added

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Store Management

[![Build Status](https://travis-ci.org/elie29/store.svg?branch=master)](https://travis-ci.org/elie29/store)
[![Build Status](https://github.com/elie29/store/actions/workflows/npm-build.yml/badge.svg)](https://github.com/elie29/store/)
[![Coverage Status](https://coveralls.io/repos/github/elie29/store/badge.svg?branch=master)](https://coveralls.io/github/elie29/store?branch=master)
[![Open Source Love](https://badges.frapsoft.com/os/v3/open-source.svg?v=102)](https://github.com/elie29/store)

Expand Down Expand Up @@ -125,7 +125,7 @@ N.B.: By default, data passed or retrieved from the store is **NOT** deep cloned

The store management library depends on:

1. RxJS ^6.3
1. RxJS ^7.0

- BehaviorSubject, Observable
- distinctUntilChanged, map, pluck
Expand All @@ -134,9 +134,9 @@ The store management library depends on:

- cloneDeep

3. Typescript 3.6.5
3. Typescript 4.9.5

- store tested with angular 8
- store tested with angular

## Publish to npm repo

Expand Down
2 changes: 1 addition & 1 deletion dist/store.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export declare abstract class Store<S extends State> {
protected store$: BehaviorSubject<S>;
protected settings: StoreSettings;
constructor(defaultState: S, settings?: Partial<StoreSettings>);
readonly value: S;
get value(): S;
select<K extends keyof S>(key: K): Observable<S[K]>;
watch(): Observable<S>;
get<K extends keyof S>(key: K): S[K];
Expand Down
Loading

0 comments on commit ca39d6b

Please sign in to comment.