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

level-supports

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

level-supports - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

8

CHANGELOG.md
# Changelog
## [2.1.0] - 2021-10-27
### Changed
- Allow `manifest.encodings` to be an object ([`284e0db`](https://github.com/Level/supports/commit/284e0db)) (Vincent Weevers)
## [2.0.2] - 2021-10-09

@@ -42,2 +48,4 @@

[2.1.0]: https://github.com/Level/supports/releases/tag/v2.1.0
[2.0.2]: https://github.com/Level/supports/releases/tag/v2.0.2

@@ -44,0 +52,0 @@

2

index.js

@@ -34,3 +34,3 @@ 'use strict'

streams: manifest.streams || false,
encodings: manifest.encodings || false,
encodings: maybeObject(manifest.encodings),
events: maybeObject(manifest.events),

@@ -37,0 +37,0 @@

{
"name": "level-supports",
"version": "2.0.2",
"version": "2.1.0",
"description": "Create a manifest describing the abilities of a levelup or abstract-leveldown db",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -356,6 +356,16 @@ # level-supports

### `encodings` (boolean)
### `encodings` (boolean or object)
Do all relevant db methods take `keyEncoding` and `valueEncoding` options? If true, the db must use a default encoding of utf8 and all its operations must return strings rather than buffers by default.
Do all relevant db methods take `keyEncoding` and `valueEncoding` options? If truthy, the db must use a default encoding of utf8 and all its operations must return strings rather than buffers by default.
Support of individual encodings may also be indicated by adding their names as nested properties. For example:
```js
{
encodings: {
utf8: true
}
}
```
<details>

@@ -362,0 +372,0 @@ <summary>Support matrix</summary>

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