@d3plus/format 3.1.2 → 3.1.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 CHANGED
@@ -43,7 +43,7 @@ Live examples can be found on [d3plus.org](https://d3plus.org/), which includes
43
43
 
44
44
  > **format**(`specifier`: `string`): `Formatter`
45
45
 
46
- Defined in: [format.ts:10](https://github.com/d3plus/d3plus/blob/35025276b7e98271b21e2a83ec03c1025ea4cb11/packages/format/src/format.ts#L10)
46
+ Defined in: [format.ts:10](https://github.com/d3plus/d3plus/blob/0405c9f5ac264236505d00e38073b163abf830e5/packages/format/src/format.ts#L10)
47
47
 
48
48
  #### Parameters
49
49
 
@@ -63,7 +63,7 @@ Defined in: [format.ts:10](https://github.com/d3plus/d3plus/blob/35025276b7e9827
63
63
 
64
64
  > **formatAbbreviate**(`n`: `string` \| `number`, `locale?`: `string` \| `FormatLocaleDefinition`, `precision?`: `string`): `string`
65
65
 
66
- Defined in: [formatAbbreviate.ts:55](https://github.com/d3plus/d3plus/blob/35025276b7e98271b21e2a83ec03c1025ea4cb11/packages/format/src/formatAbbreviate.ts#L55)
66
+ Defined in: [formatAbbreviate.ts:55](https://github.com/d3plus/d3plus/blob/0405c9f5ac264236505d00e38073b163abf830e5/packages/format/src/formatAbbreviate.ts#L55)
67
67
 
68
68
  Formats a number to an appropriate number of decimal places and rounding, adding suffixes if applicable (ie. `1200000` to `"1.2M"`).
69
69
 
@@ -87,7 +87,7 @@ Formats a number to an appropriate number of decimal places and rounding, adding
87
87
 
88
88
  > **formatDate**(`d`: `Date`, `dataArray`: `Date`[], `formatter?`: `DateFormatter`): `string`
89
89
 
90
- Defined in: [formatDate.ts:12](https://github.com/d3plus/d3plus/blob/35025276b7e98271b21e2a83ec03c1025ea4cb11/packages/format/src/formatDate.ts#L12)
90
+ Defined in: [formatDate.ts:12](https://github.com/d3plus/d3plus/blob/0405c9f5ac264236505d00e38073b163abf830e5/packages/format/src/formatDate.ts#L12)
91
91
 
92
92
  A default set of date formatters, which takes into account both the interval in between in each data point but also the start/end data points.
93
93
 
@@ -111,7 +111,7 @@ A default set of date formatters, which takes into account both the interval in
111
111
 
112
112
  > **formatDefaultLocale**(`definition`: `FormatLocaleDefinition`): `Record`\<`string`, `unknown`\>
113
113
 
114
- Defined in: [formatDefaultLocale.ts:8](https://github.com/d3plus/d3plus/blob/35025276b7e98271b21e2a83ec03c1025ea4cb11/packages/format/src/formatDefaultLocale.ts#L8)
114
+ Defined in: [formatDefaultLocale.ts:8](https://github.com/d3plus/d3plus/blob/0405c9f5ac264236505d00e38073b163abf830e5/packages/format/src/formatDefaultLocale.ts#L8)
115
115
 
116
116
  An extension to d3's [formatDefaultLocale](https://github.com/d3/d3-format#api-reference) function that allows setting the locale globally for formatters.
117
117
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d3plus/format",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "JavaScript formatters for localized numbers and dates.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -38,7 +38,7 @@
38
38
  "d3-format": "^3.1.0",
39
39
  "d3-time": "^3.1.0",
40
40
  "d3-time-format": "^4.1.0",
41
- "@d3plus/locales": "3.1.2"
41
+ "@d3plus/locales": "3.1.3"
42
42
  },
43
43
  "scripts": {
44
44
  "build:esm": "node ../../scripts/build-esm.js",
@@ -1,5 +1,5 @@
1
1
  /*
2
- @d3plus/format v3.1.1
2
+ @d3plus/format v3.1.2
3
3
  JavaScript formatters for localized numbers and dates.
4
4
  Copyright (c) 2026 D3plus - https://d3plus.org
5
5
  @license MIT
@@ -1,5 +1,5 @@
1
1
  /*
2
- @d3plus/format v3.1.1
2
+ @d3plus/format v3.1.2
3
3
  JavaScript formatters for localized numbers and dates.
4
4
  Copyright (c) 2026 D3plus - https://d3plus.org
5
5
  @license MIT
@@ -1,5 +1,5 @@
1
1
  /*
2
- @d3plus/format v3.1.1
2
+ @d3plus/format v3.1.2
3
3
  JavaScript formatters for localized numbers and dates.
4
4
  Copyright (c) 2026 D3plus - https://d3plus.org
5
5
  @license MIT
@@ -1,5 +1,5 @@
1
1
  /*
2
- @d3plus/format v3.1.1
2
+ @d3plus/format v3.1.2
3
3
  JavaScript formatters for localized numbers and dates.
4
4
  Copyright (c) 2026 D3plus - https://d3plus.org
5
5
  @license MIT