Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: lumirlumir/npm-clang-format-node
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.3.4
Choose a base ref
...
head repository: lumirlumir/npm-clang-format-node
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.3.5
Choose a head ref
  • 5 commits
  • 43 files changed
  • 2 contributors

Commits on Jul 12, 2025

  1. build(*): add cp.mjs script for file copying and update build scrip…

    …ts (#400)
    
    This pull request introduces updates to streamline file copying
    processes across multiple packages, refactor scripts for consistency,
    and improve documentation. The most significant changes involve the
    addition of a reusable file copy script (`cp.mjs`), updates to package
    build commands to use this script, and the replacement of `apt` commands
    with `apt-get` for better compatibility.
    
    ### File Copying Enhancements:
    * Added a new script `scripts/cp.mjs` to facilitate file copying with
    support for recursive and forced operations. This script is now reusable
    across packages.
    * Updated `build` scripts in
    `packages/clang-format-git-python/package.json`,
    `packages/clang-format-git/package.json`, and
    `packages/clang-format-node/package.json` to replace `shx cp` commands
    with `node ../../scripts/cp.mjs`, enhancing consistency and
    maintainability.
    [[1]](diffhunk://#diff-fb0eb5dba5b2656b3fdea4322c2ed2a691973f2e9ea536ce20b36c347ab1267eL53-R53)
    [[2]](diffhunk://#diff-d85dcfb0934f579cff896723ab5eeb9a52668d2bb322338dddd93bc1241aa4f1L52-R52)
    [[3]](diffhunk://#diff-6e04d643c57b851ab02ad78e41531387d2cc01caf6c4cfbaa536aadd37346a30L51-R51)
    
    ### Configuration Updates:
    * Added `cp.mjs` to `.github/sync-client.yml` for syncing scripts across
    repositories.
    
    ### Compatibility Improvements:
    * Replaced `apt` commands with `apt-get` in
    `.github/workflows/test-cross-platform.yml` and
    `website/docs/further-reading/build-process.md` for improved
    compatibility and standardization.
    [[1]](diffhunk://#diff-290907d9a4bcf13181105b134bd1645da5a3ef27c54f148ad5823e6b77e88426L172-R173)
    [[2]](diffhunk://#diff-edab0f47c80e77f546d2197d14eaba72fd8253dfe4cae3ff34f13f80c229a394L12-R13)
    lumirlumir authored Jul 12, 2025
    Configuration menu
    Copy the full SHA
    0f5dd9a View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2025

  1. refactor(*): simplify paths to the binary files (#401)

    This pull request reorganizes the directory structure of several
    packages (`clang-format-git`, `clang-format-git-python`, and
    `clang-format-node`) to simplify paths and improve consistency. It also
    updates related scripts, tests, and documentation to reflect these
    changes.
    
    ### Directory Structure Updates:
    * `.github/workflows/llvm-build-bump-pr.yml` and
    `.github/workflows/test-cross-platform.yml`: Updated artifact paths for
    `clang-format-git`, `clang-format-git-python`, and `clang-format-node`
    to remove `src` directories and directly reference `bin` or `script`
    directories.
    [[1]](diffhunk://#diff-d608eb75b383338d789a8908995e47499214a7cc55a847771ad73800464b18b0L466-R478)
    [[2]](diffhunk://#diff-290907d9a4bcf13181105b134bd1645da5a3ef27c54f148ad5823e6b77e88426L163-R166)
    
    ### Package Configuration Changes:
    * `packages/clang-format-git/package.json`,
    `packages/clang-format-git-python/package.json`, and
    `packages/clang-format-node/package.json`: Updated `files` arrays to
    include new directories (`bin` or `script`) and modified `build` and
    `chmod` scripts to reflect the updated directory structure.
    [[1]](diffhunk://#diff-d85dcfb0934f579cff896723ab5eeb9a52668d2bb322338dddd93bc1241aa4f1R7)
    [[2]](diffhunk://#diff-d85dcfb0934f579cff896723ab5eeb9a52668d2bb322338dddd93bc1241aa4f1L52-R56)
    [[3]](diffhunk://#diff-fb0eb5dba5b2656b3fdea4322c2ed2a691973f2e9ea536ce20b36c347ab1267eR8)
    [[4]](diffhunk://#diff-fb0eb5dba5b2656b3fdea4322c2ed2a691973f2e9ea536ce20b36c347ab1267eL53-R57)
    [[5]](diffhunk://#diff-6e04d643c57b851ab02ad78e41531387d2cc01caf6c4cfbaa536aadd37346a30R7)
    [[6]](diffhunk://#diff-6e04d643c57b851ab02ad78e41531387d2cc01caf6c4cfbaa536aadd37346a30L51-R55)
    
    ### Code Updates:
    * `packages/clang-format-git/src/utils/getGitClangFormatPath.js` and
    `packages/clang-format-node/src/utils/getClangFormatPath.js`: Adjusted
    path resolution logic to account for the removal of `src` directories.
    [[1]](diffhunk://#diff-1bb2e643c38d95e89f5956f9701352544d048ce9b211521186d0aecda6a2b09bR36)
    [[2]](diffhunk://#diff-69431841c8379c19bac868db91bce476be6122cca550dd2bb841a8fd7d050ebbR36)
    * `packages/clang-format-git-python/src/utils/gitClangFormatPath.js` and
    `packages/clang-format-git-python/src/utils/gitClangFormatPath.test.js`:
    Updated path references for `git-clang-format` script and corresponding
    tests.
    [[1]](diffhunk://#diff-0b92886b850ec05cf8174fb293fc1d7f26dfd6064e907bfc81e09da43c8e1e49L18-R24)
    [[2]](diffhunk://#diff-41c3fa28ed17f0f9ce4b26fa451766e45f1ff88989d94a76cef0cdd408c6f72fL23-R26)
    
    ### Documentation and Script Updates:
    *
    [`website/docs/apis/clang-format-git-python.md`](diffhunk://#diff-5060a3c67544aaba0c41aeee2e68442e779de26fa17d0129b8de744b4ed1fb34L94-R94):
    Updated documentation to reflect the new path for the `git-clang-format`
    script.
    *
    [`scripts/cp.mjs`](diffhunk://#diff-44bb9af56ea76a8568ef9f74fd698177219262b768f1591966533363fdbf0655L22):
    Removed the `recursive` option from the `cpSync` function since it is no
    longer needed for the updated directory structure.
    lumirlumir authored Jul 13, 2025
    Configuration menu
    Copy the full SHA
    ee3b675 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2025

  1. chore(deps-dev): bump eslint from 9.30.1 to 9.31.0 (#403)

    [![Dependabot compatibility
    score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=eslint&package-manager=npm_and_yarn&previous-version=9.30.1&new-version=9.31.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
    
    Dependabot will resolve any conflicts with this PR as long as you don't
    alter it yourself. You can also trigger a rebase manually by commenting
    `@dependabot rebase`.
    
    [//]: # (dependabot-automerge-start)
    [//]: # (dependabot-automerge-end)
    
    ---
    
    <details>
    <summary>Dependabot commands and options</summary>
    <br />
    
    You can trigger Dependabot actions by commenting on this PR:
    - `@dependabot rebase` will rebase this PR
    - `@dependabot recreate` will recreate this PR, overwriting any edits
    that have been made to it
    - `@dependabot merge` will merge this PR after your CI passes on it
    - `@dependabot squash and merge` will squash and merge this PR after
    your CI passes on it
    - `@dependabot cancel merge` will cancel a previously requested merge
    and block automerging
    - `@dependabot reopen` will reopen this PR if it is closed
    - `@dependabot close` will close this PR and stop Dependabot recreating
    it. You can achieve the same result by closing it manually
    - `@dependabot show <dependency name> ignore conditions` will show all
    of the ignore conditions of the specified dependency
    - `@dependabot ignore this major version` will close this PR and stop
    Dependabot creating any more for this major version (unless you reopen
    the PR or upgrade to it yourself)
    - `@dependabot ignore this minor version` will close this PR and stop
    Dependabot creating any more for this minor version (unless you reopen
    the PR or upgrade to it yourself)
    - `@dependabot ignore this dependency` will close this PR and stop
    Dependabot creating any more for this dependency (unless you reopen the
    PR or upgrade to it yourself)
    
    
    </details>
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 14, 2025
    Configuration menu
    Copy the full SHA
    168f217 View commit details
    Browse the repository at this point in the history
  2. fix(*): drop shx and replace it with Node.js native script (#402)

    This pull request refactors the handling of file permissions across
    three packages (`clang-format-git-python`, `clang-format-git`, and
    `clang-format-node`) by replacing the use of the `shx` dependency with
    custom `chmod.js` scripts. These scripts ensure that the necessary files
    and binaries have the correct execution permissions. Additionally, the
    `postinstall` and `postbuild` scripts are updated to use these new
    `chmod.js` files, and the `shx` dependency is removed.
    
    ### File Permission Handling Updates:
    *
    [`packages/clang-format-git-python/chmod.js`](diffhunk://#diff-27b69f71118a60e9a2ad54a11e79e10b8485e6080af45ec037ee193fd598c77cR1-R26):
    Added a script to set execution permissions for the `git-clang-format`
    script using `chmodSync`.
    *
    [`packages/clang-format-git/chmod.js`](diffhunk://#diff-337db8b3485bbb276d0c1b16655b094b11cf7605b7adc8e52a4b3f06d0e9edabR1-R33):
    Added a script to set execution permissions for binaries in the `bin`
    directory, filtering for files containing `git-clang-format`.
    *
    [`packages/clang-format-node/chmod.js`](diffhunk://#diff-36fbb1ea12298f23d64d479606f6b239ed8a2ca3373684dbd49b5037f16bbfe6R1-R36):
    Added a script to set execution permissions for binaries in the `bin`
    directory, filtering for files containing `clang-format`.
    
    ### Package Configuration Updates:
    *
    [`packages/clang-format-git-python/package.json`](diffhunk://#diff-fb0eb5dba5b2656b3fdea4322c2ed2a691973f2e9ea536ce20b36c347ab1267eR9):
    Added `chmod.js` to the `files` array, replaced `npm run chmod` with
    `node chmod.js` in the `postinstall` script, and removed the `shx`
    dependency.
    [[1]](diffhunk://#diff-fb0eb5dba5b2656b3fdea4322c2ed2a691973f2e9ea536ce20b36c347ab1267eR9)
    [[2]](diffhunk://#diff-fb0eb5dba5b2656b3fdea4322c2ed2a691973f2e9ea536ce20b36c347ab1267eL52-R61)
    *
    [`packages/clang-format-git/package.json`](diffhunk://#diff-d85dcfb0934f579cff896723ab5eeb9a52668d2bb322338dddd93bc1241aa4f1R9):
    Added `chmod.js` to the `files` array, replaced `npm run chmod` with
    `node chmod.js` in the `postinstall` script, and removed the `shx`
    dependency.
    [[1]](diffhunk://#diff-d85dcfb0934f579cff896723ab5eeb9a52668d2bb322338dddd93bc1241aa4f1R9)
    [[2]](diffhunk://#diff-d85dcfb0934f579cff896723ab5eeb9a52668d2bb322338dddd93bc1241aa4f1L51-R60)
    *
    [`packages/clang-format-node/package.json`](diffhunk://#diff-6e04d643c57b851ab02ad78e41531387d2cc01caf6c4cfbaa536aadd37346a30R9):
    Added `chmod.js` to the `files` array, replaced `npm run chmod` with
    `node chmod.js` in the `postinstall` script, and removed the `shx`
    dependency.
    [[1]](diffhunk://#diff-6e04d643c57b851ab02ad78e41531387d2cc01caf6c4cfbaa536aadd37346a30R9)
    [[2]](diffhunk://#diff-6e04d643c57b851ab02ad78e41531387d2cc01caf6c4cfbaa536aadd37346a30L50-L60)
    lumirlumir authored Jul 14, 2025
    Configuration menu
    Copy the full SHA
    df49101 View commit details
    Browse the repository at this point in the history
  3. chore(release): bump package versions from v1.3.4 to v1.3.5 (`pat…

    …ch`) (#404)
    
    ## Release Information: `v1.3.5`
    
    New release of `lumirlumir/npm-clang-format-node` has arrived! 🎉
    
    This PR bumps the package versions from `v1.3.4` to `v1.3.5` (`patch`).
    
    See
    [Actions](https://github.com/lumirlumir/npm-clang-format-node/actions/runs/16264909140)
    for more details.
    
    | Info        | Value                      |
    | ----------- | -------------------------- |
    | Repository  | `lumirlumir/npm-clang-format-node` |
    | SEMVER      | `patch`     |
    | Pre ID      | `canary`      |
    | Short SHA   | df49101       |
    | Old Version | `v1.3.4`  |
    | New Version | `v1.3.5`  |
    
    <!-- Release notes generated using configuration in .github/release.yml
    at main -->
    
    ## What's Changed
    ### 🐛 Bug Fixes
    * fix(*): drop `shx` and replace it with Node.js native script by
    @lumirlumir in
    #402
    ### 🛠️ Builds
    * build(*): add `cp.mjs` script for file copying and update build
    scripts by @lumirlumir in
    #400
    ### ♻️ Code Refactoring
    * refactor(*): simplify paths to the binary files by @lumirlumir in
    #401
    ### ⬆️ Dependency Updates
    * chore(deps-dev): bump eslint from 9.30.1 to 9.31.0 by @dependabot[bot]
    in #403
    
    
    **Full Changelog**:
    v1.3.4...v1.3.5
    lumirlumir authored Jul 14, 2025
    Configuration menu
    Copy the full SHA
    6469d99 View commit details
    Browse the repository at this point in the history
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy