@jbrowse/plugin-text-indexing 4.3.0 → 5.0.0-beta.2

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.
@@ -1,16 +1,25 @@
1
1
  import RpcMethodType from '@jbrowse/core/pluggableElementTypes/RpcMethodType';
2
- import type { Track, indexType } from '@jbrowse/text-indexing';
3
- export declare class TextIndexRpcMethod extends RpcMethodType {
4
- name: string;
5
- execute(args: {
6
- sessionId: string;
7
- stopToken?: string;
8
- outLocation?: string;
9
- attributes?: string[];
10
- exclude?: string[];
11
- assemblies?: string[];
12
- indexType?: indexType;
13
- tracks: Track[];
14
- statusCallback: (message: string) => void;
15
- }, _rpcDriverClassName: string): Promise<void>;
2
+ import type { RpcExecuteArgs } from '@jbrowse/core/rpc/RpcRegistry';
3
+ import type { indexType } from '@jbrowse/text-indexing';
4
+ import type { Track } from '@jbrowse/text-indexing-core';
5
+ interface TextIndexRpcMethodArgs {
6
+ outLocation: string;
7
+ attributes?: string[];
8
+ exclude?: string[];
9
+ assemblies?: string[];
10
+ indexType?: indexType;
11
+ tracks: Track[];
16
12
  }
13
+ declare module '@jbrowse/core/rpc/RpcRegistry' {
14
+ interface RpcRegistry {
15
+ TextIndexRpcMethod: {
16
+ args: TextIndexRpcMethodArgs;
17
+ return: void;
18
+ };
19
+ }
20
+ }
21
+ export declare class TextIndexRpcMethod extends RpcMethodType<'TextIndexRpcMethod'> {
22
+ name: 'TextIndexRpcMethod';
23
+ execute(args: RpcExecuteArgs<'TextIndexRpcMethod'>): Promise<void>;
24
+ }
25
+ export {};
@@ -3,7 +3,7 @@ import { checkStopToken } from '@jbrowse/core/util/stopToken';
3
3
  import { indexTracks } from '@jbrowse/text-indexing';
4
4
  export class TextIndexRpcMethod extends RpcMethodType {
5
5
  name = 'TextIndexRpcMethod';
6
- async execute(args, _rpcDriverClassName) {
6
+ async execute(args) {
7
7
  const { tracks, outLocation, exclude, attributes, assemblies, indexType, stopToken, statusCallback, } = args;
8
8
  checkStopToken(stopToken);
9
9
  await indexTracks({
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import Plugin from '@jbrowse/core/Plugin';
2
- import { TextIndexRpcMethod } from "./TextIndexRpcMethod/TextIndexRpcMethod.js";
2
+ import { TextIndexRpcMethod } from './TextIndexRpcMethod/TextIndexRpcMethod.js';
3
3
  export default class TextIndexingPlugin extends Plugin {
4
4
  name = 'TextIndexingPlugin';
5
5
  install(pluginManager) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-text-indexing",
3
- "version": "4.3.0",
3
+ "version": "5.0.0-beta.2",
4
4
  "type": "module",
5
5
  "description": "JBrowse 2 text indexing rpc method",
6
6
  "keywords": [
@@ -21,11 +21,12 @@
21
21
  "esm"
22
22
  ],
23
23
  "dependencies": {
24
- "@jbrowse/core": "^4.3.0",
25
- "@jbrowse/text-indexing": "^4.3.0"
24
+ "@jbrowse/core": "^5.0.0-beta.2",
25
+ "@jbrowse/text-indexing-core": "^5.0.0-beta.2",
26
+ "@jbrowse/text-indexing": "^5.0.0-beta.2"
26
27
  },
27
28
  "peerDependencies": {
28
- "react": ">=18.0.0"
29
+ "react": ">=19.0.0"
29
30
  },
30
31
  "publishConfig": {
31
32
  "access": "public"
@@ -33,16 +34,13 @@
33
34
  "sideEffects": false,
34
35
  "scripts": {
35
36
  "build": "pnpm run /^build:/",
36
- "test": "cd ../..; jest --passWithNoTests plugins/text-indexing",
37
+ "test": "jest --config ../../jest.config.js --passWithNoTests --testPathPatterns plugins/text-indexing",
37
38
  "prebuild": "pnpm clean",
38
- "build:esm": "tsc -p tsconfig.build.esm.json",
39
+ "build:esm": "node ../../node_modules/typescript7/bin/tsc --build tsconfig.build.esm.json",
39
40
  "clean": "rimraf esm *.tsbuildinfo"
40
41
  },
41
42
  "types": "esm/index.d.ts",
42
43
  "exports": {
43
- ".": {
44
- "types": "./esm/index.d.ts",
45
- "import": "./esm/index.js"
46
- }
44
+ ".": "./esm/index.js"
47
45
  }
48
46
  }