πŸš€ Big News:Socket Has Acquired Secure Annex.Learn More β†’
Socket
Book a DemoSign in
Socket

@stacksjs/bumpx

Package Overview
Dependencies
Maintainers
2
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stacksjs/bumpx - npm Package Compare versions

Comparing version
0.2.4
to
0.2.5
+21
LICENSE.md
# 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;
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
};

@@ -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,
}
}

@@ -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>;
{
"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>",

@@ -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