radashi 12.1.0 → 12.2.0-beta.2c63f67
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/LICENSE.md +2 -1
- package/README.md +72 -8
- package/dist/index.cjs +1260 -0
- package/dist/index.d.cts +746 -0
- package/dist/index.d.ts +429 -365
- package/dist/index.js +1137 -0
- package/package.json +36 -38
- package/dist/cjs/array.cjs +0 -281
- package/dist/cjs/array.cjs.map +0 -1
- package/dist/cjs/async.cjs +0 -169
- package/dist/cjs/async.cjs.map +0 -1
- package/dist/cjs/curry.cjs +0 -113
- package/dist/cjs/curry.cjs.map +0 -1
- package/dist/cjs/index.cjs +0 -109
- package/dist/cjs/index.cjs.map +0 -1
- package/dist/cjs/number.cjs +0 -34
- package/dist/cjs/number.cjs.map +0 -1
- package/dist/cjs/object.cjs +0 -204
- package/dist/cjs/object.cjs.map +0 -1
- package/dist/cjs/random.cjs +0 -34
- package/dist/cjs/random.cjs.map +0 -1
- package/dist/cjs/series.cjs +0 -62
- package/dist/cjs/series.cjs.map +0 -1
- package/dist/cjs/string.cjs +0 -72
- package/dist/cjs/string.cjs.map +0 -1
- package/dist/cjs/typed.cjs +0 -104
- package/dist/cjs/typed.cjs.map +0 -1
- package/dist/esm/array.mjs +0 -251
- package/dist/esm/array.mjs.map +0 -1
- package/dist/esm/async.mjs +0 -158
- package/dist/esm/async.mjs.map +0 -1
- package/dist/esm/curry.mjs +0 -103
- package/dist/esm/curry.mjs.map +0 -1
- package/dist/esm/index.mjs +0 -10
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/number.mjs +0 -30
- package/dist/esm/number.mjs.map +0 -1
- package/dist/esm/object.mjs +0 -186
- package/dist/esm/object.mjs.map +0 -1
- package/dist/esm/random.mjs +0 -29
- package/dist/esm/random.mjs.map +0 -1
- package/dist/esm/series.mjs +0 -60
- package/dist/esm/series.mjs.map +0 -1
- package/dist/esm/string.mjs +0 -63
- package/dist/esm/string.mjs.map +0 -1
- package/dist/esm/typed.mjs +0 -90
- package/dist/esm/typed.mjs.map +0 -1
package/LICENSE.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
+
Copyright (c) 2024 Alec Larson
|
|
3
4
|
Copyright (c) 2022 radash
|
|
4
5
|
|
|
5
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -18,4 +19,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
19
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
20
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
21
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
22
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,33 +1,89 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Radashi
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<div align="center">
|
|
4
|
+
<p align="center">
|
|
5
|
+
<img src="https://github.com/radashi-org/radashi/raw/main/img/banner.png" alt="Radashi" width="100%" />
|
|
6
|
+
</p>
|
|
7
|
+
</div>
|
|
4
8
|
|
|
5
9
|
- **What is this?**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
Radashi, pronounced /raw-dash-ee/, is a modern, zero-dependency JavaScript utility toolkit built with TypeScript for type-safe, readable, and maintainable code. Radashi omits functions that have become obsolete in Lodash and introduces innovative tools for improved error handling, asynchronous operations, and data manipulation. With a focus on readability and maintainability, Radashi ensures that its source code is easy to understand and use, making it simple for developers to copy individual functions directly from GitHub if needed. Radashi is the go-to toolkit for cleaner, more efficient code in today's JavaScript ecosystem.
|
|
11
|
+
|
|
12
|
+
- **Is this related to Radash?**
|
|
13
|
+
Yes! This is a fork of the renowned [`radash`](https://github.com/sodiray/radash) library by Ray Epps [@sodiray](https://github.com/sodiray). This fork aims to be a more consistently maintained version of the library, with bug fixes and improvements.
|
|
14
|
+
|
|
15
|
+
- **Is there official documentation?**
|
|
16
|
+
Currently, there is no documentation beyond this page. I will get to it eventually, but for now, you can refer to the original `radash` documentation.
|
|
17
|
+
|
|
18
|
+
<a href="https://radash-docs.vercel.app">
|
|
19
|
+
<img src="https://github.com/radashi-org/radashi/raw/main/img/docs-button.png" alt="Radash documentation" width="250px" />
|
|
20
|
+
</a>
|
|
21
|
+
|
|
22
|
+
- **Are my contributions welcome?**
|
|
23
|
+
Yes! Pull requests are encouraged, but please keep them small and focused. Sweeping changes are discouraged and won't be merged (unless the rationale's been thoroughly discussed).
|
|
24
|
+
|
|
25
|
+
Please review _“The ethos of Radashi”_ before submitting a pull request:
|
|
26
|
+
|
|
27
|
+
<a href="https://github.com/orgs/radashi-org/discussions/20">
|
|
28
|
+
<img src="https://github.com/radashi-org/radashi/raw/main/img/ethos-button.png" alt="The ethos of Radashi" width="250px" />
|
|
29
|
+
</a>
|
|
30
|
+
|
|
9
31
|
- **Can I help you maintain this?**
|
|
10
32
|
Yes! I'll add you as a contributor to the repository. You can review pull requests and even merge them. You can help with closing issues, too. Committing directly to the main branch is a privilege you can earn, as is publishing versions to NPM.
|
|
33
|
+
|
|
34
|
+
<a href="https://github.com/orgs/radashi-org/discussions/4">
|
|
35
|
+
<img src="https://github.com/radashi-org/radashi/raw/main/img/apply-button.png" alt="Apply to join the Radashi team" width="250px" />
|
|
36
|
+
</a>
|
|
37
|
+
|
|
11
38
|
- **Is backwards compatibility a goal?**
|
|
12
39
|
Yes! We want the transition from `radash` to this library to be smooth. We'll make sure to avoid breaking changes. If any are made, they will be clearly documented at the bottom of this page.
|
|
13
|
-
|
|
14
|
-
|
|
40
|
+
|
|
41
|
+
- **Automatic releases**
|
|
42
|
+
To ensure contributions are quickly rolled out, we have the following automatic processes:
|
|
43
|
+
|
|
44
|
+
- **Beta releases**
|
|
45
|
+
Whenever the `main` branch receives a fix or feature, a beta release is automatically published to NPM.
|
|
46
|
+
Installing `radashi@beta` will always fetch the latest beta release. Beta releases are always audited by the Radashi team.
|
|
47
|
+
|
|
48
|
+
- **Preview releases**
|
|
49
|
+
When the _owner of a PR_ comments `/publish` (and nothing more), the PR is published to NPM under a version like `1.0.0-pr123.f7a9c3b` (i.e. `<latest version>-pr<PR number>.<commit SHA>`) and a tag like `pr123`. This allows the community to use the changes in the PR without waiting for the PR to be merged.
|
|
50
|
+
|
|
51
|
+
- ⚠️ **Beware:** Preview releases are not audited by the Radashi team. Always look at their
|
|
52
|
+
changes in the PR to ensure no malicious code was introduced.
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
<img src="https://github.com/radashi-org/radashi/raw/main/img/rule.png" width="100%" />
|
|
15
57
|
|
|
16
58
|
## Install
|
|
17
59
|
|
|
18
60
|
```sh
|
|
19
61
|
pnpm add radashi
|
|
20
62
|
```
|
|
63
|
+
|
|
21
64
|
```sh
|
|
22
65
|
yarn add radashi
|
|
23
66
|
```
|
|
67
|
+
|
|
24
68
|
```sh
|
|
25
69
|
npm install radashi
|
|
26
70
|
```
|
|
27
71
|
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
<img src="https://github.com/radashi-org/radashi/raw/main/img/rule.png" width="100%" />
|
|
75
|
+
|
|
28
76
|
## Contributing
|
|
29
77
|
|
|
30
|
-
Contributions are welcome and appreciated! Check out the
|
|
78
|
+
Contributions are welcome and appreciated! Check out the contributing guide before you dive in:
|
|
79
|
+
|
|
80
|
+
<a href="https://github.com/radashi-org/radashi/blob/main/.github/contributing.md">
|
|
81
|
+
<img src="https://github.com/radashi-org/radashi/raw/main/img/contributing-button.png" alt="Contributing to Radashi" width="250px" />
|
|
82
|
+
</a>
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
<img src="https://github.com/radashi-org/radashi/raw/main/img/rule.png" width="100%" />
|
|
31
87
|
|
|
32
88
|
## Changelog
|
|
33
89
|
|
|
@@ -36,3 +92,11 @@ This section documents the changes between the original `radash` library and thi
|
|
|
36
92
|
### 12.1.0
|
|
37
93
|
|
|
38
94
|
- Initial release. No differences.
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
<div align="center">
|
|
99
|
+
<p align="center">
|
|
100
|
+
<img src="https://github.com/radashi-org/radashi/raw/main/img/footer.png" alt="Radashi" width="100%" />
|
|
101
|
+
</p>
|
|
102
|
+
</div>
|