@naturalcycles/js-lib 14.230.0 → 14.230.1

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.
@@ -153,4 +153,4 @@ export declare function localDateOrToday(d?: LocalDateInput | null): LocalDate;
153
153
  /**
154
154
  Convenience function to return current today's IsoDateString representation, e.g `2024-06-21`
155
155
  */
156
- export declare function todayIsoDateString(): IsoDateString;
156
+ export declare function todayString(): IsoDateString;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.todayIsoDateString = exports.localDateOrToday = exports.localDateOrUndefined = exports.localDateToday = exports.localDate = exports.localDateRangeIterable = exports.localDateRange = exports.LocalDate = void 0;
3
+ exports.todayString = exports.localDateOrToday = exports.localDateOrUndefined = exports.localDateToday = exports.localDate = exports.localDateRangeIterable = exports.localDateRange = exports.LocalDate = void 0;
4
4
  const assert_1 = require("../error/assert");
5
5
  const iterable2_1 = require("../iter/iterable2");
6
6
  const localTime_1 = require("./localTime");
@@ -506,8 +506,8 @@ exports.localDateOrToday = localDateOrToday;
506
506
  /**
507
507
  Convenience function to return current today's IsoDateString representation, e.g `2024-06-21`
508
508
  */
509
- function todayIsoDateString() {
509
+ function todayString() {
510
510
  // It was benchmarked to be faster than by concatenating individual Date components
511
511
  return new Date().toISOString().slice(0, 10);
512
512
  }
513
- exports.todayIsoDateString = todayIsoDateString;
513
+ exports.todayString = todayString;
@@ -496,7 +496,7 @@ export function localDateOrToday(d) {
496
496
  /**
497
497
  Convenience function to return current today's IsoDateString representation, e.g `2024-06-21`
498
498
  */
499
- export function todayIsoDateString() {
499
+ export function todayString() {
500
500
  // It was benchmarked to be faster than by concatenating individual Date components
501
501
  return new Date().toISOString().slice(0, 10);
502
502
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/js-lib",
3
- "version": "14.230.0",
3
+ "version": "14.230.1",
4
4
  "scripts": {
5
5
  "prepare": "husky",
6
6
  "build-prod": "build-prod-esm-cjs",
@@ -614,7 +614,7 @@ export function localDateOrToday(d?: LocalDateInput | null): LocalDate {
614
614
  /**
615
615
  Convenience function to return current today's IsoDateString representation, e.g `2024-06-21`
616
616
  */
617
- export function todayIsoDateString(): IsoDateString {
617
+ export function todayString(): IsoDateString {
618
618
  // It was benchmarked to be faster than by concatenating individual Date components
619
619
  return new Date().toISOString().slice(0, 10)
620
620
  }