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

@rimbu/multimap

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rimbu/multimap - npm Package Compare versions

Comparing version 0.5.11 to 0.6.0

3

dist/main/implementation/base.js

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

}
MultiMapNonEmpty.prototype.assumeNonEmpty = function () {
return this;
};
MultiMapNonEmpty.prototype.asNormal = function () {

@@ -112,0 +115,0 @@ return this;

@@ -92,2 +92,5 @@ import { RimbuError } from '@rimbu/base';

}
assumeNonEmpty() {
return this;
}
asNormal() {

@@ -94,0 +97,0 @@ return this;

6

dist/types/implementation/base.d.ts
import { CustomBase as CB, RMap, RSet } from '@rimbu/collection-types';
import { ArrayNonEmpty, OptLazy, RelatedTo, ToJSON, TraverseState } from '@rimbu/common';
import { Stream, StreamSource } from '@rimbu/stream';
import { MultiMap } from '../internal';
import { MultiMapBase } from '../multimap-custom';
import type { MultiMap } from '../internal';
import type { MultiMapBase } from '../multimap-custom';
export interface ContextImplTypes extends MultiMapBase.Types {

@@ -39,3 +39,3 @@ context: MultiMapContext<this['_K'], this['_V'], string, this>;

constructor(context: TpG['context'], keyMap: TpG['keyMapNonEmpty'], size: number);
assumeNonEmpty: any;
assumeNonEmpty(): any;
asNormal(): any;

@@ -42,0 +42,0 @@ copy(keyMap: TpG['keyMapNonEmpty'], size: number): TpG['nonEmpty'];

@@ -1,4 +0,4 @@

import { CustomBase as CB, RMap, RSet, VariantMap, VariantSet } from '@rimbu/collection-types';
import { ArrayNonEmpty, OptLazy, RelatedTo, ToJSON, TraverseState } from '@rimbu/common';
import { FastIterable, Stream, Streamable, StreamSource } from '@rimbu/stream';
import type { CustomBase as CB, RMap, RSet, VariantMap, VariantSet } from '@rimbu/collection-types';
import type { ArrayNonEmpty, OptLazy, RelatedTo, ToJSON, TraverseState } from '@rimbu/common';
import type { FastIterable, Stream, Streamable, StreamSource } from '@rimbu/stream';
export interface VariantMultiMapBase<K, V, Tp extends VariantMultiMapBase.Types = VariantMultiMapBase.Types> extends FastIterable<[K, V]> {

@@ -5,0 +5,0 @@ /**

@@ -1,3 +0,3 @@

import { RMap, RSet } from '@rimbu/collection-types';
import { Streamable } from '@rimbu/stream';
import type { RMap, RSet } from '@rimbu/collection-types';
import type { Streamable } from '@rimbu/stream';
import { MultiMapBase } from '../../multimap-custom';

@@ -4,0 +4,0 @@ /**

@@ -1,3 +0,3 @@

import { Streamable } from '@rimbu/stream';
import { VariantMultiMapBase } from '../../multimap-custom';
import type { Streamable } from '@rimbu/stream';
import type { VariantMultiMapBase } from '../../multimap-custom';
/**

@@ -4,0 +4,0 @@ * A type-variant immutable MultiMap of key type K, and value type V.

@@ -1,5 +0,5 @@

import { RSet } from '@rimbu/collection-types';
import { OmitStrong } from '@rimbu/common';
import type { RSet } from '@rimbu/collection-types';
import type { OmitStrong } from '@rimbu/common';
import { HashMap, HashSet } from '@rimbu/hashed';
import { Stream, Streamable } from '@rimbu/stream';
import type { Stream, Streamable } from '@rimbu/stream';
import { MultiMapBase } from '../../../multimap-custom';

@@ -6,0 +6,0 @@ /**

@@ -1,6 +0,6 @@

import { RSet } from '@rimbu/collection-types';
import { OmitStrong } from '@rimbu/common';
import type { RSet } from '@rimbu/collection-types';
import type { OmitStrong } from '@rimbu/common';
import { HashMap } from '@rimbu/hashed';
import { SortedSet } from '@rimbu/sorted';
import { Stream, Streamable } from '@rimbu/stream';
import type { Stream, Streamable } from '@rimbu/stream';
import { MultiMapBase } from '../../../multimap-custom';

@@ -7,0 +7,0 @@ /**

@@ -1,6 +0,6 @@

import { RSet } from '@rimbu/collection-types';
import { OmitStrong } from '@rimbu/common';
import type { RSet } from '@rimbu/collection-types';
import type { OmitStrong } from '@rimbu/common';
import { HashSet } from '@rimbu/hashed';
import { SortedMap } from '@rimbu/sorted';
import { Stream, Streamable } from '@rimbu/stream';
import type { Stream, Streamable } from '@rimbu/stream';
import { MultiMapBase } from '../../../multimap-custom';

@@ -7,0 +7,0 @@ /**

@@ -1,5 +0,5 @@

import { RSet } from '@rimbu/collection-types';
import { OmitStrong } from '@rimbu/common';
import type { RSet } from '@rimbu/collection-types';
import type { OmitStrong } from '@rimbu/common';
import { SortedMap, SortedSet } from '@rimbu/sorted';
import { Stream, Streamable } from '@rimbu/stream';
import type { Stream, Streamable } from '@rimbu/stream';
import { MultiMapBase } from '../../../multimap-custom';

@@ -6,0 +6,0 @@ /**

{
"name": "@rimbu/multimap",
"version": "0.5.11",
"version": "0.6.0",
"description": "An immutable Map where each key can have multiple values",

@@ -45,2 +45,3 @@ "keywords": [

"build": "yarn clean && yarn bundle",
"build:deno": "rimraf deno_dist ../../deno_dist/multimap && denoify && cp ../../config/mod_ts_template deno_dist/mod.ts && mv deno_dist ../../deno_dist/multimap",
"bundle": "yarn bundle:main && yarn bundle:module && yarn bundle:types",

@@ -62,8 +63,8 @@ "bundle:main": "tsc --p tsconfig.main.json",

"dependencies": {
"@rimbu/base": "^0.5.9",
"@rimbu/collection-types": "^0.5.11",
"@rimbu/common": "^0.5.9",
"@rimbu/hashed": "^0.5.11",
"@rimbu/sorted": "^0.5.11",
"@rimbu/stream": "^0.5.11"
"@rimbu/base": "^0.6.0",
"@rimbu/collection-types": "^0.6.0",
"@rimbu/common": "^0.6.0",
"@rimbu/hashed": "^0.6.0",
"@rimbu/sorted": "^0.6.0",
"@rimbu/stream": "^0.6.0"
},

@@ -73,3 +74,6 @@ "publishConfig": {

},
"gitHead": "0158eaad0dec4503e92cb308af952869d68faad5"
"denoify": {
"replacer": "../../config/denoify-rimbu-replacer.js"
},
"gitHead": "dbcaad0cb6b1e31ffa64ca2739b9ddb0fc178ebc"
}
<p align="center">
<img src="../../assets/rimbu_logo.svg" />
<img src="https://github.com/rimbu-org/rimbu/raw/main/assets/rimbu_logo.svg" />
</p>

@@ -22,2 +22,4 @@

Or [Try Me Out](https://codesandbox.io/s/rimbu-sandbox-d4tbk?previewwindow=console&view=split&editorsize=65&moduleview=1&module=/src/index.ts) in CodeSandBox.
## Installation

@@ -49,5 +51,3 @@

{
// ...
"compilerOptions": {
// ...
"skipLibCheck": true,

@@ -54,0 +54,0 @@ "noStrictGenericChecks": true

@@ -11,4 +11,4 @@ import { RimbuError } from '@rimbu/base';

import { Stream, StreamSource } from '@rimbu/stream';
import { MultiMap } from '../internal';
import { MultiMapBase } from '../multimap-custom';
import type { MultiMap } from '../internal';
import type { MultiMapBase } from '../multimap-custom';

@@ -147,3 +147,5 @@ export interface ContextImplTypes extends MultiMapBase.Types {

assumeNonEmpty: any;
assumeNonEmpty(): any {
return this;
}

@@ -150,0 +152,0 @@ asNormal(): any {

@@ -1,2 +0,2 @@

import {
import type {
CustomBase as CB,

@@ -8,3 +8,3 @@ RMap,

} from '@rimbu/collection-types';
import {
import type {
ArrayNonEmpty,

@@ -16,3 +16,8 @@ OptLazy,

} from '@rimbu/common';
import { FastIterable, Stream, Streamable, StreamSource } from '@rimbu/stream';
import type {
FastIterable,
Stream,
Streamable,
StreamSource,
} from '@rimbu/stream';

@@ -420,4 +425,7 @@ export interface VariantMultiMapBase<

export namespace MultiMapBase {
type NonEmptyBase<K, V, Tp extends MultiMapBase.Types> =
VariantMultiMapBase.NonEmpty<K, V, Tp> & MultiMapBase<K, V, Tp>;
type NonEmptyBase<
K,
V,
Tp extends MultiMapBase.Types
> = VariantMultiMapBase.NonEmpty<K, V, Tp> & MultiMapBase<K, V, Tp>;

@@ -424,0 +432,0 @@ export interface NonEmpty<

@@ -1,3 +0,3 @@

import { RMap, RSet } from '@rimbu/collection-types';
import { Streamable } from '@rimbu/stream';
import type { RMap, RSet } from '@rimbu/collection-types';
import type { Streamable } from '@rimbu/stream';
import { MultiMapBase, MultiMapContext } from '../../multimap-custom';

@@ -4,0 +4,0 @@

@@ -1,3 +0,3 @@

import { Streamable } from '@rimbu/stream';
import { VariantMultiMapBase } from '../../multimap-custom';
import type { Streamable } from '@rimbu/stream';
import type { VariantMultiMapBase } from '../../multimap-custom';

@@ -4,0 +4,0 @@ /**

@@ -1,5 +0,5 @@

import { RSet } from '@rimbu/collection-types';
import { OmitStrong } from '@rimbu/common';
import type { RSet } from '@rimbu/collection-types';
import type { OmitStrong } from '@rimbu/common';
import { HashMap, HashSet } from '@rimbu/hashed';
import { Stream, Streamable } from '@rimbu/stream';
import type { Stream, Streamable } from '@rimbu/stream';
import { MultiMapBase, MultiMapContext } from '../../../multimap-custom';

@@ -6,0 +6,0 @@

@@ -1,6 +0,6 @@

import { RSet } from '@rimbu/collection-types';
import { OmitStrong } from '@rimbu/common';
import type { RSet } from '@rimbu/collection-types';
import type { OmitStrong } from '@rimbu/common';
import { HashMap } from '@rimbu/hashed';
import { SortedSet } from '@rimbu/sorted';
import { Stream, Streamable } from '@rimbu/stream';
import type { Stream, Streamable } from '@rimbu/stream';
import { MultiMapBase, MultiMapContext } from '../../../multimap-custom';

@@ -7,0 +7,0 @@

@@ -1,6 +0,6 @@

import { RSet } from '@rimbu/collection-types';
import { OmitStrong } from '@rimbu/common';
import type { RSet } from '@rimbu/collection-types';
import type { OmitStrong } from '@rimbu/common';
import { HashSet } from '@rimbu/hashed';
import { SortedMap } from '@rimbu/sorted';
import { Stream, Streamable } from '@rimbu/stream';
import type { Stream, Streamable } from '@rimbu/stream';
import { MultiMapBase, MultiMapContext } from '../../../multimap-custom';

@@ -7,0 +7,0 @@

@@ -1,5 +0,5 @@

import { RSet } from '@rimbu/collection-types';
import { OmitStrong } from '@rimbu/common';
import type { RSet } from '@rimbu/collection-types';
import type { OmitStrong } from '@rimbu/common';
import { SortedMap, SortedSet } from '@rimbu/sorted';
import { Stream, Streamable } from '@rimbu/stream';
import type { Stream, Streamable } from '@rimbu/stream';
import { MultiMapBase, MultiMapContext } from '../../../multimap-custom';

@@ -6,0 +6,0 @@

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