@@ -17,7 +17,8 @@ const RELEASES: Record<number, VersionName[]> = {
1717 4 : [ '1.13.x' , '1.14.x' ] ,
1818 5 : [ '1.15.x' , '1.16.0' , '1.16.1' ] ,
1919 6 : [ '1.16.x' ] ,
20- 7 : [ '1.17.x' , '1.18.0' ] ,
20+ 7 : [ '1.17.x' ] ,
21+ 8 : [ '1.18.x' ] ,
2122}
2223
2324const SPECIAL : Record < number , string [ ] > = {
@@ -36,6 +37,7 @@ const START_SNAPSHOTS: Record<SnapshotName, Record<PackType, FormatResult>> = {
3637 '20w06a' : { resource : 5 , data : 5 } ,
3738 '20w45a' : { resource : 7 , data : 6 } ,
3839 '20w46a' : { resource : 7 , data : 7 } ,
40+ '21w37a' : { resource : 8 , data : 8 } ,
3941 [ fauxCurrentSnapshot ] : { resource : undefined , data : undefined } ,
4042}
4143
@@ -64,11 +66,17 @@ function getPackFormat(version: string, type: PackType = 'resource'): FormatResu
6466
6567 // Release //
6668
67- version = version . replace ( / - ? * p r e [ - ] ? ( r e l e a s e ) ? * / , '-pre' ) . replace ( / * r e l e a s e c a n d i d a t e * / , '-rc' )
69+ version = version
70+ . replace ( / - ? * p r e [ - ] ? ( r e l e a s e ) ? * / , '-pre' )
71+ . replace ( / * r e l e a s e c a n d i d a t e * / , '-rc' )
72+ . replace ( / * e x p e r i m e n t a l * s n a p s h o t | - e s / , '-exp' )
6873
6974 if ( version . includes ( '-' ) ) {
75+ // Special cases for specific development versions
7076 if ( version . includes ( '1.16.2-pre' ) ) return 5
71- else version = version . replace ( / - .+ $ / , '' )
77+ if ( version . includes ( '1.18-e' ) ) return 7
78+ // Default to the parent version
79+ version = version . replace ( / - .+ $ / , '' )
7280 }
7381 if ( / ^ \d + \. \d + $ / . test ( version ) ) version += '.0'
7482
0 commit comments