@@ -5,20 +5,20 @@ import { join } from 'path';
55import { exists } from './utils' ;
66
77// handle normal npm package regex
8- export const NPM_PACKAGE_REGEX = / ( b s o n - e x t | b s o n ) @ ( ( \d + ( \. \d + ) ? ( \. \d + ) ? ) | l a t e s t ) / ;
8+ export const NPM_PACKAGE_REGEX = / ( b s o n ) @ ( ( \d + ( \. \d + ) ? ( \. \d + ) ? ) | l a t e s t ) / ;
99// handle git tags/commits
10- export const GIT_PACKAGE_REGEX = / ( b s o n - e x t | b s o n ) # ( .+ ) / ;
10+ export const GIT_PACKAGE_REGEX = / ( b s o n ) # ( .+ ) / ;
1111// handle local package
12- export const LOCAL_PACKAGE_REGEX = / ( b s o n - e x t | b s o n ) : ( .+ ) / ;
12+ export const LOCAL_PACKAGE_REGEX = / ( b s o n ) : ( .+ ) / ;
1313
1414/**
15- * The Package class represents the bson or bson-ext package to be tested
15+ * The Package class represents the bson package to be tested
1616 * This package can be an npm package, a git repository or a local package
1717 **/
1818export class Package {
1919 type : 'npm' | 'git' | 'local' ;
2020 // bson library to install
21- library : 'bson' | 'bson-ext' ;
21+ library : 'bson' ;
2222 computedModuleName : string ;
2323 // semver version specification
2424 npmVersion ?: string ;
@@ -33,17 +33,17 @@ export class Package {
3333 let match : RegExpExecArray | null ;
3434 if ( ( match = NPM_PACKAGE_REGEX . exec ( libSpec ) ) ) {
3535 this . type = 'npm' ;
36- this . library = match [ 1 ] as 'bson' | 'bson-ext' ;
36+ this . library = match [ 1 ] as 'bson' ;
3737 this . npmVersion = match [ 2 ] ;
3838 this . computedModuleName = `${ this . library } -${ this . npmVersion } ` ;
3939 } else if ( ( match = GIT_PACKAGE_REGEX . exec ( libSpec ) ) ) {
4040 this . type = 'git' ;
41- this . library = match [ 1 ] as 'bson' | 'bson-ext' ;
41+ this . library = match [ 1 ] as 'bson' ;
4242 this . gitCommitish = match [ 2 ] ;
4343 this . computedModuleName = `${ this . library } -git-${ this . gitCommitish } ` ;
4444 } else if ( ( match = LOCAL_PACKAGE_REGEX . exec ( libSpec ) ) ) {
4545 this . type = 'local' ;
46- this . library = match [ 1 ] as 'bson' | 'bson-ext' ;
46+ this . library = match [ 1 ] as 'bson' ;
4747
4848 this . localPath = match [ 2 ] ;
4949 const cleanedLocalPath = this . localPath . replaceAll ( '/' , '_' ) . replaceAll ( '\\' , '_' ) ;
@@ -81,9 +81,6 @@ export class Package {
8181 case 'bson' :
8282 source = `git://github.com/mongodb/js-bson#${ this . gitCommitish } ` ;
8383 break ;
84- case 'bson-ext' :
85- source = `git://github.com/mongodb-js/bson-ext#${ this . gitCommitish } ` ;
86- break ;
8784 }
8885 break ;
8986 case 'local' :
@@ -130,7 +127,7 @@ export type BenchmarkSpecification = {
130127 iterations : number ;
131128 /** Number of iterations that will be run to warm up the V8 engine */
132129 warmup : number ;
133- /** Specifier of the bson or bson-ext library to be used. Can be an npm package, git repository or
130+ /** Specifier of the bson library to be used. Can be an npm package, git repository or
134131 * local package */
135132 library : string ;
136133 installLocation ?: string ;
0 commit comments