Skip to content

Commit

Permalink
[ci] release (#39)
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] committed Jun 3, 2024
1 parent 2513e9b commit ccb5609
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 54 deletions.
52 changes: 0 additions & 52 deletions .changeset/cuddly-singers-wonder.md

This file was deleted.

7 changes: 7 additions & 0 deletions packages/cmp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @rslike/cmp

## 3.0.2

### Patch Changes

- Updated dependencies [2513e9b]
- @rslike/std@3.0.1

## 3.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cmp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rslike/cmp",
"version": "3.0.1",
"version": "3.0.2",
"description": "JavaScript Comparison package without undefined behavior!",
"private": false,
"main": "./dist/index.cjs",
Expand Down
53 changes: 53 additions & 0 deletions packages/std/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,58 @@
# @rslike/std

## 3.0.1

### Patch Changes

- 2513e9b: Adds promise-like API and security fixes

## What's new

Add primise-like API for `Option` and `Result`

`Result` uses `ok` and `err` for callbacks.

Example:

```ts
const result = new Result((ok, err) => {
if (true) ok(1);
err("Some Error");
});

result.unwrap(); // 1
```

`Option` uses `some` and `none` for callbacks.

**NOTE** `some(null)` and `some(undefined)` will be converted to `none` automatically since it nullable values.

Example:

```ts
const o = new Option((some, none) => {
some(undefined);
});
o.isNone(); // true
```

`Result` and `Option` now uses `withResolves` as `Promise` API.

Example:

```ts
const { ok, result, err } = Result.withResolvers();
ok(3);
result.unwrap(); // 3
```

### Security fixes

- [38](https://github.com/vitalics/rslike/pull/38) - fixes `@babel/traverse` package

## 3.0.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/std/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rslike/std",
"version": "3.0.0",
"version": "3.0.1",
"description": "JavaScript Standard library without udndefined behavior!",
"private": false,
"main": "./dist/index.cjs",
Expand Down

0 comments on commit ccb5609

Please sign in to comment.