Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gosh

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gosh - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

tags

46

CHANGELOG.md

@@ -10,6 +10,50 @@ # CHANGE LOG

----
## [In Git - targetting v4.0.0](https://github.com/mattwynne/gosh/compare/v3.1.0...master) (Not released)
## [In Git](https://github.com/mattwynne/gosh/compare/v4.1.0...master) (Not released)
### Added
* N/A
### Changed
* N/A
### Deprecated
* N/A
### Removed
* N/A
### Fixed
* N/A
## [4.1.0](https://github.com/mattwynne/gosh/compare/v4.0.0...v4.1.0)
### Added
* DocumentStore#empty for deleting everything. Useful for testing.
### Changed
* N/A
### Deprecated
* N/A
### Removed
* N/A
### Fixed
* N/A
## [v4.0.0](https://github.com/mattwynne/gosh/compare/v3.1.0...v4.0.0)
### Added
* DocumentStore#withIndexOfAll for indexing many-many relationships

@@ -16,0 +60,0 @@

@@ -66,2 +66,12 @@ 'use strict'

empty() {
for (const id of this._documents.keys()) {
for (const index of this._indices) {
index.deleteId(id)
}
this._documents.delete(id)
}
return this
}
withIndex(makeKey) {

@@ -68,0 +78,0 @@ return this._withExtraIndex(new MemoryIndex(doc => [makeKey(doc)]))

@@ -57,2 +57,9 @@ 'use strict'

})
it('can be emptied', () => {
const dave = { uid: 'abcdef123' }
const store = new DocumentStore(document => document.uid).put(dave).empty()
const actual = store.get({ uid: 'abcdef123' })
assert.equal(actual, null)
})
})

2

package.json
{
"name": "gosh",
"version": "4.0.0",
"version": "4.1.0",
"description": "Great Object Storage Hooray!",

@@ -5,0 +5,0 @@ "main": "lib/gosh.js",

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