Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query not as expected #58

Closed
bluelovers opened this issue Aug 11, 2020 · 1 comment
Closed

query not as expected #58

bluelovers opened this issue Aug 11, 2020 · 1 comment

Comments

@bluelovers
Copy link

import _packageJson, {
	Options,
	AbbreviatedVersion,
	AbbreviatedMetadata,
	FullMetadataOptions,
	FullMetadata,
} from 'package-json';

_packageJson('typescript', {
	version: '^4.0.0-dev.20200615',
}).then((json) => {
	console.dir(json)
})

console.dir(new Range('^4.0.0-dev.20200615'), {
	depth: null,
})

should return 4.1.0-dev.20200811 but get 4.0.0-dev.20200803

semver range ^4.0.0-dev.20200615 same as >=4.0.0-dev.20200615 <5.0.0-0

@sindresorhus
Copy link
Owner

Closing as this is an issue with the semver package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants