@blueprint-ts/core 4.0.0-beta.1 → 4.0.0-beta.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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## v4.0.0-beta.2 - 2026-02-26 (beta)
2
+
3
+ # [4.0.0-beta.2](/compare/v4.0.0-beta.1...v4.0.0-beta.2) (2026-02-26)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Loosen typeing in FormDataFactory.ts fed4475
1
9
  ## v4.0.0-beta.1 - 2026-02-26 (beta)
2
10
 
3
11
  # [4.0.0-beta.1](/compare/v3.0.1...v4.0.0-beta.1) (2026-02-26)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueprint-ts/core",
3
- "version": "4.0.0-beta.1",
3
+ "version": "4.0.0-beta.2",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -3,10 +3,13 @@ import { type BodyFactoryContract } from '../contracts/BodyFactoryContract'
3
3
  import { type BodyContract } from '../contracts/BodyContract'
4
4
 
5
5
  type FormDataPrimitive = string | number | boolean | null | Date | Blob
6
- type FormDataValue = FormDataPrimitive | FormDataValue[] | { [key: string]: FormDataValue }
6
+
7
+ export type FormDataValue = FormDataPrimitive | FormDataValue[] | { [key: string]: FormDataValue }
7
8
 
8
9
  export class FormDataFactory<
9
- RequestBodyInterface extends Record<string, FormDataValue | undefined>
10
+ RequestBodyInterface extends {
11
+ [K in keyof RequestBodyInterface]: FormDataValue | undefined
12
+ }
10
13
  > implements BodyFactoryContract<RequestBodyInterface> {
11
14
  public make(body: RequestBodyInterface): BodyContract {
12
15
  return new FormDataBody<RequestBodyInterface>(body)