@jbrowse/core 4.0.1 → 4.0.3

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.
@@ -166,7 +166,7 @@ export function TrackConfigurationReference(schemaType) {
166
166
  const trackRef = types.reference(schemaType, {
167
167
  get(id, parent) {
168
168
  const session = getSession(parent);
169
- let ret = session.tracksById[id];
169
+ let ret = session.getTracksById()[id];
170
170
  if (!ret) {
171
171
  ret = resolveIdentifier(schemaType, getRoot(parent), id);
172
172
  }
@@ -165,7 +165,7 @@ export function showTrackGeneric(self, trackId, initialSnapshot = {}, displayIni
165
165
  if (found) {
166
166
  return found;
167
167
  }
168
- const conf = session.tracksById[trackId];
168
+ const conf = session.getTracksById()[trackId];
169
169
  if (!conf) {
170
170
  throw new Error(`Could not resolve identifier "${trackId}"`);
171
171
  }
@@ -41,7 +41,7 @@ export interface JBrowsePlugin {
41
41
  }
42
42
  export type DialogComponentType = React.LazyExoticComponent<React.FC<any>> | React.FC<any>;
43
43
  export interface AbstractSessionModel extends AbstractViewContainer {
44
- tracksById: Record<string, AnyConfigurationModel>;
44
+ getTracksById: () => Record<string, AnyConfigurationModel>;
45
45
  jbrowse: IAnyStateTreeNode;
46
46
  drawerPosition?: string;
47
47
  configuration: AnyConfigurationModel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/core",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
4
4
  "type": "module",
5
5
  "description": "JBrowse 2 core libraries used by plugins",
6
6
  "keywords": [