hasundue / molt

Update dependencies the Deno way
https://jsr.io/@molt
MIT License
78 stars 5 forks source link

core: support `increase` versioning strategy #222

Open Shougo opened 1 month ago

Shougo commented 1 month ago

When

export type { Context, Item } from "jsr:@shougo/ddc-vim@6.0.0/types";
% molt **/*.ts --no-resolve --write
πŸ“¦ @shougo/ddc-vim 6.0.0 => 6.0.1

OK.

But

export type { Context, Item } from "jsr:@shougo/ddc-vim@^6.0.0/types";
% molt **/*.ts --no-resolve --write
🍡 No updates found

Or

export type { Context, Item } from "jsr:@shougo/ddc-vim@~6.0.0/types";
% molt **/*.ts --no-resolve --write
🍡 No updates found

Please support it.

4513ECHO commented 1 month ago

What is your molt version?

Shougo commented 1 month ago

OK. I have updated it. But same.

hasundue commented 1 month ago

Thanks but this is an expected behavior as described in README:

[!NOTE]\ Molt uses a similar versioning strategy as increase-if-necessary in dependabot to bump version ranges[^1].

Because this should be the best strategy for most of the cases.

If you need to increase the minimum requirement of a dependency, that should be a manual operation with a careful thought.

However, we also want to provide a way to automate such operations (especially when you just have direct imports in source codes). So please be patient for itπŸ™