rrule-rust 2.0.3-next.1 → 2.0.3
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/README.md +6 -6
- package/package.json +18 -18
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://www.npmjs.com/package/rrule-rust)
|
|
6
6
|
[](https://github.com/lsndr/rrule-rust/blob/master/LICENSE.md)
|
|
7
7
|
|
|
8
|
-
`rrule-rust` is a library for
|
|
8
|
+
`rrule-rust` is a library for handling recurrence rules, powered by Rust's high-performance [rrule](https://crates.io/crates/rrule) crate.
|
|
9
9
|
|
|
10
10
|
1. [Quick Start](#quick-start)
|
|
11
11
|
2. [Performance](#performance)
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
npm i rrule-rust
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
If you need browser-compatible version with
|
|
19
|
+
If you need a browser-compatible version with WASM support, install it from the `alpha` channel:
|
|
20
20
|
|
|
21
21
|
```
|
|
22
22
|
npm i rrule-rust@alpha
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
> The WebAssembly (WASM) version is currently available on the `alpha` channel, as it relies on an alpha release of [napi.rs](https://napi.rs/). Once napi.rs v3 is officially released, WASM support will be included in the main (`latest`) release channel.
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
For more usage examples and advanced scenarios, see the [tests directory](https://github.com/lsndr/rrule-rust/tree/master/tests) in the repository.
|
|
28
28
|
|
|
29
29
|
```typescript
|
|
30
30
|
import { RRule, RRuleSet, Frequency, DateTime } from 'rrule-rust';
|
|
@@ -40,7 +40,7 @@ const set = new RRuleSet({
|
|
|
40
40
|
});
|
|
41
41
|
|
|
42
42
|
const dates = set.all(); // [ DateTime, DateTime, DateTime, DateTime, DateTime ]
|
|
43
|
-
const asString = set.toString(); // DTSTART;TZID=US/Eastern:19970902T090000\nFREQ=
|
|
43
|
+
const asString = set.toString(); // DTSTART;TZID=US/Eastern:19970902T090000\nFREQ=DAILY;COUNT=5;BYHOUR=9;BYMINUTE=0;BYSECOND=0
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
## Performance
|
|
@@ -57,7 +57,7 @@ const asString = set.toString(); // DTSTART;TZID=US/Eastern:19970902T090000\nFRE
|
|
|
57
57
|
| UTC TZ | 15 904 ops/s | 108 538 ops/s | ~6x faster |
|
|
58
58
|
| Other TZ | 260 ops/s | 106 034 ops/s | ~400x faster |
|
|
59
59
|
|
|
60
|
-
You can run benchmarks using `npm run benchmark
|
|
60
|
+
You can run benchmarks using `npm run benchmark`.
|
|
61
61
|
|
|
62
62
|
## License
|
|
63
63
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rrule-rust",
|
|
3
|
-
"version": "2.0.3
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"keywords": [
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"prettier": "^3.5.3",
|
|
67
67
|
"rimraf": "^6.0.1",
|
|
68
68
|
"rrule": "^2.7.2",
|
|
69
|
-
"semantic-release": "^
|
|
69
|
+
"semantic-release": "^24.2.5",
|
|
70
70
|
"ts-jest": "^29.0.5",
|
|
71
71
|
"ts-node": "^10.9.1",
|
|
72
72
|
"typescript": "^5.4.5",
|
|
@@ -95,21 +95,21 @@
|
|
|
95
95
|
"prepare": "husky && npm run build"
|
|
96
96
|
},
|
|
97
97
|
"optionalDependencies": {
|
|
98
|
-
"@rrule-rust/lib-win32-x64-msvc": "2.0.3
|
|
99
|
-
"@rrule-rust/lib-darwin-x64": "2.0.3
|
|
100
|
-
"@rrule-rust/lib-linux-x64-gnu": "2.0.3
|
|
101
|
-
"@rrule-rust/lib-darwin-arm64": "2.0.3
|
|
102
|
-
"@rrule-rust/lib-android-arm64": "2.0.3
|
|
103
|
-
"@rrule-rust/lib-linux-arm64-gnu": "2.0.3
|
|
104
|
-
"@rrule-rust/lib-linux-arm64-musl": "2.0.3
|
|
105
|
-
"@rrule-rust/lib-win32-arm64-msvc": "2.0.3
|
|
106
|
-
"@rrule-rust/lib-linux-arm-gnueabihf": "2.0.3
|
|
107
|
-
"@rrule-rust/lib-linux-arm-musleabihf": "2.0.3
|
|
108
|
-
"@rrule-rust/lib-linux-x64-musl": "2.0.3
|
|
109
|
-
"@rrule-rust/lib-freebsd-x64": "2.0.3
|
|
110
|
-
"@rrule-rust/lib-win32-ia32-msvc": "2.0.3
|
|
111
|
-
"@rrule-rust/lib-android-arm-eabi": "2.0.3
|
|
112
|
-
"@rrule-rust/lib-darwin-universal": "2.0.3
|
|
113
|
-
"@rrule-rust/lib-linux-riscv64-gnu": "2.0.3
|
|
98
|
+
"@rrule-rust/lib-win32-x64-msvc": "2.0.3",
|
|
99
|
+
"@rrule-rust/lib-darwin-x64": "2.0.3",
|
|
100
|
+
"@rrule-rust/lib-linux-x64-gnu": "2.0.3",
|
|
101
|
+
"@rrule-rust/lib-darwin-arm64": "2.0.3",
|
|
102
|
+
"@rrule-rust/lib-android-arm64": "2.0.3",
|
|
103
|
+
"@rrule-rust/lib-linux-arm64-gnu": "2.0.3",
|
|
104
|
+
"@rrule-rust/lib-linux-arm64-musl": "2.0.3",
|
|
105
|
+
"@rrule-rust/lib-win32-arm64-msvc": "2.0.3",
|
|
106
|
+
"@rrule-rust/lib-linux-arm-gnueabihf": "2.0.3",
|
|
107
|
+
"@rrule-rust/lib-linux-arm-musleabihf": "2.0.3",
|
|
108
|
+
"@rrule-rust/lib-linux-x64-musl": "2.0.3",
|
|
109
|
+
"@rrule-rust/lib-freebsd-x64": "2.0.3",
|
|
110
|
+
"@rrule-rust/lib-win32-ia32-msvc": "2.0.3",
|
|
111
|
+
"@rrule-rust/lib-android-arm-eabi": "2.0.3",
|
|
112
|
+
"@rrule-rust/lib-darwin-universal": "2.0.3",
|
|
113
|
+
"@rrule-rust/lib-linux-riscv64-gnu": "2.0.3"
|
|
114
114
|
}
|
|
115
115
|
}
|