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.
Files changed (47) hide show
  1. package/LICENSE.md +2 -1
  2. package/README.md +72 -8
  3. package/dist/index.cjs +1260 -0
  4. package/dist/index.d.cts +746 -0
  5. package/dist/index.d.ts +429 -365
  6. package/dist/index.js +1137 -0
  7. package/package.json +36 -38
  8. package/dist/cjs/array.cjs +0 -281
  9. package/dist/cjs/array.cjs.map +0 -1
  10. package/dist/cjs/async.cjs +0 -169
  11. package/dist/cjs/async.cjs.map +0 -1
  12. package/dist/cjs/curry.cjs +0 -113
  13. package/dist/cjs/curry.cjs.map +0 -1
  14. package/dist/cjs/index.cjs +0 -109
  15. package/dist/cjs/index.cjs.map +0 -1
  16. package/dist/cjs/number.cjs +0 -34
  17. package/dist/cjs/number.cjs.map +0 -1
  18. package/dist/cjs/object.cjs +0 -204
  19. package/dist/cjs/object.cjs.map +0 -1
  20. package/dist/cjs/random.cjs +0 -34
  21. package/dist/cjs/random.cjs.map +0 -1
  22. package/dist/cjs/series.cjs +0 -62
  23. package/dist/cjs/series.cjs.map +0 -1
  24. package/dist/cjs/string.cjs +0 -72
  25. package/dist/cjs/string.cjs.map +0 -1
  26. package/dist/cjs/typed.cjs +0 -104
  27. package/dist/cjs/typed.cjs.map +0 -1
  28. package/dist/esm/array.mjs +0 -251
  29. package/dist/esm/array.mjs.map +0 -1
  30. package/dist/esm/async.mjs +0 -158
  31. package/dist/esm/async.mjs.map +0 -1
  32. package/dist/esm/curry.mjs +0 -103
  33. package/dist/esm/curry.mjs.map +0 -1
  34. package/dist/esm/index.mjs +0 -10
  35. package/dist/esm/index.mjs.map +0 -1
  36. package/dist/esm/number.mjs +0 -30
  37. package/dist/esm/number.mjs.map +0 -1
  38. package/dist/esm/object.mjs +0 -186
  39. package/dist/esm/object.mjs.map +0 -1
  40. package/dist/esm/random.mjs +0 -29
  41. package/dist/esm/random.mjs.map +0 -1
  42. package/dist/esm/series.mjs +0 -60
  43. package/dist/esm/series.mjs.map +0 -1
  44. package/dist/esm/string.mjs +0 -63
  45. package/dist/esm/string.mjs.map +0 -1
  46. package/dist/esm/typed.mjs +0 -90
  47. 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
- # radashi
1
+ # Radashi
2
2
 
3
- :loud_sound: `/raw-dash-ee/`
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
- A fork of the renowned [`radash`](https://github.com/sodiray/radash) library by Ray Epps [@sodiray](https://github.com/sodiray).
7
- - **Why does this exist?**
8
- This fork aims to be a more consistently maintained version of the library, with bug fixes and improvements. Pull requests are encouraged, but please keep them small and focused. Sweeping changes are discouraged and won't be merged.
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
- - **Is there official documentation?**
14
- 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 [here](https://radash-docs.vercel.app).
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
+ &nbsp;
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
+ &nbsp;
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 [contributing guide](./.github/contributing.md) before you dive in.
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
+ &nbsp;
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
+ &nbsp;
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>