@alwatr/flux 3.0.1
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/CHANGELOG.md +14 -0
- package/LICENSE +21 -0
- package/README.md +24 -0
- package/dist/main.cjs +3 -0
- package/dist/main.cjs.map +7 -0
- package/dist/main.d.ts +7 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.mjs +3 -0
- package/dist/main.mjs.map +7 -0
- package/package.json +76 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [3.0.1](https://github.com/Alwatr/flux/compare/v3.0.0...v3.0.1) (2024-09-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @alwatr/flux
|
|
9
|
+
|
|
10
|
+
## 3.0.0 (2024-09-17)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* Add Alwatr Flux package ([22c59e3](https://github.com/Alwatr/flux/commit/22c59e34aeda7a2d59654d59ec38354a124fedad)) by @
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 S. Ali Mihandoost
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Alwatr Flux - Elegant State Management and Event System
|
|
2
|
+
|
|
3
|
+
## Introduction
|
|
4
|
+
|
|
5
|
+
Alwatr Flux empowers your applications with elegant and powerful state management and event handling capabilities. Built on the observable design pattern, Flux provides a lightweight yet robust foundation for managing global signals and states.
|
|
6
|
+
|
|
7
|
+
**Key Features:**
|
|
8
|
+
|
|
9
|
+
- **Intuitive State Management:** Embrace Flux as an advanced alternative to Redux or Recoil, minus the complexities and unnecessary overhead. Each signal maintains its own value, offering seamless state control.
|
|
10
|
+
- **Finite-State Machines (FSM):** Leverage observables to gracefully manage invocations and state transitions within your finite-state machines.
|
|
11
|
+
- **Server Context Management:** Effortlessly handle server-side context with Flux's elegant context manager, ensuring optimal organization and control.
|
|
12
|
+
- ...
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
Refer to the individual package READMEs for comprehensive usage instructions and examples.
|
|
17
|
+
|
|
18
|
+
## Contributing
|
|
19
|
+
|
|
20
|
+
Contributions are welcome! Please consult the CONTRIBUTING guidelines for detailed information on how to get involved.
|
|
21
|
+
|
|
22
|
+
## License
|
|
23
|
+
|
|
24
|
+
[MIT](./LICENSE)
|
package/dist/main.cjs
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/* @alwatr/flux v3.0.1 */
|
|
2
|
+
"use strict";var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var t=(f,e,p,x)=>{if(e&&typeof e=="object"||typeof e=="function")for(let m of c(e))!d.call(f,m)&&m!==p&&a(f,m,{get:()=>e[m],enumerable:!(x=b(e,m))||x.enumerable});return f},r=(f,e,p)=>(t(f,e,"default"),p&&t(p,e,"default"));var g=f=>t(a({},"__esModule",{value:!0}),f);var o={};module.exports=g(o);r(o,require("@alwatr/context"),module.exports);r(o,require("@alwatr/fetch-state-machine"),module.exports);r(o,require("@alwatr/fsm"),module.exports);r(o,require("@alwatr/observable"),module.exports);r(o,require("@alwatr/remote-context"),module.exports);r(o,require("@alwatr/signal"),module.exports);0&&(module.exports={...require("@alwatr/context"),...require("@alwatr/fetch-state-machine"),...require("@alwatr/fsm"),...require("@alwatr/observable"),...require("@alwatr/remote-context"),...require("@alwatr/signal")});
|
|
3
|
+
//# sourceMappingURL=main.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/main.ts"],
|
|
4
|
+
"sourcesContent": ["export * from '@alwatr/context';\nexport * from '@alwatr/fetch-state-machine';\nexport * from '@alwatr/fsm';\nexport * from '@alwatr/observable';\nexport * from '@alwatr/remote-context';\nexport * from '@alwatr/signal';\n"],
|
|
5
|
+
"mappings": ";iaAAA,IAAAA,EAAA,kBAAAC,EAAAD,GAAAE,EAAAF,EAAc,2BAAd,gBACAE,EAAAF,EAAc,uCADd,gBAEAE,EAAAF,EAAc,uBAFd,gBAGAE,EAAAF,EAAc,8BAHd,gBAIAE,EAAAF,EAAc,kCAJd,gBAKAE,EAAAF,EAAc,0BALd",
|
|
6
|
+
"names": ["main_exports", "__toCommonJS", "__reExport"]
|
|
7
|
+
}
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC"}
|
package/dist/main.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/main.ts"],
|
|
4
|
+
"sourcesContent": ["export * from '@alwatr/context';\nexport * from '@alwatr/fetch-state-machine';\nexport * from '@alwatr/fsm';\nexport * from '@alwatr/observable';\nexport * from '@alwatr/remote-context';\nexport * from '@alwatr/signal';\n"],
|
|
5
|
+
"mappings": ";AAAA,WAAc,kBACd,WAAc,8BACd,WAAc,cACd,WAAc,qBACd,WAAc,yBACd,WAAc",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@alwatr/flux",
|
|
3
|
+
"version": "3.0.1",
|
|
4
|
+
"description": "Alwatr Flux empowers your applications with elegant and powerful state management and event handling capabilities. Built on the observable design pattern, Flux provides a lightweight yet robust foundation for managing global signals and states.",
|
|
5
|
+
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"signal",
|
|
8
|
+
"observable",
|
|
9
|
+
"typescript",
|
|
10
|
+
"esm",
|
|
11
|
+
"alwatr"
|
|
12
|
+
],
|
|
13
|
+
"type": "module",
|
|
14
|
+
"main": "./dist/main.cjs",
|
|
15
|
+
"module": "./dist/main.mjs",
|
|
16
|
+
"types": "./dist/main.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/main.d.ts",
|
|
20
|
+
"import": "./dist/main.mjs",
|
|
21
|
+
"require": "./dist/main.cjs"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"files": [
|
|
26
|
+
"**/*.{js,mjs,cjs,map,d.ts,html,md}",
|
|
27
|
+
"!demo/**/*"
|
|
28
|
+
],
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/Alwatr/flux",
|
|
35
|
+
"directory": "packages/signal"
|
|
36
|
+
},
|
|
37
|
+
"homepage": "https://github.com/Alwatr/flux/tree/next/packages/signal#readme",
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/Alwatr/flux/issues"
|
|
40
|
+
},
|
|
41
|
+
"prettier": "@alwatr/prettier-config",
|
|
42
|
+
"scripts": {
|
|
43
|
+
"b": "yarn run build",
|
|
44
|
+
"t": "yarn run test",
|
|
45
|
+
"w": "yarn run watch",
|
|
46
|
+
"c": "yarn run clean",
|
|
47
|
+
"cb": "yarn run clean && yarn run build",
|
|
48
|
+
"d": "yarn run build:es && yarn node --enable-source-maps --trace-warnings",
|
|
49
|
+
"build": "yarn run build:ts & yarn run build:es",
|
|
50
|
+
"build:es": "nano-build --preset=module",
|
|
51
|
+
"build:ts": "tsc --build",
|
|
52
|
+
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --enable-source-maps --experimental-vm-modules\" jest",
|
|
53
|
+
"watch": "yarn run watch:ts & yarn run watch:es",
|
|
54
|
+
"watch:es": "yarn run build:es --watch",
|
|
55
|
+
"watch:ts": "yarn run build:ts --watch --preserveWatchOutput",
|
|
56
|
+
"clean": "rm -rfv dist *.tsbuildinfo"
|
|
57
|
+
},
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"@alwatr/context": "^3.0.1",
|
|
60
|
+
"@alwatr/fetch-state-machine": "^3.0.1",
|
|
61
|
+
"@alwatr/fsm": "^3.0.1",
|
|
62
|
+
"@alwatr/observable": "^3.0.1",
|
|
63
|
+
"@alwatr/remote-context": "^3.0.1",
|
|
64
|
+
"@alwatr/signal": "^3.0.1"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@alwatr/nano-build": "^1.3.9",
|
|
68
|
+
"@alwatr/prettier-config": "^1.0.4",
|
|
69
|
+
"@alwatr/tsconfig-base": "^1.2.0",
|
|
70
|
+
"@alwatr/type-helper": "^1.2.6",
|
|
71
|
+
"@types/node": "^22.5.5",
|
|
72
|
+
"jest": "^29.7.0",
|
|
73
|
+
"typescript": "^5.6.2"
|
|
74
|
+
},
|
|
75
|
+
"gitHead": "fc8335b008ef2e268c0caa08990a886545f3ebcf"
|
|
76
|
+
}
|