lilact 0.2.3 → 0.3.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/dist/lilact.development.min.js +1 -1
- package/dist/lilact.development.min.js.map +1 -1
- package/dist/lilact.production.min.js +1 -1
- package/dist/lilact.production.min.js.map +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/functions/hooks.forwardRef.html +1 -1
- package/docs/functions/hooks.useImperativeHandle.html +1 -1
- package/docs/functions/redux.combineReducers.html +12 -0
- package/docs/functions/redux.connect.html +1 -1
- package/docs/functions/timers.animationFramePromise.html +1 -1
- package/docs/functions/timers.clearInterval.html +1 -1
- package/docs/functions/timers.clearTimeout.html +1 -1
- package/docs/functions/timers.grabTimers.html +1 -1
- package/docs/functions/timers.pauseTimers.html +1 -1
- package/docs/functions/timers.releaseTimers.html +1 -1
- package/docs/functions/timers.resetTimers.html +1 -1
- package/docs/functions/timers.resumeTimers.html +1 -1
- package/docs/functions/timers.setInterval.html +1 -1
- package/docs/functions/timers.setTimeout.html +1 -1
- package/docs/functions/timers.timeoutPromise.html +1 -1
- package/docs/modules/redux.html +1 -1
- package/docs/static/lilact.development.min.js +1 -1
- package/docs/static/lilact.production.min.js +1 -1
- package/package.json +1 -1
- package/root/lilact.development.min.js +1 -1
- package/root/lilact.production.min.js +1 -1
- package/src/hooks.jsx +1 -2
- package/src/lilact.jsx +3 -7
- package/src/redux.jsx +60 -55
- package/src/timers.jsx +7 -2
- package/webpack.config.js +1 -1
package/src/timers.jsx
CHANGED
|
@@ -38,11 +38,16 @@
|
|
|
38
38
|
/**
|
|
39
39
|
* Timer helpers for a promise-friendly timer framework.
|
|
40
40
|
*
|
|
41
|
-
* These functions keep the same call signatures as the standard JavaScript timer APIs where applicable
|
|
41
|
+
* These functions keep the same call signatures as the standard JavaScript timer APIs where applicable
|
|
42
|
+
* (`setTimeout`/`setInterval`/`clearTimeout`/`clearInterval`),
|
|
43
|
+
* but add extra capabilities for promise-friendly control and lifecycle management.
|
|
44
|
+
*
|
|
45
|
+
* This module can “grab” timers and later pause/resume/reset/release them, plus provide promise wrappers
|
|
46
|
+
* like `timeoutPromise` and `animationFramePromise`.
|
|
42
47
|
*
|
|
43
48
|
* - `setTimeout` / `setInterval`: schedule callbacks (same interface as the built-ins).
|
|
44
49
|
* - `clearTimeout` / `clearInterval`: cancel scheduled timers (same interface as the built-ins).
|
|
45
|
-
* - `grabTimers` / `pauseTimers` / `resumeTimers` / `resetTimers` / `releaseTimers`: manage tracked timers
|
|
50
|
+
* - `grabTimers` / `pauseTimers` / `resumeTimers` / `resetTimers` / `releaseTimers`: manage tracked timers.
|
|
46
51
|
* - `timeoutPromise` / `animationFramePromise`: promise-based convenience wrappers.
|
|
47
52
|
*/
|
|
48
53
|
|
package/webpack.config.js
CHANGED
|
@@ -56,7 +56,7 @@ export default (env, argv) => {
|
|
|
56
56
|
optimization: {
|
|
57
57
|
concatenateModules: true, // scope hoisting
|
|
58
58
|
moduleIds: 'deterministic', // smaller stable ids (or 'hashed')
|
|
59
|
-
minimize: true
|
|
59
|
+
minimize: true //mode === 'production',
|
|
60
60
|
},
|
|
61
61
|
experiments: {
|
|
62
62
|
outputModule: true // enable module output
|