@d3plus/core 3.0.9 → 3.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d3plus/core",
3
- "version": "3.0.9",
3
+ "version": "3.0.10",
4
4
  "description": "Data visualization made easy. A javascript library that extends the popular D3.js to enable fast and beautiful visualizations.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -34,13 +34,13 @@
34
34
  "test": "eslint index.js src/**/*.js && eslint --global=it test && mocha 'test/**/*-test.js'"
35
35
  },
36
36
  "dependencies": {
37
- "@d3plus/color": "3.0.9",
38
- "@d3plus/data": "3.0.9",
39
- "@d3plus/dom": "3.0.9",
40
- "@d3plus/format": "3.0.9",
41
- "@d3plus/locales": "3.0.9",
42
- "@d3plus/math": "3.0.9",
43
- "@d3plus/text": "3.0.9",
37
+ "@d3plus/color": "3.0.10",
38
+ "@d3plus/data": "3.0.10",
39
+ "@d3plus/dom": "3.0.10",
40
+ "@d3plus/format": "3.0.10",
41
+ "@d3plus/locales": "3.0.10",
42
+ "@d3plus/math": "3.0.10",
43
+ "@d3plus/text": "3.0.10",
44
44
  "@popperjs/core": "^2.11.8",
45
45
  "d3-array": "^3.2.4",
46
46
  "d3-brush": "^3.0.0",
@@ -1,5 +1,5 @@
1
1
  /*
2
- @d3plus/core v3.0.9
2
+ @d3plus/core v3.0.10
3
3
  Data visualization made easy. A javascript library that extends the popular D3.js to enable fast and beautiful visualizations.
4
4
  Copyright (c) 2025 D3plus - https://d3plus.org
5
5
  @license MIT
@@ -254,6 +254,8 @@
254
254
  date4.setFullYear(d);
255
255
  return date4;
256
256
  }
257
+ var iso8601 = new RegExp(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/g).exec(s);
258
+ if (iso8601) return new Date(s);
257
259
  // falls back to Date object, replacing hyphens with slashes
258
260
  return new Date(s.replace(/-/g, "/"));
259
261
  }