@praxisjs/concurrent 1.2.6 → 1.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @praxisjs/concurrent
2
2
 
3
+ ## 1.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [954e456]
8
+ - Updated dependencies [a0bf339]
9
+ - Updated dependencies [a0bf339]
10
+ - Updated dependencies [a8df1e1]
11
+ - @praxisjs/decorators@1.0.0
12
+
13
+ ## 1.2.7
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [9c7a165]
18
+ - @praxisjs/decorators@0.8.1
19
+
3
20
  ## 1.2.6
4
21
 
5
22
  ### Patch Changes
@@ -112,39 +129,31 @@
112
129
  - 3372878: Migrate all packages from functional APIs to a decorator-first design.
113
130
 
114
131
  **`@praxisjs/core`**
115
-
116
132
  - Added `Composable` abstract base class for building class-based composables
117
133
  - Removed `resource`, `createResource`, `Resource`, `ResourceStatus`, `ResourceOptions` from public exports — use `@Resource` from `@praxisjs/decorators` instead
118
134
 
119
135
  **`@praxisjs/motion`**
120
-
121
136
  - Replaced `useMotion`, `tween`, `spring`, `createTransition`, `Animate`, `easings`, `resolveEasing` with `@Tween` and `@Spring` decorators
122
137
 
123
138
  **`@praxisjs/di`**
124
-
125
139
  - Replaced `useService` and `createScope` with a `@Scope` decorator
126
140
  - Renamed exported type `Scope` to `ScopeType` to free the name for the new decorator
127
141
 
128
142
  **`@praxisjs/fsm`**
129
-
130
143
  - Removed `createMachine` — use the `@StateMachine` and `@Transition` decorators directly
131
144
 
132
145
  **`@praxisjs/router`**
133
-
134
146
  - Removed `createRouter`, `lazy`, `useRouter`, `useParams`, `useQuery`, `useLocation`
135
147
  - Added `@RouterConfig`, `@Lazy`, `@InjectRouter`, `@Params`, `@Query`, `@Location` decorators
136
148
 
137
149
  **`@praxisjs/store`**
138
-
139
150
  - Removed `createStore` — use the `@Store` and `@UseStore` decorators directly
140
151
 
141
152
  **`@praxisjs/composables`**
142
-
143
153
  - Replaced all `use*` composable functions with class-based composables extending `Composable`:
144
154
  `WindowSize`, `ScrollPosition`, `ElementSize`, `Intersection`, `Focus`, `MediaQuery`, `ColorScheme`, `Mouse`, `KeyCombo`, `Idle`, `Clipboard`, `Geolocation`, `TimeAgo`, `Pagination`
145
155
 
146
156
  **`@praxisjs/concurrent`**
147
-
148
157
  - Removed `task`, `queue`, `pool` and their instance types — use `@Task`, `@Queue`, `@Pool` decorators instead
149
158
 
150
159
  ### Patch Changes
@@ -180,7 +189,6 @@
180
189
  ### Minor Changes
181
190
 
182
191
  - bb0d4f8: **Refactor decorator system and component architecture across PraxisJS packages**
183
-
184
192
  - Replaced legacy decorator signatures (`constructor`, `target`, `propertyKey`, method descriptor) with the standard TC39 decorator context API (`ClassDecoratorContext`, `ClassFieldDecoratorContext`, `ClassMethodDecoratorContext`) across `@praxisjs/decorators`, `@praxisjs/store`, `@praxisjs/concurrent`, `@praxisjs/router`, `@praxisjs/motion`, `@praxisjs/di`, and `@praxisjs/fsm`.
185
193
  - Introduced `StatefulComponent` and `StatelessComponent` as the new base classes, replacing the deprecated `BaseComponent`/`Function Component` pattern, across `@praxisjs/core`, `@praxisjs/runtime`, `@praxisjs/devtools`, and templates.
186
194
  - Implemented core rendering functionality in `@praxisjs/runtime` (`mountChildren`, `mountComponent`, reactive scope management) and removed the deprecated `renderer.ts`.
@@ -21,8 +21,8 @@ export type PoolDecorated<T extends AnyAsyncFn> = ((...args: Parameters<T>) => R
21
21
  export type TaskOf<C, K extends keyof C> = C[K] extends AnyAsyncFn ? TaskDecorated<C[K]> : never;
22
22
  export type QueueOf<C, K extends keyof C> = C[K] extends AnyAsyncFn ? QueueDecorated<C[K]> : never;
23
23
  export type PoolOf<C, K extends keyof C> = C[K] extends AnyAsyncFn ? PoolDecorated<C[K]> : never;
24
- export declare function Task(methodName: string): (_value: undefined, context: ClassFieldDecoratorContext<object, unknown>) => void;
25
- export declare function Queue(methodName: string): (_value: undefined, context: ClassFieldDecoratorContext<object, unknown>) => void;
26
- export declare function Pool(methodName: string, concurrency?: number): (_value: undefined, context: ClassFieldDecoratorContext<object, unknown>) => void;
24
+ export declare function Task(methodName: string): <This extends object, Value = unknown>(_value: undefined, context: ClassFieldDecoratorContext<This, Value>) => void;
25
+ export declare function Queue(methodName: string): <This extends object, Value = unknown>(_value: undefined, context: ClassFieldDecoratorContext<This, Value>) => void;
26
+ export declare function Pool(methodName: string, concurrency?: number): <This extends object, Value = unknown>(_value: undefined, context: ClassFieldDecoratorContext<This, Value>) => void;
27
27
  export {};
28
28
  //# sourceMappingURL=decorators.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../src/decorators.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAOjD,KAAK,UAAU,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;AAI9D,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,UAAU,IAC5C,CAAC,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG;IAC5C,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC3B,KAAK,EAAE,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;IAC9B,UAAU,EAAE,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IACpD,SAAS,IAAI,IAAI,CAAC;CACnB,CAAC;AAEJ,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,UAAU,IAC7C,CAAC,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,C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,CAAC,GAAG;IAC5C,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC3B,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACzB,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC1B,KAAK,EAAE,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;CAC/B,CAAC;AAIJ,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IACrC,CAAC,CAAC,CAAC,CAAC,SAAS,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;AAExD,MAAM,MAAM,OAAO,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IACtC,CAAC,CAAC,CAAC,CAAC,SAAS,UAAU,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;AAEzD,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IACrC,CAAC,CAAC,CAAC,CAAC,SAAS,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;AAIxD,wBAAgB,IAAI,CAAC,UAAU,EAAE,MAAM,uHAYtC;AAID,wBAAgB,KAAK,CAAC,UAAU,EAAE,MAAM,uHAYvC;AAID,wBAAgB,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,SAAI,uHAYvD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@praxisjs/concurrent",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -14,8 +14,8 @@
14
14
  "typescript": "^5.9.3"
15
15
  },
16
16
  "dependencies": {
17
- "@praxisjs/decorators": "0.8.0",
18
17
  "@praxisjs/core": "1.5.0",
18
+ "@praxisjs/decorators": "1.0.0",
19
19
  "@praxisjs/shared": "0.2.0"
20
20
  },
21
21
  "scripts": {