Skip to content

Commit 573f952

Browse files
author
Jeshurun Hembd
committed
Remove defaultValue
1 parent 0e35728 commit 573f952

File tree

3 files changed

+5
-63
lines changed

3 files changed

+5
-63
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
### @cesium/engine
88

9+
#### Breaking Changes :mega:
10+
11+
- The `defaultValue` function has been removed. Instead, use the logical OR (`||`) the [nullish coalescing (`??`)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing) operator. See the [Coding Guide](https://github.com/CesiumGS/cesium/tree/main/Documentation/Contributors/CodingGuide#default-parameter-values) for usage information and examples.
12+
- `defaultValue.EMPTY_OBJECT` has been removed. Instead, use `Frozen.EMPTY_OBJECT`. See the [Coding Guide](https://github.com/CesiumGS/cesium/tree/main/Documentation/Contributors/CodingGuide#default-parameter-values) for usage information and examples.
13+
914
#### Fixes :wrench:
1015

1116
- Materials loaded from type now respect submaterials present in the referenced material type. [#10566](https://github.com/CesiumGS/cesium/issues/10566)

packages/engine/Source/Core/defaultValue.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

packages/engine/Specs/Core/defaultValueSpec.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)