@stencil/store 2.0.8 → 2.0.10

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.
@@ -1,5 +1,5 @@
1
1
  import { ObservableMap } from './types';
2
- declare type Invocable<T> = T | (() => T);
2
+ type Invocable<T> = T | (() => T);
3
3
  export declare const createObservableMap: <T extends {
4
4
  [key: string]: any;
5
5
  }>(defaultState?: Invocable<T>, shouldUpdate?: (newV: any, oldValue: any, prop: keyof T) => boolean) => ObservableMap<T>;
package/dist/types.d.ts CHANGED
@@ -4,10 +4,10 @@ export interface Handlers<T> {
4
4
  reset: ResetEventHandler[];
5
5
  set: SetEventHandler<T>[];
6
6
  }
7
- export declare type SetEventHandler<StoreType> = (key: keyof StoreType, newValue: any, oldValue: any) => void;
8
- export declare type GetEventHandler<StoreType> = (key: keyof StoreType) => void;
9
- export declare type ResetEventHandler = () => void;
10
- export declare type DisposeEventHandler = () => void;
7
+ export type SetEventHandler<StoreType> = (key: keyof StoreType, newValue: any, oldValue: any) => void;
8
+ export type GetEventHandler<StoreType> = (key: keyof StoreType) => void;
9
+ export type ResetEventHandler = () => void;
10
+ export type DisposeEventHandler = () => void;
11
11
  export interface OnHandler<StoreType> {
12
12
  (eventName: 'set', callback: SetEventHandler<StoreType>): () => void;
13
13
  (eventName: 'get', callback: GetEventHandler<StoreType>): () => void;
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@stencil/store",
3
- "version": "2.0.8",
3
+ "version": "2.0.10",
4
4
  "description": "Store is a lightweight shared state library by the StencilJS core team. Implements a simple key/value map that efficiently re-renders components when necessary.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
8
+ "engines": {
9
+ "node": ">=12.0.0",
10
+ "npm": ">=6.0.0"
11
+ },
8
12
  "scripts": {
9
13
  "build": "rm -rf dist && tsc -p . && npm run rollup",
10
14
  "prettier": "npm run prettier.base -- --write",
@@ -34,23 +38,24 @@
34
38
  "@stencil/core": ">=2.0.0 || >=3.0.0 || >= 4.0.0-beta.0 || >= 4.0.0"
35
39
  },
36
40
  "devDependencies": {
37
- "@stencil/core": "^3.0.0",
38
- "@types/jest": "^28.1.1",
41
+ "@ionic/prettier-config": "^4.0.0",
42
+ "@stencil/core": "^4.0.0",
43
+ "@types/jest": "^29.0.0",
39
44
  "@types/node": "^20.2.0",
40
- "jest": "^28.1.1",
41
- "jest-cli": "^28.1.1",
42
- "np": "^7.4.0",
43
- "prettier": "^2.2.1",
45
+ "jest": "^29.0.0",
46
+ "np": "^8.0.4",
47
+ "prettier": "^3.0.0",
44
48
  "rollup": "^3.5.1",
45
- "ts-jest": "^28.0.4",
46
- "typescript": "^4.8.4"
49
+ "ts-jest": "^29.0.0",
50
+ "typescript": "~5.0.0"
47
51
  },
48
52
  "repository": {
49
53
  "type": "git",
50
54
  "url": "git://github.com/ionic-team/stencil-store.git"
51
55
  },
56
+ "prettier": "@ionic/prettier-config",
52
57
  "volta": {
53
- "node": "20.2.0",
54
- "npm": "9.6.6"
58
+ "node": "20.8.0",
59
+ "npm": "10.1.0"
55
60
  }
56
61
  }