@joist/observable 2.0.0-next.7 → 2.0.0-next.8

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.
Files changed (2) hide show
  1. package/README.md +6 -6
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -14,11 +14,11 @@ npm i @joist/observable
14
14
  ```TS
15
15
  import { observable, observer, OnChange, Changes } from '@joist/observable';
16
16
 
17
- @observable()
17
+ @observable
18
18
  class State implements OnChange {
19
19
  // Changes to these will trigger callback
20
- @observe() todos: string[] = [];
21
- @observe() userName?: string;
20
+ @observe todos: string[] = [];
21
+ @observe userName?: string;
22
22
 
23
23
  // changes to this will not
24
24
  someValue: boolean = false;
@@ -48,11 +48,11 @@ class StateChangeEvent extends Event {
48
48
  }
49
49
  }
50
50
 
51
- @observable()
51
+ @observable
52
52
  class State extends EventTarget implements OnChange {
53
53
  // Changes to these will trigger callback
54
- @observe() todos: string[] = [];
55
- @observe() userName?: string;
54
+ @observe todos: string[] = [];
55
+ @observe userName?: string;
56
56
 
57
57
  // changes to this will not
58
58
  someValue: boolean = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joist/observable",
3
- "version": "2.0.0-next.7",
3
+ "version": "2.0.0-next.8",
4
4
  "main": "./target/build/lib.js",
5
5
  "module": "./target/build/lib.js",
6
6
  "exports": {
@@ -34,5 +34,5 @@
34
34
  "test": "tsc -p tsconfig.test.json && wtr --config ../../wtr.config.mjs --port 8002",
35
35
  "build": "tsc -p tsconfig.build.json"
36
36
  },
37
- "gitHead": "48190a6eb436c5dcfd6f5b0b358e78d7722c577e"
37
+ "gitHead": "1212ee3fec6c88bed79dc5ff97076c088f91c852"
38
38
  }