Upgrade Guide
Upgrading to v4.0
ES Modules
- probe.gl is used to test transition to ES Modules for all the vis.gl frameworks including deck.gl.
- You are welcome report any issues in the probe.gl repo.
@probe.gl/bench
Bench.add()
/Bench.addAsync()
- The number of overloads has been reduced so some existing benchmark suites may need to be updated. When specifying priority and options, simply supply a property object instead of position arguments.- Custom logging
- the type of each
LogEntry
is now controlled by thetype
field instead of theentry
field. - For
LogEntry.type
, the LOG_ENTRY export is removed in favor of simple string constants.
- the type of each
probe.gl
- The
probe.gl
"umbrella" module is no longer available as of 4.0. Simply replaceprobe.gl
with the scoped@probe.gl/...
modules you are actually using.
Upgrading to v3.5
- From v3.5, the
probe.gl
module is being deprecated in favor of importing sub modules@probe.gl/...
. - The
probe.gl
module may be removed in probe.gl v4.0, but for backwards compatibility, this module will still be present in v3.x. probe.gl
no longer contains any code, it just re-exports from@probe.gl/env
,@probe.gl/log
,@probe.gl/stats
.
To upgrade:
import 'probe.gl
should be replaced withimport '@probe.gl/env'
,import '@probe.gl/log'
and/orimport '@probe.gl/stats'
(depending on which imports you are using.).- Update your
package.json
file(s) to install the submodules instead of the main module. - The
import 'probe.gl/env
subdirectory import should be replaced withimport '@probe.gl/env'
(note the leading@
sign). The subdirectory import is occasionally causing problems with bundlers and the submodule import should be more robust.