From 84ec19f45a0bd61cd8f1d41764dafe2a24e90339 Mon Sep 17 00:00:00 2001 From: Miguel Ramos Date: Thu, 19 Sep 2024 17:06:52 +0100 Subject: [PATCH] fix: release as snapshot for any branch except main --- Cargo.toml | 4 ++-- README.md | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index abfd7d9..ca624c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ authors = ["Miguel Ramos "] edition = "2021" name = "websublime_workspace-tools" -version = "1.0.0" +version = "1.0.1" exclude = ["tests/*", "examples/*", "node_modules/*", "target/*"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -17,7 +17,7 @@ napi = { version = "2.16.10", default-features = false, features = [ "serde-json", "tokio_rt", ] } -workspace-node-tools = { version = "2.0.0", features = ["napi", "napi-derive"] } +workspace-node-tools = { version = "2.0.1", features = ["napi", "napi-derive"] } [build-dependencies] napi-build = "2" diff --git a/README.md b/README.md index 5adc704..17acb57 100644 --- a/README.md +++ b/README.md @@ -47,13 +47,13 @@ This package offer a set of functions to retrieve information about the monorepo | `getConventionalForPackage(package_info: PackageInfo, no_fetch_all?: boolean cwd?: string, conventional_options?: ConventionalPackageOptions): ConventionalPackage` | Get the conventional commits for a particular package, changelog output and package info. | | `getBumps(options: BumpOptions): Array` | Output bumps version for packages and it's dependencies | | `initChanges(cwd?: string, change_options?: ChangesOptions): ChangesFileData` | Creat changes file or retrieve is data if already exist | -| `add_change(change: Change, cwd?: string): boolean` | Adds a new change to the change file | -| `remove_change(branch_name: String, cwd?: string): boolean` | Removes the change from the changes files. | -| `change_exist(branch_name: string, packages_name: Array, cwd?: string): boolean` | Check if change already exist. | -| `get_change(branch_name: string, cwd?: string): Array` | Get the list of changes for the branch. | -| `get_changes(cwd?: string): Changes` | Get all changes. | -| `get_package_change(package_name: string, branch: string, cwd?: string): Changes` | Get a change by package name. | -| `changes_file_exist(cwd?: string): boolean` | Check if `.changes.json` file exist | +| `addChange(change: Change, cwd?: string): boolean` | Adds a new change to the change file | +| `removeChange(branch_name: String, cwd?: string): boolean` | Removes the change from the changes files. | +| `changeExist(branch_name: string, packages_name: Array, cwd?: string): boolean` | Check if change already exist. | +| `getChange(branch_name: string, cwd?: string): Array` | Get the list of changes for the branch. | +| `getChanges(cwd?: string): Changes` | Get all changes. | +| `getPackageChange(package_name: string, branch: string, cwd?: string): Changes` | Get a change by package name. | +| `changesFileExist(cwd?: string): boolean` | Check if `.changes.json` file exist | ## Develop requirements