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
LogEntryis now controlled by thetypefield instead of theentryfield. - 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.glwith the scoped@probe.gl/...modules you are actually using.
Upgrading to v3.5
- From v3.5, the
probe.glmodule is being deprecated in favor of importing sub modules@probe.gl/.... - The
probe.glmodule may be removed in probe.gl v4.0, but for backwards compatibility, this module will still be present in v3.x. probe.glno longer contains any code, it just re-exports from@probe.gl/env,@probe.gl/log,@probe.gl/stats.
To upgrade:
import 'probe.glshould 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.jsonfile(s) to install the submodules instead of the main module. - The
import 'probe.gl/envsubdirectory 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.