@rimbu/collection-types
Advanced tools
Comparing version 0.9.9 to 0.9.10
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("./types"), exports); | ||
(0, tslib_1.__exportStar)(require("./base"), exports); | ||
tslib_1.__exportStar(require("./types"), exports); | ||
tslib_1.__exportStar(require("./base"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -15,4 +15,4 @@ "use strict"; | ||
var tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("@rimbu/collection-types/map"), exports); | ||
(0, tslib_1.__exportStar)(require("@rimbu/collection-types/set"), exports); | ||
tslib_1.__exportStar(require("@rimbu/collection-types/map"), exports); | ||
tslib_1.__exportStar(require("@rimbu/collection-types/set"), exports); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("../common"), exports); | ||
(0, tslib_1.__exportStar)(require("./interface"), exports); | ||
tslib_1.__exportStar(require("../common"), exports); | ||
tslib_1.__exportStar(require("./interface"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -90,3 +90,3 @@ "use strict"; | ||
return builder.buildMapValues(function (row, key) { | ||
return mergeFun.apply(void 0, (0, tslib_1.__spreadArray)([key], (0, tslib_1.__read)(row), false)); | ||
return mergeFun.apply(void 0, tslib_1.__spreadArray([key], tslib_1.__read(row), false)); | ||
}); | ||
@@ -100,3 +100,3 @@ }; | ||
} | ||
return _this.mergeAllWith.apply(_this, (0, tslib_1.__spreadArray)([], (0, tslib_1.__read)(sources), false))(fillValue, function (key) { | ||
return _this.mergeAllWith.apply(_this, tslib_1.__spreadArray([], tslib_1.__read(sources), false))(fillValue, function (key) { | ||
var values = []; | ||
@@ -162,3 +162,3 @@ for (var _i = 1; _i < arguments.length; _i++) { | ||
return builder.buildMapValues(function (row, key) { | ||
return mergeFun.apply(void 0, (0, tslib_1.__spreadArray)([key], (0, tslib_1.__read)(row), false)); | ||
return mergeFun.apply(void 0, tslib_1.__spreadArray([key], tslib_1.__read(row), false)); | ||
}); | ||
@@ -172,3 +172,3 @@ }; | ||
} | ||
return _this.mergeWith.apply(_this, (0, tslib_1.__spreadArray)([], (0, tslib_1.__read)(sources), false))(function (key) { | ||
return _this.mergeWith.apply(_this, tslib_1.__spreadArray([], tslib_1.__read(sources), false))(function (key) { | ||
var values = []; | ||
@@ -175,0 +175,0 @@ for (var _i = 1; _i < arguments.length; _i++) { |
@@ -10,4 +10,4 @@ "use strict"; | ||
var tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("./interface/variant"), exports); | ||
(0, tslib_1.__exportStar)(require("./interface/generic"), exports); | ||
tslib_1.__exportStar(require("./interface/variant"), exports); | ||
tslib_1.__exportStar(require("./interface/generic"), exports); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("../common"), exports); | ||
(0, tslib_1.__exportStar)(require("./interface/base"), exports); | ||
tslib_1.__exportStar(require("../common"), exports); | ||
tslib_1.__exportStar(require("./interface/base"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -10,4 +10,4 @@ "use strict"; | ||
var tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("./interface/variant"), exports); | ||
(0, tslib_1.__exportStar)(require("./interface/generic"), exports); | ||
tslib_1.__exportStar(require("./interface/variant"), exports); | ||
tslib_1.__exportStar(require("./interface/generic"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@rimbu/collection-types", | ||
"version": "0.9.9", | ||
"version": "0.9.10", | ||
"description": "Type definitions for the basic generic Rimbu collections", | ||
@@ -65,6 +65,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@rimbu/base": "^0.8.1", | ||
"@rimbu/common": "^0.9.1", | ||
"@rimbu/stream": "^0.10.9", | ||
"tslib": "^2.3.1" | ||
"@rimbu/base": "^0.8.2", | ||
"@rimbu/common": "^0.9.2", | ||
"@rimbu/stream": "^0.10.10", | ||
"tslib": "^2.4.0" | ||
}, | ||
@@ -78,3 +78,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "f44e1b43f07ac973555270806bbdde5f06400941" | ||
"gitHead": "33dd7ca935f19f513586834a2ce1b1f886352ae7" | ||
} |
@@ -9,3 +9,3 @@ <p align="center"> | ||
For complete documentation please visit the [Immutable Collections page](https://rimbu.org/docs/collections) _[Rimbu Docs](https://rimbu.org)_. | ||
For complete documentation please visit the [Immutable Collections page](https://rimbu.org/docs/collections) _[Rimbu Docs](https://rimbu.org)_, or directly see the _[Rimbu Collection Types API Docs](https://rimbu.org/api/rimbu/collection-types)_. | ||
@@ -30,26 +30,37 @@ Or [Try Out Rimbu](https://codesandbox.io/s/github/vitoke/rimbu-sandbox/tree/main?previewwindow=console&view=split&editorsize=65&moduleview=1&module=/src/index.ts) in CodeSandBox. | ||
Create a file called `rimbu.ts` and add the following: | ||
For Deno, the following approach is recommended: | ||
> ```ts | ||
> export * from 'https://deno.land/x/rimbu/collection-types/mod.ts'; | ||
> ``` | ||
In the root folder of your project, create or edit a file called `import_map.json` with the following contents (where you should replace `x.y.z` with the desired version of Rimbu): | ||
Or using a pinned version (`x.y.z`): | ||
```json | ||
{ | ||
"imports": { | ||
"@rimbu/": "https://deno.land/x/rimbu@x.y.z/" | ||
} | ||
} | ||
``` | ||
> ```ts | ||
> export * from 'https://deno.land/x/rimbu/collection-types@x.y.z/mod.ts'; | ||
> ``` | ||
**Note: The trailing slashes are important!** | ||
Then import what you need from `rimbu.ts`: | ||
In this way you can use relative imports from Rimbu in your code, like so: | ||
```ts | ||
import { VariantMap } from './rimbu.ts'; | ||
import { List } from '@rimbu/core/mod.ts'; | ||
import { HashMap } from '@rimbu/hashed/mod.ts'; | ||
``` | ||
Because Rimbu uses complex types, it's recommended to use the `--no-check` flag (your editor should already have checked your code) and to specify a `tsconfig.json` file with the settings described below. | ||
Note that for sub-packages, due to conversion limitations it is needed to import the `index.ts` instead of `mod.ts`, like so: | ||
Running your script then becomes: | ||
```ts | ||
import { HashMap } from '@rimbu/hashed/map/index.ts'; | ||
``` | ||
> `deno run --no-check --config tsconfig.json <your-script>.ts` | ||
To run your script (let's assume the entry point is in `src/main.ts`): | ||
`deno run --import-map import_map.json src/main.ts` | ||
Because Rimbu uses advanced types, this may slow down the type checking part when running your code. If you're able to rely on your code editor to provide type errors, you can skip the Deno type check using the `--no-check` flag: | ||
`deno run --import-map import_map.json --no-check src/main.ts` | ||
## Author | ||
@@ -65,3 +76,3 @@ | ||
<img src = "https://contrib.rocks/image?repo=vitoke/iternal"/> | ||
<img src = "https://contrib.rocks/image?repo=rimbu-org/rimbu"/> | ||
@@ -68,0 +79,0 @@ Made with [contributors-img](https://contrib.rocks). |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
195805
83
Updated@rimbu/base@^0.8.2
Updated@rimbu/common@^0.9.2
Updated@rimbu/stream@^0.10.10
Updatedtslib@^2.4.0