@mapbox/mapbox-gl-style-spec 13.19.1 → 13.20.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,17 @@
1
- ## 13.9.1
1
+ ## 13.20.1
2
+
3
+ ### 🐞 Bug fixes
4
+
5
+ * Increase strictness of the style API validation for source types ([#10779](https://github.com/mapbox/mapbox-gl-js/pull/10779))
6
+ * Remove strictly-increasing requirement for fog range validation ([#10772](https://github.com/mapbox/mapbox-gl-js/pull/10772))
7
+
8
+ ## 13.20.0
9
+
10
+ ### ✨ Features and improvements
2
11
 
3
- * Added compatibility table for the `terrain` root level property in the style specification. ([#10619](https://github.com/mapbox/mapbox-gl-js/pull/10619))
12
+ * Add configurable fog as a root style specification ([#10564](https://github.com/mapbox/mapbox-gl-js/pull/10564))
13
+ * Add support for data-driven expressions in `line-dasharray` and `line-cap` properties. ([#10591](https://github.com/mapbox/mapbox-gl-js/pull/10591))
14
+ * Add support for data-driven `text-line-height` ([#10612](https://github.com/mapbox/mapbox-gl-js/pull/10612))
4
15
 
5
16
  ## 13.19.0
6
17
 
@@ -8,7 +19,7 @@
8
19
 
9
20
  * Added array support to minimums and maximums, allowing for validation of multi-dimensional style-spec value constraints. ([#10272](https://github.com/mapbox/mapbox-gl-js/pull/10272))
10
21
 
11
- # 13.18.1
22
+ ## 13.18.1
12
23
 
13
24
  ### 🐞 Bug fixes
14
25
  * Fixed a bug where `map.setStyle` couldn't be used to enable terrain. ([#10177](https://github.com/mapbox/mapbox-gl-js/pull/10177))
package/diff.js CHANGED
@@ -101,7 +101,12 @@ const operations = {
101
101
  /*
102
102
  * { command: 'setTerrain', args: [terrainProperties] }
103
103
  */
104
- setTerrain: 'setTerrain'
104
+ setTerrain: 'setTerrain',
105
+
106
+ /*
107
+ * { command: 'setFog', args: [fogProperties] }
108
+ */
109
+ setFog: 'setFog'
105
110
 
106
111
  };
107
112
 
@@ -355,6 +360,9 @@ function diffStyles(before, after) {
355
360
  if (!isEqual(before.light, after.light)) {
356
361
  commands.push({command: operations.setLight, args: [after.light]});
357
362
  }
363
+ if (!isEqual(before.fog, after.fog)) {
364
+ commands.push({command: operations.setFog, args: [after.fog]});
365
+ }
358
366
 
359
367
  // Handle changes to `sources`
360
368
  // If a source is to be removed, we also--before the removeSource