Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
object-history
Advanced tools
JavaScript Object history
For cloning, UltraDeepClone. For diff/apply, changeset.
Works in IE8 with es5-shim
. Perhaps IE7, as well.
Gives birth to instances
initial
{Object}: The initial history pointoptions
{Object}: Optional optionsvar History = require('object-history')
var initial = {foo: 'bar', name: 'victoria'}
var history = new History(initial)
limit
Optional. Provide a number of backwards history points to keep.
Older than this number will be forgotten and hopefully their allocated memory will be reclaimed.
Add a history point object
obj
{Object}: The history pointhistory.add({
foo: 'bar',
bar: 'foo'
})
Go back one history point](./lib/prototype/backward.js#L11)
Go forward one history point
returns
{Object}: "Current" history pointGet the "current" history point
returns
{Number}: Number of history points backwardsreturns
{Number}: Number of history points forwardCopyright © 2015 PolicyStat LLC
FAQs
Object History
The npm package object-history receives a total of 264 weekly downloads. As such, object-history popularity was classified as not popular.
We found that object-history demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.