@rimbu/multimap
Advanced tools
Comparing version 0.5.11 to 0.6.0
@@ -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; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
225766
4352
+ Added@rimbu/base@0.6.7(transitive)
+ Added@rimbu/collection-types@0.6.10.7.5(transitive)
+ Added@rimbu/common@0.6.10.7.5(transitive)
+ Added@rimbu/hashed@0.6.8(transitive)
+ Added@rimbu/list@0.7.5(transitive)
+ Added@rimbu/sorted@0.6.5(transitive)
+ Added@rimbu/stream@0.6.10.7.5(transitive)
+ Addedtslib@2.8.1(transitive)
- Removed@rimbu/base@0.5.9(transitive)
- Removed@rimbu/collection-types@0.5.11(transitive)
- Removed@rimbu/common@0.5.9(transitive)
- Removed@rimbu/hashed@0.5.11(transitive)
- Removed@rimbu/list@0.5.11(transitive)
- Removed@rimbu/sorted@0.5.11(transitive)
- Removed@rimbu/stream@0.5.11(transitive)
Updated@rimbu/base@^0.6.0
Updated@rimbu/common@^0.6.0
Updated@rimbu/hashed@^0.6.0
Updated@rimbu/sorted@^0.6.0
Updated@rimbu/stream@^0.6.0