colombian-holidays 5.0.2 → 5.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.
Files changed (2) hide show
  1. package/README.md +3 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -280,9 +280,10 @@ This function is equivalent to calling:
280
280
  colombianHolidays({ year: 2025 });
281
281
  ```
282
282
 
283
- But exposed as a named utility function for convenience.
283
+ But uses an in-memory cache.
284
284
 
285
- This function uses a shared in-memory cache and is a preferable option to `colombianHolidays` when the same year is requested multiple times, such as in loops or build processes.
285
+ > [!TIP]
286
+ > Use `getHolidaysByYear` instead of `colombianHolidays` when possible. It includes built-in caching, which improves performance and avoids redundant computations when accessing holidays by year. It is used under the hood by all other helpers, providing a shared in-memory cache.
286
287
 
287
288
  ### isHoliday
288
289
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "colombian-holidays",
3
- "version": "5.0.2",
3
+ "version": "5.0.3",
4
4
  "description": "Colombian holidays",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {