radashi 12.2.0-beta.cd4d01e → 12.2.0-beta.cf2d48e
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 +1 -1
- package/README.md +88 -44
- package/dist/radashi.cjs +592 -201
- package/dist/radashi.d.cts +1603 -212
- package/dist/radashi.d.ts +1603 -212
- package/dist/radashi.js +566 -201
- package/package.json +52 -29
package/LICENSE.md
CHANGED
package/README.md
CHANGED
|
@@ -2,27 +2,95 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
<p align="center">
|
|
5
|
-
<img src="https://github.com/radashi-org/radashi/raw/main/img/banner.png" alt="Radashi" width="100%" />
|
|
5
|
+
<img src="https://github.com/radashi-org/radashi/raw/main/.github/img/banner.png" alt="Radashi" width="100%" />
|
|
6
6
|
</p>
|
|
7
|
+
<a href="https://github.com/radashi-org/radashi/blob/main/LICENSE.md"><img src="https://img.shields.io/npm/l/radashi" alt="License" /></a>
|
|
8
|
+
<a href="https://github.com/radashi-org/radashi/actions/workflows/publish-beta.yml"><img src="https://img.shields.io/github/actions/workflow/status/radashi-org/radashi/publish-beta.yml?logo=github" alt="Build Status" /></a>
|
|
9
|
+
<a href="https://app.codecov.io/gh/radashi-org/radashi/tree/main/src"><img src="https://img.shields.io/codecov/c/github/radashi-org/radashi?logo=codecov" alt="Codecov" /></a>
|
|
10
|
+
<a href="https://biomejs.dev/"><img src="https://img.shields.io/badge/code_style-biome.js-blue?logo=biome" alt="Code Style: Biome.js" /></a>
|
|
11
|
+
<a href="https://github.com/radashi-org/radashi/discussions"><img src="https://img.shields.io/github/discussions/radashi-org/radashi?logo=github" alt="GitHub Discussions" /></a>
|
|
7
12
|
</div>
|
|
8
13
|
|
|
9
|
-
|
|
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.
|
|
14
|
+
|
|
11
15
|
|
|
12
|
-
|
|
13
|
-
Yes! This is a fork of the renowned [`radash`](https://github.com/sodiray/radash) library by Ray Epps [@sodiray](https://github.com/sodiray).
|
|
16
|
+
**Ditch the bloat of Lodash. Stop reinventing the wheel.**
|
|
14
17
|
|
|
15
|
-
-
|
|
16
|
-
This fork aims to be a more consistently maintained version, with bug fixes and improvements. We're open to adding many maintainers to the Radashi team, to keep responsiveness high.
|
|
18
|
+
Radashi (pronounced /ruh-DAH-shee/) is a TypeScript utility toolkit, packed with lightweight functions that are readable, performant, and robust.
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
Radashi is an actively maintained fork of Radash, the fastest growing Lodash alternative with 100K+ weekly downloads.
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
Currently, there is no documentation beyond this page. There is work being done, which is tracked by #40. Until then, you can refer to the original `radash` documentation.
|
|
22
|
+
_“What makes Radashi so great?”_
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
- **unique** and **well-designed** functions
|
|
25
|
+
- **tree-shakeable** (use only what you need!)
|
|
26
|
+
- **dependency-free**
|
|
27
|
+
- **community-first** (your opinions matter)
|
|
28
|
+
- **future-proof** (written with modern ES6+ syntax)
|
|
29
|
+
- **actively maintained** (with a growing team of passionate maintainers)
|
|
30
|
+
- **type-safe** (the best type definitions possible)
|
|
31
|
+
- **full test coverage**
|
|
32
|
+
- **performance tracking** (we track perf regressions with continuous benchmarking)
|
|
33
|
+
- **well-documented**
|
|
34
|
+
- **nightly releases** (`radashi@beta`)
|
|
35
|
+
- **changelog** (easily see what's new in each release)
|
|
36
|
+
|
|
37
|
+
<img src="https://github.com/radashi-org/radashi/raw/main/.github/img/rule.png" width="100%" />
|
|
38
|
+
|
|
39
|
+
## Documentation
|
|
40
|
+
|
|
41
|
+
An official website is in the works (tracked by [#40](https://github.com/radashi-org/radashi/issues/40)). Until then, you can refer to the original `radash` documentation and the [CHANGELOG.md](https://github.com/radashi-org/radashi/blob/main/CHANGELOG.md) file.
|
|
42
|
+
|
|
43
|
+
<a href="https://radash-docs.vercel.app">
|
|
44
|
+
<img src="https://github.com/radashi-org/radashi/raw/main/.github/img/docs-button.png" alt="Radash documentation" width="250px" />
|
|
45
|
+
</a>
|
|
46
|
+
|
|
47
|
+
<img src="https://github.com/radashi-org/radashi/raw/main/.github/img/rule.png" width="100%" />
|
|
48
|
+
|
|
49
|
+
## Install
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
pnpm add radashi
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
yarn add radashi
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
npm install radashi
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Beta version
|
|
64
|
+
|
|
65
|
+
The `radashi@beta` version is a nightly release containing everything in the main branch at the time (5:00AM UTC).
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
pnpm add radashi@beta
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Its changes are documented [here](https://github.com/radashi-org/radashi/blob/main/CHANGELOG.md#radashibeta). If there's no `radashi@beta` section in the changelog, it means no pull requests have been merged since the last stable release.
|
|
72
|
+
|
|
73
|
+
### JSR.io
|
|
74
|
+
|
|
75
|
+
Radashi is also published to the [JSR registry](https://jsr.io/docs/why), which gives Radashi [its own page](https://jsr.io/@radashi-org/radashi).
|
|
76
|
+
|
|
77
|
+
```sh
|
|
78
|
+
jsr add @radashi-org/radashi
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
```sh
|
|
82
|
+
deno add @radashi-org/radashi
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
<img src="https://github.com/radashi-org/radashi/raw/main/.github/img/rule.png" width="100%" />
|
|
86
|
+
|
|
87
|
+
## FAQ
|
|
88
|
+
|
|
89
|
+
- **“I need XYZ, but Radashi doesn‘t have it.”**
|
|
90
|
+
If you have a need not met by our current set of functions, we want to hear about it. [Start a discussion](https://github.com/orgs/radashi-org/discussions/new?category=ideas) so we can explore the idea together!
|
|
91
|
+
|
|
92
|
+
- **What does “community first” mean exactly?**
|
|
93
|
+
It means putting the community's needs first, leaning towards adding support for popular use cases, as opposed to being strictly minimalist. As such, your feedback is very welcome and we value your perspective. Specifically, we want you to [contribute your viewpoint](https://github.com/orgs/radashi-org/discussions/categories/rfcs?discussions_q=is%3Aopen+category%3ARFCs) to discussions in our RFCs category.
|
|
26
94
|
|
|
27
95
|
- **Are my contributions welcome?**
|
|
28
96
|
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).
|
|
@@ -30,14 +98,14 @@
|
|
|
30
98
|
Please review _“The ethos of Radashi”_ before submitting a pull request:
|
|
31
99
|
|
|
32
100
|
<a href="https://github.com/orgs/radashi-org/discussions/20">
|
|
33
|
-
<img src="https://github.com/radashi-org/radashi/raw/main/img/ethos-button.png" alt="The ethos of Radashi" width="250px" />
|
|
101
|
+
<img src="https://github.com/radashi-org/radashi/raw/main/.github/img/ethos-button.png" alt="The ethos of Radashi" width="250px" />
|
|
34
102
|
</a>
|
|
35
103
|
|
|
36
104
|
- **Can I help you maintain this?**
|
|
37
105
|
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.
|
|
38
106
|
|
|
39
107
|
<a href="https://github.com/orgs/radashi-org/discussions/4">
|
|
40
|
-
<img src="https://github.com/radashi-org/radashi/raw/main/img/apply-button.png" alt="Apply to join the Radashi team" width="250px" />
|
|
108
|
+
<img src="https://github.com/radashi-org/radashi/raw/main/.github/img/apply-button.png" alt="Apply to join the Radashi team" width="250px" />
|
|
41
109
|
</a>
|
|
42
110
|
|
|
43
111
|
- **Is backwards compatibility a goal?**
|
|
@@ -47,7 +115,7 @@
|
|
|
47
115
|
To ensure contributions are quickly rolled out, we have the following automatic processes:
|
|
48
116
|
|
|
49
117
|
- **Beta releases**
|
|
50
|
-
Whenever the `main` branch receives a fix or feature, a beta release is automatically published to NPM.
|
|
118
|
+
Whenever the `main` branch receives a fix or feature, a beta release is automatically published to NPM at 5:00AM UTC.
|
|
51
119
|
Installing `radashi@beta` will always fetch the latest beta release. Beta releases are always audited by the Radashi team.
|
|
52
120
|
|
|
53
121
|
- **Preview releases**
|
|
@@ -56,46 +124,22 @@
|
|
|
56
124
|
- ⚠️ **Beware:** Preview releases are not audited by the Radashi team. Always look at their
|
|
57
125
|
changes in the PR to ensure no malicious code was introduced.
|
|
58
126
|
|
|
59
|
-
<img src="https://github.com/radashi-org/radashi/raw/
|
|
60
|
-
|
|
61
|
-
## Install
|
|
62
|
-
|
|
63
|
-
```sh
|
|
64
|
-
pnpm add radashi
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
```sh
|
|
68
|
-
yarn add radashi
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
```sh
|
|
72
|
-
npm install radashi
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
<img src="https://github.com/radashi-org/radashi/raw/b80a0e4/img/rule.png" width="100%" />
|
|
127
|
+
<img src="https://github.com/radashi-org/radashi/raw/main/.github/img/rule.png" width="100%" />
|
|
76
128
|
|
|
77
129
|
## Contributing
|
|
78
130
|
|
|
79
131
|
Contributions are welcome and appreciated! Check out the contributing guide before you dive in:
|
|
80
132
|
|
|
81
133
|
<a href="https://github.com/radashi-org/radashi/blob/main/.github/contributing.md">
|
|
82
|
-
<img src="https://github.com/radashi-org/radashi/raw/main/img/contributing-button.png" alt="Contributing to Radashi" width="250px" />
|
|
134
|
+
<img src="https://github.com/radashi-org/radashi/raw/main/.github/img/contributing-button.png" alt="Contributing to Radashi" width="250px" />
|
|
83
135
|
</a>
|
|
84
136
|
|
|
85
|
-
<img src="https://github.com/radashi-org/radashi/raw/
|
|
86
|
-
|
|
87
|
-
## Changelog
|
|
88
|
-
|
|
89
|
-
This section documents the changes between the original `radash` library and this fork.
|
|
90
|
-
|
|
91
|
-
### 12.1.0
|
|
92
|
-
|
|
93
|
-
- Initial release. No differences.
|
|
137
|
+
<img src="https://github.com/radashi-org/radashi/raw/main/.github/img/rule.png" width="100%" />
|
|
94
138
|
|
|
95
139
|
|
|
96
140
|
|
|
97
141
|
<div align="center">
|
|
98
142
|
<p align="center">
|
|
99
|
-
<img src="https://github.com/radashi-org/radashi/raw/
|
|
143
|
+
<img src="https://github.com/radashi-org/radashi/raw/main/.github/img/footer.png" alt="Radashi" width="100%" />
|
|
100
144
|
</p>
|
|
101
145
|
</div>
|