@rimbu/base
Advanced tools
Comparing version 0.6.5 to 0.6.6
@@ -37,3 +37,3 @@ "use strict"; | ||
function forEach(array, f, state, reversed) { | ||
if (state === void 0) { state = common_1.TraverseState(); } | ||
if (state === void 0) { state = (0, common_1.TraverseState)(); } | ||
if (reversed === void 0) { reversed = false; } | ||
@@ -101,3 +101,3 @@ if (state.halted) | ||
var curValue = arr[index]; | ||
var newValue = common_1.Update(curValue, updater); | ||
var newValue = (0, common_1.Update)(curValue, updater); | ||
if (Object.is(newValue, curValue)) | ||
@@ -148,3 +148,3 @@ return arr; | ||
var clone = arr.slice(); | ||
clone.splice.apply(clone, tslib_1.__spreadArray([start, deleteCount], tslib_1.__read(items))); | ||
clone.splice.apply(clone, (0, tslib_1.__spreadArray)([start, deleteCount], (0, tslib_1.__read)(items), false)); | ||
return clone; | ||
@@ -151,0 +151,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./internal"), exports); | ||
(0, tslib_1.__exportStar)(require("./internal"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -5,6 +5,6 @@ "use strict"; | ||
var tslib_1 = require("tslib"); | ||
exports.Arr = tslib_1.__importStar(require("./arr")); | ||
exports.Entry = tslib_1.__importStar(require("./entry")); | ||
exports.RimbuError = tslib_1.__importStar(require("./rimbu-error")); | ||
tslib_1.__exportStar(require("./token"), exports); | ||
exports.Arr = (0, tslib_1.__importStar)(require("./arr")); | ||
exports.Entry = (0, tslib_1.__importStar)(require("./entry")); | ||
exports.RimbuError = (0, tslib_1.__importStar)(require("./rimbu-error")); | ||
(0, tslib_1.__exportStar)(require("./token"), exports); | ||
//# sourceMappingURL=internal.js.map |
@@ -7,3 +7,3 @@ "use strict"; | ||
var EmptyCollectionAssumedNonEmptyError = /** @class */ (function (_super) { | ||
tslib_1.__extends(EmptyCollectionAssumedNonEmptyError, _super); | ||
(0, tslib_1.__extends)(EmptyCollectionAssumedNonEmptyError, _super); | ||
function EmptyCollectionAssumedNonEmptyError() { | ||
@@ -16,3 +16,3 @@ return _super.call(this, 'empty collection was assumbed to be non-empty') || this; | ||
var ModifiedBuilderWhileLoopingOverItError = /** @class */ (function (_super) { | ||
tslib_1.__extends(ModifiedBuilderWhileLoopingOverItError, _super); | ||
(0, tslib_1.__extends)(ModifiedBuilderWhileLoopingOverItError, _super); | ||
function ModifiedBuilderWhileLoopingOverItError() { | ||
@@ -25,3 +25,3 @@ return _super.call(this, 'an attempt was made to modify a builder while looping over it') || this; | ||
var InvalidStateError = /** @class */ (function (_super) { | ||
tslib_1.__extends(InvalidStateError, _super); | ||
(0, tslib_1.__extends)(InvalidStateError, _super); | ||
function InvalidStateError() { | ||
@@ -34,3 +34,3 @@ return _super.call(this, "something happend that shouldn't happen, please consider creating an issue") || this; | ||
var InvalidUsageError = /** @class */ (function (_super) { | ||
tslib_1.__extends(InvalidUsageError, _super); | ||
(0, tslib_1.__extends)(InvalidUsageError, _super); | ||
function InvalidUsageError() { | ||
@@ -37,0 +37,0 @@ return _super !== null && _super.apply(this, arguments) || this; |
{ | ||
"name": "@rimbu/base", | ||
"version": "0.6.5", | ||
"version": "0.6.6", | ||
"description": "Utilities to implement Rimbu collections", | ||
@@ -54,4 +54,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@rimbu/common": "^0.7.3", | ||
"tslib": "^2.3.0" | ||
"@rimbu/common": "^0.7.4", | ||
"tslib": "^2.3.1" | ||
}, | ||
@@ -64,3 +64,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "f6fad673f48ce3d44d6b0f931c0182c8231526ca" | ||
"gitHead": "e509f9938fad6253702f6b78eb9f8e3b3a8f92ac" | ||
} |
@@ -15,2 +15,4 @@ <p align="center"> | ||
### Yarn/NPM | ||
> `yarn add @rimbu/base` | ||
@@ -20,6 +22,32 @@ | ||
> `npm install @rimbu/base` | ||
> `npm i @rimbu/base` | ||
### recommended tsconfig settings | ||
### Deno | ||
Create a file called `rimbu.ts` and add the following: | ||
> ```ts | ||
> export * from 'https://deno.land/x/rimbu/base/mod.ts'; | ||
> ``` | ||
Or using a pinned version (`x.y.z`): | ||
> ```ts | ||
> export * from 'https://deno.land/x/rimbu/base@x.y.z/mod.ts'; | ||
> ``` | ||
Then import what you need from `rimbu.ts`: | ||
```ts | ||
import { Arr } from './rimbu.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. | ||
Running your script then becomes: | ||
> `deno run --no-check --config tsconfig.json <your-script>.ts` | ||
## Recommended `tsconfig.json` settings | ||
Rimbu uses advanced and recursive typing, potentially making the TypeScript compiler quite slow in some cases, or causing infinite recursion. It is recommended to set the following values in the `tsconfig.json` file of your project: | ||
@@ -26,0 +54,0 @@ |
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
43824
94
Updated@rimbu/common@^0.7.4
Updatedtslib@^2.3.1