@apollo-annotation/mst 0.3.11 → 0.3.13

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/package.json CHANGED
@@ -1,14 +1,16 @@
1
1
  {
2
2
  "name": "@apollo-annotation/mst",
3
- "version": "0.3.11",
4
- "main": "./dist/index.js",
3
+ "version": "0.3.13",
4
+ "sideEffects": false,
5
+ "type": "module",
6
+ "exports": "./dist/index.js",
5
7
  "scripts": {
6
8
  "build": "tsc"
7
9
  },
8
10
  "dependencies": {
9
- "@jbrowse/core": "^3.6.5",
11
+ "@jbrowse/core": "^4.1.1",
12
+ "@jbrowse/mobx-state-tree": "^5.5.0",
10
13
  "mobx": "^6.6.1",
11
- "mobx-state-tree": "^5.4.0",
12
14
  "react-dom": "^18.2.0",
13
15
  "rxjs": "^7.4.0",
14
16
  "tslib": "^2.3.1"
@@ -12,9 +12,9 @@ import {
12
12
  getParentOfType,
13
13
  getSnapshot,
14
14
  types,
15
- } from 'mobx-state-tree'
15
+ } from '@jbrowse/mobx-state-tree'
16
16
 
17
- import { ApolloAssembly } from '.'
17
+ import { ApolloAssembly } from './index.js'
18
18
 
19
19
  const LateAnnotationFeature = types.late(
20
20
  (): IAnyModelType => AnnotationFeatureModel,
@@ -1,6 +1,6 @@
1
- import { type Instance, type SnapshotIn, types } from 'mobx-state-tree'
1
+ import { type Instance, type SnapshotIn, types } from '@jbrowse/mobx-state-tree'
2
2
 
3
- import { ApolloRefSeq } from './ApolloRefSeq'
3
+ import { ApolloRefSeq } from './ApolloRefSeq.js'
4
4
 
5
5
  export type BackendDriverType =
6
6
  | 'CollaborationServerDriver'
@@ -4,13 +4,13 @@ import {
4
4
  type SnapshotIn,
5
5
  type SnapshotOrInstance,
6
6
  types,
7
- } from 'mobx-state-tree'
7
+ } from '@jbrowse/mobx-state-tree'
8
8
 
9
9
  import {
10
10
  type AnnotationFeature,
11
11
  AnnotationFeatureModel,
12
12
  type AnnotationFeatureSnapshot,
13
- } from './AnnotationFeatureModel'
13
+ } from './AnnotationFeatureModel.js'
14
14
 
15
15
  export const Sequence = types.model({
16
16
  start: types.number,
@@ -100,7 +100,7 @@ export const ApolloRefSeq = types
100
100
  self.sequence.length === consolidatedSequences.length &&
101
101
  self.sequence.every(
102
102
  (s, idx) =>
103
- s.start === consolidatedSequences[idx].start &&
103
+ s.start === consolidatedSequences[idx]?.start &&
104
104
  s.stop === consolidatedSequences[idx].stop,
105
105
  )
106
106
  ) {
@@ -1,6 +1,6 @@
1
- import { type Instance, type SnapshotIn, types } from 'mobx-state-tree'
1
+ import { type Instance, type SnapshotIn, types } from '@jbrowse/mobx-state-tree'
2
2
 
3
- import { AnnotationFeatureModel } from './AnnotationFeatureModel'
3
+ import { AnnotationFeatureModel } from './AnnotationFeatureModel.js'
4
4
 
5
5
  export const CheckResult = types.model('CheckResult', {
6
6
  _id: types.identifier,
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './AnnotationFeatureModel'
2
- export * from './ApolloAssembly'
3
- export * from './ApolloRefSeq'
4
- export * from './CheckResult'
1
+ export * from './AnnotationFeatureModel.js'
2
+ export * from './ApolloAssembly.js'
3
+ export * from './ApolloRefSeq.js'
4
+ export * from './CheckResult.js'
package/tsconfig.json CHANGED
@@ -1,17 +1,11 @@
1
1
  {
2
- "extends": "../../tsconfig-base.json",
2
+ "extends": "../../tsconfig",
3
3
  "compilerOptions": {
4
4
  "composite": true,
5
5
  "incremental": true,
6
6
  "outDir": "./dist",
7
7
  "rootDir": "./src",
8
- "target": "ES2022",
9
- "lib": ["ES2022", "DOM"],
10
- "module": "CommonJS",
11
8
  "tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo",
12
- "experimentalDecorators": true,
13
- "emitDecoratorMetadata": true,
14
- "strictPropertyInitialization": false,
15
9
  },
16
10
  "include": ["./src"],
17
11
  }