@stacksjs/bumpx
Advanced tools
+21
| # MIT License | ||
| Copyright (c) 2024 Open Web Foundation | ||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
+1
-1
@@ -7,2 +7,2 @@ import type { BumpxConfig, VersionBumpOptions } from './types'; | ||
| export declare function defineConfig(config: VersionBumpOptions): VersionBumpOptions; | ||
| export declare const defaultConfig: BumpxConfig; | ||
| export declare const defaultConfig: BumpxConfig; |
+1
-1
| export * from './config'; | ||
| export * from './types'; | ||
| export * from './utils'; | ||
| export * from './version-bump'; | ||
| export * from './version-bump'; |
@@ -7,5 +7,7 @@ /** | ||
| * Global flag to track user interrupt status | ||
| * @defaultValue `{ value: false }` | ||
| */ | ||
| export declare const userInterrupted: { | ||
| value: false | ||
| }; | ||
| /** @defaultValue false */ | ||
| value: boolean | ||
| }; |
+6
-4
@@ -30,2 +30,3 @@ export declare interface VersionBumpOptions { | ||
| verbose?: boolean | ||
| onlyChangedSince?: boolean | string | ||
| } | ||
@@ -66,2 +67,3 @@ export declare interface BumpxConfig extends VersionBumpOptions { | ||
| workspaces?: string[] | { packages: string[] } | ||
| [key: string]: any | ||
| } | ||
@@ -93,5 +95,5 @@ export declare interface FileInfo { | ||
| } | ||
| export type ReleaseType = 'major' | 'minor' | 'patch' | 'premajor' | 'preminor' | 'prepatch' | 'prerelease' | ||
| export type BumpxOptions = Partial<BumpxConfig> | ||
| export type ProgressCallback = (progress: VersionBumpProgress) => void | ||
| export type ReleaseType = 'major' | 'minor' | 'patch' | 'premajor' | 'preminor' | 'prepatch' | 'prerelease'; | ||
| export type BumpxOptions = Partial<BumpxConfig>; | ||
| export type ProgressCallback = (_progress: VersionBumpProgress) => void; | ||
| export declare enum ProgressEvent { | ||
@@ -111,2 +113,2 @@ FileUpdated = 'fileUpdated', | ||
| FatalError = 2, | ||
| } | ||
| } |
+84
-17
@@ -43,2 +43,25 @@ import type { FileInfo, PackageJson, ReleaseType } from './types'; | ||
| /** | ||
| * Resolve `onlyChangedSince` to a concrete git ref. | ||
| * | ||
| * `true` β most recent annotated/lightweight `v*.*.*` tag (semver | ||
| * release tags). String values pass through unchanged. Returns `null` | ||
| * when no suitable tag exists (first release / unreleased repo) so | ||
| * callers can skip the filter entirely instead of erroring out. | ||
| */ | ||
| export declare function resolveChangedSinceRef(value: boolean | string, cwd?: string): string | null; | ||
| /** | ||
| * Whether the working tree under `dir` differs from `ref`. | ||
| * | ||
| * Treats *anything* committed under the directory as a change, including | ||
| * deletions, renames, and mode changes. Files outside the directory | ||
| * (root README, lockfile, etc.) don't count toward a leaf package's | ||
| * "changed" status, so a release that only updates the root README | ||
| * doesn't accidentally re-bump every leaf. | ||
| * | ||
| * On any git error we conservatively return `true` (treat as changed) | ||
| * so the worst case is "we bumped something we didn't strictly need to" | ||
| * rather than "we silently skipped a real change". | ||
| */ | ||
| export declare function hasChangedSince(ref: string, dir: string, cwd?: string): boolean; | ||
| /** | ||
| * Check git status | ||
@@ -94,3 +117,3 @@ */ | ||
| */ | ||
| export declare function logStep(emoji: string, message: string, isDryRun?: any): void; | ||
| export declare function logStep(emoji: string, message: string, isDryRun?: boolean): void; | ||
| /** | ||
@@ -102,22 +125,66 @@ * Sleep function for animation delays | ||
| * Console symbols for better output | ||
| * @defaultValue | ||
| * ```ts | ||
| * { | ||
| * success: 'β', | ||
| * error: 'β', | ||
| * warning: 'β ', | ||
| * info: 'βΉ', | ||
| * question: '?', | ||
| * search: 'π', | ||
| * package: 'π¦', | ||
| * rocket: 'π', | ||
| * checkmark: 'β ', | ||
| * memo: 'π', | ||
| * tag: 'π·', | ||
| * cloud: 'β¬οΈ', | ||
| * inbox: 'π₯', | ||
| * party: 'π' | ||
| * } | ||
| * ``` | ||
| */ | ||
| export declare const symbols: { | ||
| success: 'β'; | ||
| error: 'β'; | ||
| warning: 'β '; | ||
| info: 'βΉ'; | ||
| question: '?'; | ||
| // New animated step symbols | ||
| search: 'π'; | ||
| package: 'π¦'; | ||
| rocket: 'π'; | ||
| checkmark: 'β '; | ||
| memo: 'π'; | ||
| tag: 'π·'; | ||
| cloud: 'β¬οΈ'; | ||
| inbox: 'π₯'; | ||
| party: 'π' | ||
| /** @defaultValue 'β' */ | ||
| success: string; | ||
| /** @defaultValue 'β' */ | ||
| error: string; | ||
| /** @defaultValue 'β ' */ | ||
| warning: string; | ||
| /** @defaultValue 'βΉ' */ | ||
| info: string; | ||
| /** @defaultValue '?' */ | ||
| question: string; | ||
| /** @defaultValue 'π' */ | ||
| search: string; | ||
| /** @defaultValue 'π¦' */ | ||
| package: string; | ||
| /** @defaultValue 'π' */ | ||
| rocket: string; | ||
| /** @defaultValue 'β ' */ | ||
| checkmark: string; | ||
| /** @defaultValue 'π' */ | ||
| memo: string; | ||
| /** @defaultValue 'π·' */ | ||
| tag: string; | ||
| /** @defaultValue 'β¬οΈ' */ | ||
| cloud: string; | ||
| /** @defaultValue 'π₯' */ | ||
| inbox: string; | ||
| /** @defaultValue 'π' */ | ||
| party: string | ||
| }; | ||
| /** | ||
| * Colorize console output (simple ANSI colors) | ||
| * @defaultValue | ||
| * ```ts | ||
| * { | ||
| * green: (text: string) => unknown, | ||
| * red: (text: string) => unknown, | ||
| * yellow: (text: string) => unknown, | ||
| * blue: (text: string) => unknown, | ||
| * gray: (text: string) => unknown, | ||
| * bold: (text: string) => unknown, | ||
| * italic: (text: string) => unknown | ||
| * } | ||
| * ``` | ||
| */ | ||
@@ -146,2 +213,2 @@ export declare const colors: { | ||
| toString(): string; | ||
| } | ||
| } |
@@ -1,2 +0,1 @@ | ||
| import { } from './utils'; | ||
| import type { VersionBumpOptions } from './types'; | ||
@@ -6,2 +5,3 @@ /** | ||
| */ | ||
| export declare function versionBump(options: VersionBumpOptions): Promise<void>; | ||
| // eslint-disable-next-line no-unused-vars | ||
| export declare function versionBump(options: VersionBumpOptions): Promise<void>; |
+1
-1
| { | ||
| "name": "@stacksjs/bumpx", | ||
| "type": "module", | ||
| "version": "0.2.4", | ||
| "version": "0.2.5", | ||
| "description": "Automatically bump your versions.", | ||
@@ -6,0 +6,0 @@ "author": "Chris Breuer <chris@stacksjs.org>", |
+5
-0
@@ -171,3 +171,5 @@ <p align="center"><img src=".github/art/cover.jpg" alt="Social Card of this repo"></p> | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
@@ -180,5 +182,7 @@ token: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: Install dependencies | ||
| run: bun install | ||
| - name: Configure git | ||
| run: | | ||
@@ -189,2 +193,3 @@ git config --global user.name "github-actions[bot]" | ||
| - name: Version bump and release | ||
| run: bunx bumpx ${{ github.event.inputs.release_type }} --ci | ||
@@ -191,0 +196,0 @@ ``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
717788
0.66%11
10%3741
2.19%332
1.53%