New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@deckstar/final-form

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deckstar/final-form - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

3

dist/cjs/FinalForm.js

@@ -819,2 +819,5 @@ "use strict";

break;
case "initialStatus":
initialStatus = value;
break;
case "initialValues":

@@ -821,0 +824,0 @@ api.initialize(value);

20

dist/cjs/types.d.ts

@@ -29,10 +29,15 @@ import fieldSubscriptionItems from "./fieldSubscriptionItems";

export type StateBasedOnSubscription<State extends Partial<FormState | FieldState>, Subscription extends Partial<FormSubscription | FieldSubscription>, SubscribableType extends Partial<{
[key in keyof State]: any;
[Key in keyof State]: any;
}> = State> = Partial<State> & Pick<State, Exclude<keyof State, keyof SubscribableType>> & Required<Pick<State, keyof State & KeyOfTypeTest<Subscription, true>>>;
/** A key that can be subscribed to in a form. */
export type FormSubscriptionItem = ArrayElement<typeof formSubscriptionItems>;
type SubscribableFormState = Pick<FormState, FormSubscriptionItem>;
/** A subscription to all form state keys, i.e. with all keys marked `true`. */
export type FullFormSubscription = Record<FormSubscriptionItem, true>;
export type FullFormSubscription = {
[Key in keyof SubscribableFormState]: true;
};
/** The shape of an object that can be used to subscribe to the form state. */
export type FormSubscription = Partial<Record<FormSubscriptionItem, boolean>>;
export type FormSubscription = {
[Key in keyof SubscribableFormState]?: boolean;
};
/** The form state that is return depending on the `Subscription` used. */

@@ -356,6 +361,11 @@ export type FormStateBasedOnSubscription<FormValues extends FormValuesShape = FormValuesShape, Subscription extends FormSubscription = {}> = StateBasedOnSubscription<FormState<FormValues>, Subscription, FormSubscription>;

export type FieldSubscriptionItem = ArrayElement<typeof fieldSubscriptionItems>;
type SubscribableFieldState = Pick<FieldState, FieldSubscriptionItem>;
/** A subscription to all field state keys, i.e. with all keys marked `true`. */
export type FullFieldSubscription = Record<FieldSubscriptionItem, true>;
export type FullFieldSubscription = {
[Key in keyof SubscribableFieldState]: true;
};
/** The shape of an object that can be used to subscribe to a field state. */
export type FieldSubscription = Partial<Record<FieldSubscriptionItem, boolean>>;
export type FieldSubscription = {
[Key in keyof SubscribableFieldState]?: boolean;
};
/** The form state that is return depending on the `Subscription` used. */

@@ -362,0 +372,0 @@ export type FieldStateBasedOnSubscription<FieldValue = any, Subscription extends FieldSubscription = {}> = StateBasedOnSubscription<FieldState<FieldValue>, Subscription, FieldSubscription>;

@@ -813,2 +813,5 @@ /* eslint-disable @typescript-eslint/no-dynamic-delete */

break;
case "initialStatus":
initialStatus = value;
break;
case "initialValues":

@@ -815,0 +818,0 @@ api.initialize(value);

@@ -29,10 +29,15 @@ import fieldSubscriptionItems from "./fieldSubscriptionItems";

export type StateBasedOnSubscription<State extends Partial<FormState | FieldState>, Subscription extends Partial<FormSubscription | FieldSubscription>, SubscribableType extends Partial<{
[key in keyof State]: any;
[Key in keyof State]: any;
}> = State> = Partial<State> & Pick<State, Exclude<keyof State, keyof SubscribableType>> & Required<Pick<State, keyof State & KeyOfTypeTest<Subscription, true>>>;
/** A key that can be subscribed to in a form. */
export type FormSubscriptionItem = ArrayElement<typeof formSubscriptionItems>;
type SubscribableFormState = Pick<FormState, FormSubscriptionItem>;
/** A subscription to all form state keys, i.e. with all keys marked `true`. */
export type FullFormSubscription = Record<FormSubscriptionItem, true>;
export type FullFormSubscription = {
[Key in keyof SubscribableFormState]: true;
};
/** The shape of an object that can be used to subscribe to the form state. */
export type FormSubscription = Partial<Record<FormSubscriptionItem, boolean>>;
export type FormSubscription = {
[Key in keyof SubscribableFormState]?: boolean;
};
/** The form state that is return depending on the `Subscription` used. */

@@ -356,6 +361,11 @@ export type FormStateBasedOnSubscription<FormValues extends FormValuesShape = FormValuesShape, Subscription extends FormSubscription = {}> = StateBasedOnSubscription<FormState<FormValues>, Subscription, FormSubscription>;

export type FieldSubscriptionItem = ArrayElement<typeof fieldSubscriptionItems>;
type SubscribableFieldState = Pick<FieldState, FieldSubscriptionItem>;
/** A subscription to all field state keys, i.e. with all keys marked `true`. */
export type FullFieldSubscription = Record<FieldSubscriptionItem, true>;
export type FullFieldSubscription = {
[Key in keyof SubscribableFieldState]: true;
};
/** The shape of an object that can be used to subscribe to a field state. */
export type FieldSubscription = Partial<Record<FieldSubscriptionItem, boolean>>;
export type FieldSubscription = {
[Key in keyof SubscribableFieldState]?: boolean;
};
/** The form state that is return depending on the `Subscription` used. */

@@ -362,0 +372,0 @@ export type FieldStateBasedOnSubscription<FieldValue = any, Subscription extends FieldSubscription = {}> = StateBasedOnSubscription<FieldState<FieldValue>, Subscription, FieldSubscription>;

{
"name": "@deckstar/final-form",
"version": "1.0.9",
"version": "1.0.10",
"description": "🏁 Framework agnostic, high performance, subscription-based form state management",

@@ -26,3 +26,3 @@ "main": "dist/cjs",

"homepage": "https://github.com/deckstar/final-form-ts#readme",
"gitHead": "4be4827b5168a4cb36b9a7b019d27943dd5d85a1"
"gitHead": "8af52192175ff0ffea3fb6e0b359c0f1d94c1815"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc