Skip to content

Commit

Permalink
chore(release): version package (#35)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored May 31, 2024
1 parent e4a209e commit 1d407c6
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 68 deletions.
11 changes: 0 additions & 11 deletions .changeset/afraid-donuts-joke.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/clean-pigs-guess.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/famous-buckets-press.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/orange-windows-boil.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/swift-eagles-sit.md

This file was deleted.

19 changes: 0 additions & 19 deletions .changeset/thin-points-tickle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tough-donuts-join.md

This file was deleted.

52 changes: 52 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,57 @@
# storage-box

## 1.0.0

### Major Changes

- 789d49a: BREAKING: The exported paths of the package have changed for both `BrowserDriver` and `FsDriver`.

```diff
- import { BrowserDriver, FsDriver } from 'storage-box';
+ import { BrowserDriver } from 'storage-box/browser';
+ import { FsDriver } from 'storage-box/node';
```

- 789d49a: BREAKING: the `list` method has been renamed to `lgetall`
- ce4fd52: fix: Operation methods are now synchronous. The keyword `await` is no longer needed.

### Minor Changes

- 789d49a: feat: `createList` method to create an instance of a list

```typescript
import { Client } from 'storage-box';

const c = new Client();

const nl = c.createList<number>();
for (let i = 0; i < 10; i++) {
nl.push(i);
}
console.log(nl.range(0, 3));
```

- 789d49a: feat: Added `createHashMap` method to create an instance of a HashMap.

```typescript
import { Client } from 'storage-box';

const c = new Client();

interface Vertex {
x: number;
y: number;
}

const vhm = c.createHashMap<string, Vertex>();
vhm.set('a', { x: 1, y: 2 });
```

### Patch Changes

- 789d49a: fix: added `getall` to extract entry storage as a record/key-value object
- f4ede69: feat: added `pushex` and `exists` operations for list

## 0.3.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "storage-box",
"version": "1.0.0-canary.4",
"version": "1.0.0",
"description": "A memory-based key–value storage for javascript.",
"type": "module",
"main": "dist/index.cjs",
Expand Down

0 comments on commit 1d407c6

Please sign in to comment.