Repository navigation
chore: version packages (rc) - #619
Merged
Merged
Conversation
github-actions
Bot
requested review from
hyesungoh and
mnxmnz
as code owners
November 26, 2026 06:00
hyesungoh
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to v1-base, this PR will be updated.
v1-baseis currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonv1-base.Releases
react-simplikit@1.0.0-rc.0
Major Changes
#549
4ee9b53Thanks @Antoliny0919! - Rename the useDoubleClick options click, doubleClick, and delay to onClick, onDoubleClick, and delayMs, respectively.Rename the initial value parameter of useList, useMap, and useSet from initialState to initialValue.
#552
d5a46beThanks @Antoliny0919! - Time-related options and parameters now includeMsin their names.These option keys are renamed, so existing calls need to be updated:
useDebouncedCallback:timeThreshold→debounceMsuseThrottledCallback:timeThreshold→throttleMsuseImpressionRef,ImpressionArea:timeThreshold→timeThresholdMsuseLongPress:delay→delayMsuseAvoidKeyboard:transitionDuration→transitionDurationMsThe positional
waitparameter ofuseDebounce,useDebouncedValue,useThrottleanduseThrottledValueis nowdebounceMs/throttleMs. Calls likeuseDebounce(fn, 300)keep working.#599
144948eThanks @Choi-Jung-Hyeon! -useScrollDirection,useVisualViewport,useNetworkStatus,usePageVisibilityanduseSafeAreaInsetno longer initialize state from browser APIs. The first client render now returns the same value as the server, and the browser value arrives after mount. Before, rendering the value caused a hydration mismatch.The first render changes in client-only apps too:
useScrollDirectionposition: 0useVisualViewportviewport: nulluseNetworkStatus{}usePageVisibility{ isVisible: true, visibilityState: 'visible' }useSafeAreaInset{ top: 0, bottom: 0, left: 0, right: 0 }#561
cf2626bThanks @hyesungoh! -subscribeKeyboardHeightnow defaultsimmediatetotrue, matchinguseKeyboardHeight. The callback runs once with the current keyboard height right after subscribing. Passimmediate: falseto keep the previous behavior.useKeyboardHeightanduseAvoidKeyboardare unaffected.#548
15aea8aThanks @Antoliny0919! - Replace theedgesoption inuseThrottleanduseThrottledCallbackwith optionalleadingandtrailingbooleans. Both default totrue, preserving the behavior when options are omitted.#532
78788e2Thanks @mnxmnz! -useBooleanState,useStorageStateanduseCounternow return[value, actions], matchinguseList,useMapanduseSet. The actions object keeps the same reference across renders.useTogglekeeps its[value, toggle]signature and now declares its return type, so React 18 consumers no longer see the React 19ActionDispatchtype.#564
1a0a491Thanks @hyesungoh! -useStorageStatenow types its state asTinstead ofSerializable<T>, sonullin a union andinterfacetypes are kept. With<string | null>, the state was typedstringand is nowstring | null.Without
serializeranddeserializer, the value is stored as JSON and is now checked all the way down. Setting a value with aDate,Map, class instance, function,NaNorInfinityanywhere in it throws with its path. Before, such a nested value was silently changed or dropped: aDatebecame a string, aMapbecame{},NaNbecamenull, and a function disappeared.defaultValueis checked on mount, even when storage already holds a value.serializeranddeserializermust be passed together. A lone one is a type error and is ignored at runtime. When both are passed, the value is not checked, so aDatedefault works, and the callback parameters are typed fromdefaultValue.refreshnow reads storage again without writing to it. Before, it wrote the current value back: an empty key gotdefaultValue, an unreadable value was replaced withdefaultValueor removed, and a function stored withserializeranddeserializerwas run as an updater. Callrefreshwhendeserializerchanges what it returns for the same stored string.#530
c6511efThanks @mnxmnz! -useIntervalanduseTimeoutnow take a single options object, with the callback asonTickandonTimeoutand the delay asdelayMs.useIntervalno longer accepts a bare number as its delay.#609
30b781dThanks @Choi-Jung-Hyeon! -useGeolocationnow restarts a watch started withstartTracking()whenenableHighAccuracy,maximumAgeortimeoutchanges, the same waymountBehavior: 'watch'already did. Before, the watch kept its original options untilstopTracking()andstartTracking()were called again. A stopped watch is not started again by an option change.Minor Changes
#545
9d16479Thanks @hyesungoh! - AdduseCallbackOnce, which runs a callback only once until itsdepschange and has the same signature and behavior asuseCallbackOncePerRender.useCallbackOncePerRenderis now deprecated in favor ofuseCallbackOnceand still works as an alias of it. The second example now listsuserIdin the effect's dependencies, because the returned function keeps the same reference and an effect keyed only on it does not run again whendepschange.#558
71c1a07Thanks @Antoliny0919! - AdduseDebouncedStateanduseThrottledState, which manage state and return debounced and throttled setters, respectively. Both hooks supportleadingandtrailingoptions and cancel pending updates on unmount or when timing options change.#546
83ae1a3Thanks @hyesungoh! - AddusePageVisibilityEffect, which runs a callback when the page visibility changes and pairs by name withusePageVisibility, which returns the same value as state.useVisibilityEventis deprecated in favor ofusePageVisibilityEffectand still works as before, since it is now the same function under its old name. This reverses the note from #435 thatuseVisibilityEventis no longer deprecated. It is deprecated again because of the rename, not because it is going away: it keeps working throughout v1 and may be removed in a later major version.Patch Changes
917b09bThanks @hyesungoh! - Rename the comparison parameter ofusePreviousandusePreservedReferencetoequalityFn, matchinguseControlledState.usePreviousnow compares withObject.isby default, so renderingNaNagain no longer overwrites the previous value, and a change between0and-0is detected.