mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	chore: use semver compatible version (#5678)
## About the changes Replicate the change made to respect semver
This commit is contained in:
		
							parent
							
								
									8e09f08a05
								
							
						
					
					
						commit
						061bd7ef32
					
				| @ -1,7 +1,7 @@ | ||||
| { | ||||
|   "name": "unleash-server", | ||||
|   "description": "Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.", | ||||
|   "version": "5.7.0-main", | ||||
|   "version": "5.7.0+main", | ||||
|   "keywords": ["unleash", "feature toggle", "feature", "toggle"], | ||||
|   "files": [ | ||||
|     "dist", | ||||
|  | ||||
| @ -47,7 +47,10 @@ test('should serve the OpenAPI spec with a `version` property', async () => { | ||||
|         .expect((res) => { | ||||
|             const { version } = res.body.info; | ||||
|             // ensure there's no whitespace or leading `v`
 | ||||
|             expect(semver.clean(version)).toStrictEqual(version); | ||||
|             // clean removes +anything modifier from the version
 | ||||
|             expect(version).toMatch( | ||||
|                 new RegExp(`^${semver.clean(version) ?? 'invalid semver'}`), | ||||
|             ); | ||||
| 
 | ||||
|             // ensure the version listed is valid semver
 | ||||
|             expect(semver.parse(version, { loose: false })).toBeTruthy(); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user