@vaadin/charts 24.9.17 → 24.9.18

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": "@vaadin/charts",
3
- "version": "24.9.17",
3
+ "version": "24.9.18",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,16 +37,16 @@
37
37
  "dependencies": {
38
38
  "@open-wc/dedupe-mixin": "^1.3.0",
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/component-base": "~24.9.17",
41
- "@vaadin/vaadin-lumo-styles": "~24.9.17",
42
- "@vaadin/vaadin-material-styles": "~24.9.17",
43
- "@vaadin/vaadin-themable-mixin": "~24.9.17",
40
+ "@vaadin/component-base": "~24.9.18",
41
+ "@vaadin/vaadin-lumo-styles": "~24.9.18",
42
+ "@vaadin/vaadin-material-styles": "~24.9.18",
43
+ "@vaadin/vaadin-themable-mixin": "~24.9.18",
44
44
  "highcharts": "9.2.2",
45
45
  "lit": "^3.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@vaadin/chai-plugins": "~24.9.17",
49
- "@vaadin/test-runner-commands": "~24.9.17",
48
+ "@vaadin/chai-plugins": "~24.9.18",
49
+ "@vaadin/test-runner-commands": "~24.9.18",
50
50
  "@vaadin/testing-helpers": "^1.1.0",
51
51
  "sinon": "^18.0.0"
52
52
  },
@@ -55,5 +55,5 @@
55
55
  "web-types.json",
56
56
  "web-types.lit.json"
57
57
  ],
58
- "gitHead": "744b2ddf872bb25ad85143376e0538e339a4143f"
58
+ "gitHead": "8963ac96cd9ee17b613c551bac483e867a8098e3"
59
59
  }
package/src/helpers.js CHANGED
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @deprecated Import `deepMerge` from `@vaadin/component-base/src/object-utils.js` instead.
3
+ */
4
+ export { deepMerge } from '@vaadin/component-base/src/object-utils.js';
5
+
1
6
  export function inflateFunctions(config) {
2
7
  if (Array.isArray(config)) {
3
8
  config.forEach(inflateFunctions);
@@ -27,26 +32,6 @@ export function inflateFunctions(config) {
27
32
  });
28
33
  }
29
34
 
30
- export function deepMerge(target, source) {
31
- const isObject = (item) => item && typeof item === 'object' && !Array.isArray(item);
32
-
33
- if (isObject(source) && isObject(target)) {
34
- Object.keys(source).forEach((key) => {
35
- if (isObject(source[key])) {
36
- if (!target[key]) {
37
- Object.assign(target, { [key]: {} });
38
- }
39
-
40
- deepMerge(target[key], source[key]);
41
- } else {
42
- Object.assign(target, { [key]: source[key] });
43
- }
44
- });
45
- }
46
-
47
- return target;
48
- }
49
-
50
35
  export function prepareExport(chart) {
51
36
  // Guard against another print 'before print' event coming before
52
37
  // the 'after print' event.
@@ -30,10 +30,11 @@ import 'highcharts/es-modules/masters/modules/gantt.src.js';
30
30
  import 'highcharts/es-modules/masters/modules/draggable-points.src.js';
31
31
  import Pointer from 'highcharts/es-modules/Core/Pointer.js';
32
32
  import Highcharts from 'highcharts/es-modules/masters/highstock.src.js';
33
+ import { deepMerge } from '@vaadin/component-base/src/object-utils.js';
33
34
  import { get } from '@vaadin/component-base/src/path-utils.js';
34
35
  import { ResizeMixin } from '@vaadin/component-base/src/resize-mixin.js';
35
36
  import { SlotObserver } from '@vaadin/component-base/src/slot-observer.js';
36
- import { cleanupExport, deepMerge, inflateFunctions, prepareExport } from './helpers.js';
37
+ import { cleanupExport, inflateFunctions, prepareExport } from './helpers.js';
37
38
 
38
39
  ['exportChart', 'exportChartLocal', 'getSVG'].forEach((methodName) => {
39
40
  /* eslint-disable @typescript-eslint/no-invalid-this, prefer-arrow-callback */
@@ -8,7 +8,7 @@
8
8
  * See https://vaadin.com/commercial-license-and-service-terms for the full
9
9
  * license.
10
10
  */
11
- import { deepMerge } from './helpers.js';
11
+ import { deepMerge } from '@vaadin/component-base/src/object-utils.js';
12
12
 
13
13
  /**
14
14
  * @polymerMixin
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/charts",
4
- "version": "24.9.17",
4
+ "version": "24.9.18",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/charts",
4
- "version": "24.9.17",
4
+ "version": "24.9.18",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {