shablon 0.0.1-rc.1 → 0.0.1-rc.2

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/README.md CHANGED
@@ -112,10 +112,8 @@ You can find the bundle file at [`dist/shablon.iife.js`](https://github.com/gani
112
112
 
113
113
  #### ES module (browsers and npm)
114
114
 
115
- Alternatively, you can load the package as ES module by using the [`dist/shablon.es.js`](https://github.com/ganigeorgiev/shablon/blob/master/dist/shablon.es.js) file.
116
-
117
- <!-- Alternatively, you can load the package as ES module either by using the [`dist/shablon.es.js`](https://github.com/ganigeorgiev/shablon/blob/master/dist/shablon.es.js) file or
118
- importing it from [npm](https://www.npmjs.com/package/shablon). -->
115
+ Alternatively, you can load the package as ES module either by using the [`dist/shablon.es.js`](https://github.com/ganigeorgiev/shablon/blob/master/dist/shablon.es.js) file or
116
+ importing it from [npm](https://www.npmjs.com/package/shablon).
119
117
 
120
118
  - browsers:
121
119
  ```html
@@ -127,7 +125,7 @@ importing it from [npm](https://www.npmjs.com/package/shablon). -->
127
125
  ...
128
126
  </script>
129
127
  ```
130
- <!--
128
+
131
129
  - npm (`npm -i shablon`):
132
130
  ```js
133
131
  import { t, store, watch, router } from "shablon"
@@ -135,7 +133,7 @@ importing it from [npm](https://www.npmjs.com/package/shablon). -->
135
133
  const data = store({ count: 0 })
136
134
  ...
137
135
  ```
138
- -->
136
+
139
137
  ## API
140
138
  <details>
141
139
  <summary><strong id="api.store">store(obj)</strong></summary>
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.1-rc.1",
2
+ "version": "0.0.1-rc.2",
3
3
  "name": "shablon",
4
4
  "description": "No-build JavaScript framework for Single-page applications",
5
5
  "author": "Gani Georgiev",
package/src/state.js CHANGED
@@ -37,7 +37,7 @@ let onRemoveSym = Symbol();
37
37
  */
38
38
  export function watch(callback) {
39
39
  let watcher = {
40
- [idSym]: "" + Math.random(),
40
+ [idSym]: "_" + Math.random(),
41
41
  };
42
42
 
43
43
  allWatchers.set(watcher[idSym], watcher);