@x-oasis/throttle 0.3.0 → 0.4.0

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @x-oasis/throttle@0.3.0 build /home/runner/work/x-oasis/x-oasis/packages/schedule/throttle
2
+ > @x-oasis/throttle@0.4.0 build /home/runner/work/x-oasis/x-oasis/packages/schedule/throttle
3
3
  > tsdx build --tsconfig tsconfig.build.json
4
4
 
5
5
  @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
@@ -13,5 +13,4 @@
13
13
  [tsdx]: Your rootDir is currently set to "./". Please change your rootDir to "./src".
14
14
  TSDX has deprecated setting tsconfig.compilerOptions.rootDir to "./" as it caused buggy output for declarationMaps and more.
15
15
  You may also need to change your include to remove "test", which also caused declarations to be unnecessarily created for test files.
16
-  Building modules
17
- ✓ Building modules 4.1 secs
16
+  Building modules 4.2 secs
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @x-oasis/throttle
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6d79ee1: feat: bump version
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [6d79ee1]
12
+ - @x-oasis/default-boolean-value@0.4.0
13
+ - @x-oasis/debounce@0.4.0
14
+
3
15
  ## 0.3.0
4
16
 
5
17
  ### Minor Changes
package/docs/index.md ADDED
@@ -0,0 +1,103 @@
1
+ # @x-oasis/throttle
2
+
3
+ Throttle function calls at intervals
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @x-oasis/throttle
9
+ ```
10
+
11
+ ## Quick Start
12
+
13
+ ```typescript
14
+ import { /* exports */ } from '@x-oasis/throttle';
15
+
16
+ // Your code here
17
+ ```
18
+
19
+ ## Key Features
20
+
21
+ - High performance
22
+ - TypeScript support
23
+ - No external dependencies
24
+ - Well-tested and stable
25
+
26
+ ## API Reference
27
+
28
+ ### Main Exports
29
+
30
+ See the source code on [GitHub](https://github.com/red-armor/x-oasis/tree/main/packages/schedule/throttle)
31
+
32
+ ## Usage Examples
33
+
34
+ ### Basic Example
35
+
36
+ ```typescript
37
+ // See package documentation for detailed examples
38
+ ```
39
+
40
+ ### Advanced Usage
41
+
42
+ ```typescript
43
+ // Advanced patterns and use cases
44
+ ```
45
+
46
+ ## TypeScript Support
47
+
48
+ Full TypeScript definitions are included:
49
+
50
+ ```typescript
51
+ import { /* types */ } from '@x-oasis/throttle';
52
+ ```
53
+
54
+ ## Performance
55
+
56
+ This package is optimized for:
57
+ - Small bundle size
58
+ - Fast execution
59
+ - Memory efficiency
60
+
61
+ ## Browser Support
62
+
63
+ - Modern browsers (ES2015+)
64
+ - Node.js 12.0+
65
+
66
+ ## Best Practices
67
+
68
+ ✅ **Do:**
69
+ - Use according to documentation
70
+ - Check types before use
71
+ - Handle edge cases
72
+
73
+ ❌ **Don't:**
74
+ - Misuse the API
75
+ - Ignore error handling
76
+ - Forget null checks
77
+
78
+ ## Common Pitfalls
79
+
80
+ 1. **Pitfall** - Description and solution
81
+ 2. **Pitfall** - Description and solution
82
+
83
+ ## Troubleshooting
84
+
85
+ **Problem**: Issue description
86
+
87
+ **Solution**: How to fix it
88
+
89
+ ## Related Packages
90
+
91
+ - Other packages in [schedule](/packages/schedule/)
92
+ - Similar functionality in other categories
93
+
94
+ ## See Also
95
+
96
+ - [Package Category](/packages/schedule/)
97
+ - [All Packages](/packages/)
98
+ - [GitHub Issues](https://github.com/red-armor/x-oasis/issues)
99
+ - [Discussions](https://github.com/red-armor/x-oasis/discussions)
100
+
101
+ ## License
102
+
103
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x-oasis/throttle",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "throttle function",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -14,8 +14,8 @@
14
14
  "tsdx": "^0.14.1"
15
15
  },
16
16
  "dependencies": {
17
- "@x-oasis/default-boolean-value": "0.3.0",
18
- "@x-oasis/debounce": "0.3.0"
17
+ "@x-oasis/default-boolean-value": "0.4.0",
18
+ "@x-oasis/debounce": "0.4.0"
19
19
  },
20
20
  "scripts": {
21
21
  "build": "tsdx build --tsconfig tsconfig.build.json",