@sapphire/result 3.0.0-pr-589.aa473f9.0 โ 3.0.0-pr-935.7da5c8bb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +69 -0
- package/README.md +3 -2
- package/dist/cjs/index.cjs +1947 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/{index.d.ts โ cjs/index.d.cts} +411 -358
- package/dist/esm/index.d.mts +1910 -0
- package/dist/esm/index.mjs +1938 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/iife/index.global.js +1952 -0
- package/dist/iife/index.global.js.map +1 -0
- package/package.json +28 -24
- package/dist/index.global.js +0 -660
- package/dist/index.global.js.map +0 -1
- package/dist/index.js +0 -657
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -650
- package/dist/index.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,75 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
# [@sapphire/result@2.7.3](https://github.com/sapphiredev/utilities/compare/@sapphire/result@2.7.2...@sapphire/result@2.7.3) - (2025-09-24)
|
|
6
|
+
|
|
7
|
+
## ๐ Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **deps:** Update all non-major dependencies ([636a5ee](https://github.com/sapphiredev/utilities/commit/636a5eed0939fd96a82213bf8459846aedd54037)) ([#897](https://github.com/sapphiredev/utilities/pull/897) by @renovate[bot])
|
|
10
|
+
- **deps:** Update all non-major dependencies ([4bc5591](https://github.com/sapphiredev/utilities/commit/4bc55911f95456a2caee10a3588c7b5f1542fb00)) ([#879](https://github.com/sapphiredev/utilities/pull/879) by @renovate[bot])
|
|
11
|
+
- **deps:** Update all non-major dependencies ([bc2f01c](https://github.com/sapphiredev/utilities/commit/bc2f01ce7d6932c9a0e02faa7cc081ecbae9640d)) ([#869](https://github.com/sapphiredev/utilities/pull/869) by @renovate[bot])
|
|
12
|
+
- Result value types losing types after mapping ([44fccf0](https://github.com/sapphiredev/utilities/commit/44fccf0029e31862a03d2097bb1585b3fc3df074)) ([#833](https://github.com/sapphiredev/utilities/pull/833) by @OfficialSirH)
|
|
13
|
+
|
|
14
|
+
## ๐ Documentation
|
|
15
|
+
|
|
16
|
+
- Update documentation link for usage examples ([e79994f](https://github.com/sapphiredev/utilities/commit/e79994f106295457df404565efdf785306fa5e98)) ([#883](https://github.com/sapphiredev/utilities/pull/883) by @favna)
|
|
17
|
+
|
|
18
|
+
# [@sapphire/result@2.7.1](https://github.com/sapphiredev/utilities/compare/@sapphire/result@2.7.0...@sapphire/result@2.7.1) - (2024-11-02)
|
|
19
|
+
|
|
20
|
+
## ๐ Bug Fixes
|
|
21
|
+
|
|
22
|
+
- **types:** Resolve regression ([a29026e](https://github.com/sapphiredev/utilities/commit/a29026e85a54bdfb36899c7b58ec1fc1e11987e8)) ([#827](https://github.com/sapphiredev/utilities/pull/827) by @kyranet)
|
|
23
|
+
|
|
24
|
+
# [@sapphire/result@2.7.0](https://github.com/sapphiredev/utilities/compare/@sapphire/result@2.6.6...@sapphire/result@2.7.0) - (2024-11-02)
|
|
25
|
+
|
|
26
|
+
## ๐ Bug Fixes
|
|
27
|
+
|
|
28
|
+
- Move browser imports ([100ffb0](https://github.com/sapphiredev/utilities/commit/100ffb0a2471bb9f74cc580d282d11059e1a0a68)) ([#826](https://github.com/sapphiredev/utilities/pull/826) by @kyranet)
|
|
29
|
+
- Resolve build errors ([809c41c](https://github.com/sapphiredev/utilities/commit/809c41cef869bb9095cd630a416981be6870e83a)) ([#806](https://github.com/sapphiredev/utilities/pull/806) by @kyranet)
|
|
30
|
+
- **deps:** Update all non-major dependencies ([083376a](https://github.com/sapphiredev/utilities/commit/083376aac55094dbeddb5194e8a8f0d794b8cceb)) ([#763](https://github.com/sapphiredev/utilities/pull/763) by @renovate[bot])
|
|
31
|
+
- **deps:** Update all non-major dependencies ([e7fdc5d](https://github.com/sapphiredev/utilities/commit/e7fdc5db3632a7f90292ef3978898da32730343a)) ([#752](https://github.com/sapphiredev/utilities/pull/752) by @renovate[bot])
|
|
32
|
+
|
|
33
|
+
## ๐ Documentation
|
|
34
|
+
|
|
35
|
+
- **result:** Update readme url for website ([804cc21](https://github.com/sapphiredev/utilities/commit/804cc21e4f71a528b36bcce7ed58d038d3e8ff87))
|
|
36
|
+
|
|
37
|
+
## ๐ Features
|
|
38
|
+
|
|
39
|
+
- **Option:** Add `isNoneOr` ([bb6c889](https://github.com/sapphiredev/utilities/commit/bb6c889127063e8e9eaa6d5808b4bd2fa38cbe92)) ([#824](https://github.com/sapphiredev/utilities/pull/824) by @kyranet)
|
|
40
|
+
- Rewrite `/result` ([4b7c3e6](https://github.com/sapphiredev/utilities/commit/4b7c3e6c354797a2f166a5b97cadd33f1a4a11ca)) ([#808](https://github.com/sapphiredev/utilities/pull/808) by @kyranet)
|
|
41
|
+
|
|
42
|
+
## ๐งช Testing
|
|
43
|
+
|
|
44
|
+
- **result:** Update test case ([5932a43](https://github.com/sapphiredev/utilities/commit/5932a4375a5b980a4ff91f744941c0463bbe0d66))
|
|
45
|
+
|
|
46
|
+
# [@sapphire/result@2.6.6](https://github.com/sapphiredev/utilities/compare/@sapphire/result@2.6.6...@sapphire/result@2.6.6) - (2024-01-19)
|
|
47
|
+
|
|
48
|
+
## ๐ Bug Fixes
|
|
49
|
+
|
|
50
|
+
- Fixed commonjs typings export mapping (#707) ([216ff02](https://github.com/sapphiredev/utilities/commit/216ff0260d63a9590357f9a5069f1ae2b34eaf5d))
|
|
51
|
+
|
|
52
|
+
# [@sapphire/result@2.6.5](https://github.com/sapphiredev/utilities/compare/@sapphire/result@2.6.5...@sapphire/result@2.6.5) - (2023-12-04)
|
|
53
|
+
|
|
54
|
+
## ๐ Bug Fixes
|
|
55
|
+
|
|
56
|
+
- **result:** Properly split CJS, ESM and IIFE ([1f8f52e](https://github.com/sapphiredev/utilities/commit/1f8f52efd78a76553bd3c0a516c4a629f098496e))
|
|
57
|
+
- Update export mapping for proper ESM/CJS split ([dd0cff8](https://github.com/sapphiredev/utilities/commit/dd0cff8e9b03a15812f25f7a1180501a92422629))
|
|
58
|
+
- **deps:** Update all non-major dependencies (#607) ([9cc8bd0](https://github.com/sapphiredev/utilities/commit/9cc8bd0d4b5d650deab2c913e6c3d713861bae28))
|
|
59
|
+
|
|
60
|
+
## ๐ Documentation
|
|
61
|
+
|
|
62
|
+
- **readme:** Add link to examples ([e33b5b9](https://github.com/sapphiredev/utilities/commit/e33b5b9408bf0f48f427291de5bd56bfc4250644))
|
|
63
|
+
|
|
64
|
+
## ๐งช Testing
|
|
65
|
+
|
|
66
|
+
- Update vitest to coverage v8 ([a4bc6e4](https://github.com/sapphiredev/utilities/commit/a4bc6e4f24ea60143a150ecc76fda6484f172ab9))
|
|
67
|
+
|
|
68
|
+
# [@sapphire/result@2.6.4](https://github.com/sapphiredev/utilities/compare/@sapphire/result@2.6.3...@sapphire/result@2.6.4) - (2023-05-12)
|
|
69
|
+
|
|
70
|
+
## ๐ Bug Fixes
|
|
71
|
+
|
|
72
|
+
- **result:** Remove unnecessary tslib import ([ec40daa](https://github.com/sapphiredev/utilities/commit/ec40daa55fce58202f06401bb1a8ee0414f28962))
|
|
73
|
+
|
|
5
74
|
# [@sapphire/result@2.6.3](https://github.com/sapphiredev/utilities/compare/@sapphire/result@2.6.2...@sapphire/result@2.6.3) - (2023-05-02)
|
|
6
75
|
|
|
7
76
|
## ๐ Refactor
|
package/README.md
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
**A TypeScript port of Nightly Rust's Result and Option structs**
|
|
8
8
|
|
|
9
9
|
[](https://github.com/sapphiredev/utilities/blob/main/LICENSE.md)
|
|
10
|
-
[](https://codecov.io/gh/sapphiredev/utilities)
|
|
11
10
|
[](https://bundlephobia.com/result?p=@sapphire/result)
|
|
12
11
|
[](https://www.npmjs.com/package/@sapphire/result)
|
|
13
12
|
|
|
@@ -35,7 +34,9 @@ npm install @sapphire/result
|
|
|
35
34
|
|
|
36
35
|
## Usage
|
|
37
36
|
|
|
38
|
-
**Note:** While this section uses `require`, the imports match 1:1 with ESM imports. For example `const { Result } = require('@sapphire/result')` equals `import { Result } from '@sapphire/result'`.
|
|
37
|
+
**Note 1:** While this section uses `require`, the imports match 1:1 with ESM imports. For example `const { Result } = require('@sapphire/result')` equals `import { Result } from '@sapphire/result'`.
|
|
38
|
+
|
|
39
|
+
**Note 2:** For more thorough examples check out the generated documentation on [our website here](https://www.sapphirejs.dev/docs/Documentation/api-utilities/@sapphire/result/)
|
|
39
40
|
|
|
40
41
|
### Wrapping synchronous `try-catch` blocks
|
|
41
42
|
|