@rimbu/table
Advanced tools
Comparing version 0.5.11 to 0.6.0
@@ -125,2 +125,5 @@ "use strict"; | ||
} | ||
TableNonEmpty.prototype.assumeNonEmpty = function () { | ||
return this; | ||
}; | ||
TableNonEmpty.prototype.asNormal = function () { | ||
@@ -127,0 +130,0 @@ return this; |
@@ -107,2 +107,5 @@ import { RimbuError, Token } from '@rimbu/base'; | ||
} | ||
assumeNonEmpty() { | ||
return this; | ||
} | ||
asNormal() { | ||
@@ -109,0 +112,0 @@ return this; |
@@ -5,4 +5,4 @@ import { Token } from '@rimbu/base'; | ||
import { Stream, StreamSource } from '@rimbu/stream'; | ||
import { Table } from '../internal'; | ||
import { TableBase } from '../table-custom'; | ||
import type { Table } from '../internal'; | ||
import type { TableBase } from '../table-custom'; | ||
export interface ContextImplTypes extends TableBase.Types { | ||
@@ -47,3 +47,3 @@ context: TableContext<this['_R'], this['_C'], string, this>; | ||
constructor(context: TpR['context'], rowMap: TpR['rowMapNonEmpty'], size: number); | ||
assumeNonEmpty: any; | ||
assumeNonEmpty(): any; | ||
asNormal(): any; | ||
@@ -50,0 +50,0 @@ copy(rowMap: TpR['rowMapNonEmpty'], size: number): TpR['nonEmpty']; |
@@ -1,5 +0,5 @@ | ||
import { Token } from '@rimbu/base'; | ||
import { CustomBase as CB, RMap, VariantMap } from '@rimbu/collection-types'; | ||
import { ArrayNonEmpty, OptLazy, OptLazyOr, RelatedTo, SuperOf, ToJSON, TraverseState, Update } from '@rimbu/common'; | ||
import { FastIterable, Stream, Streamable, StreamSource } from '@rimbu/stream'; | ||
import type { Token } from '@rimbu/base'; | ||
import type { CustomBase as CB, RMap, VariantMap } from '@rimbu/collection-types'; | ||
import type { ArrayNonEmpty, OptLazy, OptLazyOr, RelatedTo, SuperOf, ToJSON, TraverseState, Update } from '@rimbu/common'; | ||
import type { FastIterable, Stream, Streamable, StreamSource } from '@rimbu/stream'; | ||
export interface VariantTableBase<R, C, V, Tp extends VariantTableBase.Types = VariantTableBase.Types> extends FastIterable<[R, C, V]> { | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { RMap } from '@rimbu/collection-types'; | ||
import { Streamable } from '@rimbu/stream'; | ||
import type { RMap } from '@rimbu/collection-types'; | ||
import type { Streamable } from '@rimbu/stream'; | ||
import { TableBase } from '../../table-custom'; | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { Streamable } from '@rimbu/stream'; | ||
import { VariantTableBase } from '../../table-custom'; | ||
import type { Streamable } from '@rimbu/stream'; | ||
import type { VariantTableBase } from '../../table-custom'; | ||
/** | ||
@@ -4,0 +4,0 @@ * A type-variant immutable Table of row key type R, column key type C, and value type V. |
{ | ||
"name": "@rimbu/table", | ||
"version": "0.5.11", | ||
"version": "0.6.0", | ||
"description": "Immutable spreadsheet-like data structures containing row keys, column keys, and cell values", | ||
@@ -45,2 +45,3 @@ "keywords": [ | ||
"build": "yarn clean && yarn bundle", | ||
"build:deno": "rimraf deno_dist ../../deno_dist/table && denoify && cp ../../config/mod_ts_template deno_dist/mod.ts && mv deno_dist ../../deno_dist/table", | ||
"bundle": "yarn bundle:main && yarn bundle:module && yarn bundle:types", | ||
@@ -60,8 +61,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" | ||
}, | ||
@@ -71,3 +72,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> | ||
@@ -18,2 +18,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 | ||
@@ -37,5 +39,3 @@ | ||
{ | ||
// ... | ||
"compilerOptions": { | ||
// ... | ||
"skipLibCheck": true, | ||
@@ -42,0 +42,0 @@ "noStrictGenericChecks": true |
@@ -13,4 +13,4 @@ import { RimbuError, Token } from '@rimbu/base'; | ||
import { Stream, StreamSource } from '@rimbu/stream'; | ||
import { Table } from '../internal'; | ||
import { TableBase } from '../table-custom'; | ||
import type { Table } from '../internal'; | ||
import type { TableBase } from '../table-custom'; | ||
@@ -174,3 +174,5 @@ export interface ContextImplTypes extends TableBase.Types { | ||
assumeNonEmpty: any; | ||
assumeNonEmpty(): any { | ||
return this; | ||
} | ||
@@ -177,0 +179,0 @@ asNormal(): any { |
@@ -1,4 +0,8 @@ | ||
import { Token } from '@rimbu/base'; | ||
import { CustomBase as CB, RMap, VariantMap } from '@rimbu/collection-types'; | ||
import { | ||
import type { Token } from '@rimbu/base'; | ||
import type { | ||
CustomBase as CB, | ||
RMap, | ||
VariantMap, | ||
} from '@rimbu/collection-types'; | ||
import type { | ||
ArrayNonEmpty, | ||
@@ -13,3 +17,8 @@ OptLazy, | ||
} from '@rimbu/common'; | ||
import { FastIterable, Stream, Streamable, StreamSource } from '@rimbu/stream'; | ||
import type { | ||
FastIterable, | ||
Stream, | ||
Streamable, | ||
StreamSource, | ||
} from '@rimbu/stream'; | ||
@@ -528,4 +537,8 @@ export interface VariantTableBase< | ||
export namespace TableBase { | ||
type NonEmptyBase<R, C, V, Tp extends TableBase.Types> = | ||
VariantTableBase.NonEmpty<R, C, V, Tp> & TableBase<R, C, V, Tp>; | ||
type NonEmptyBase< | ||
R, | ||
C, | ||
V, | ||
Tp extends TableBase.Types | ||
> = VariantTableBase.NonEmpty<R, C, V, Tp> & TableBase<R, C, V, Tp>; | ||
@@ -532,0 +545,0 @@ export interface NonEmpty< |
@@ -1,3 +0,3 @@ | ||
import { RMap } from '@rimbu/collection-types'; | ||
import { Streamable } from '@rimbu/stream'; | ||
import type { RMap } from '@rimbu/collection-types'; | ||
import type { Streamable } from '@rimbu/stream'; | ||
import { TableBase, TableContext } from '../../table-custom'; | ||
@@ -4,0 +4,0 @@ |
@@ -1,3 +0,3 @@ | ||
import { Streamable } from '@rimbu/stream'; | ||
import { VariantTableBase } from '../../table-custom'; | ||
import type { Streamable } from '@rimbu/stream'; | ||
import type { VariantTableBase } from '../../table-custom'; | ||
@@ -4,0 +4,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
213644
4239
+ 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