From 623ac71d83fb44057f6cfddecdc860f21bb368d4 Mon Sep 17 00:00:00 2001 From: Chris Blackburn Date: Tue, 12 Aug 2025 15:44:31 -0400 Subject: [PATCH 1/2] Prepare release of version 2.14.0 --- CHANGELOG.md | 13 +++++++++++++ build/metadata/bitbucket/README.md | 6 +++--- build/metadata/bitbucket/pipe.yml | 2 +- build/metadata/github-actions/Dockerfile | 2 +- build/metadata/github-actions/README.md | 4 ++-- build/package/circleci/orb.yml | 8 ++++---- internal/version/version.go | 2 +- 7 files changed, 25 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 50b054a1f..015afcd1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,19 @@ All notable changes to the ld-find-code-refs program will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org). +## [2.14.0] - 2025-08-12 +### Added: +- `--skipArchivedFlags` option to instruct the tool to ignore any flag keys it finds from archived flags + +### Changed: +- replaced the stdlib `regexp` with `go-re2` for improved regexp compilation and pattern matching +- now using caching to optimize file globbing and regex compilation +- move off of legacy `olekukonko/tablewriter` and onto `v1.x` +- updated to the latest version of the LaunchDarkly API + +### Fixed: +- `subdirectory` option now works with `projects[*].dir` configuration, and produces correct "View in source" links in the LD UI + ## [2.13.0] - 2024-12-18 ### Added: - `subdirectory` option to set path to `.launchdarkly/coderefs.yaml` config file if not located in the root, in order to support monorepo subdirectories. diff --git a/build/metadata/bitbucket/README.md b/build/metadata/bitbucket/README.md index be94ebc57..10ca59fe1 100644 --- a/build/metadata/bitbucket/README.md +++ b/build/metadata/bitbucket/README.md @@ -5,7 +5,7 @@ Job for finding and sending feature flag code references to LaunchDarkly Add the following snippet to the script section of your `bitbucket-pipelines.yml` file: ```yaml -- pipe: launchdarkly/ld-find-code-refs-pipe:2.13.0 +- pipe: launchdarkly/ld-find-code-refs-pipe:2.14.0 environment: LD_ACCESS_TOKEN: "" LD_PROJ_KEY: "" # Required unless using 'projects' block in configuration file then it must be omitted. @@ -51,7 +51,7 @@ A LaunchDarkly personal access token with writer-level access, or access to the Minimal configuration: ```yaml script: - - pipe: launchdarkly/ld-find-code-refs-pipe:2.13.0 + - pipe: launchdarkly/ld-find-code-refs-pipe:2.14.0 environment: LD_ACCESS_TOKEN: $LD_ACCESS_TOKEN LD_PROJ_KEY: $LD_PROJ_KEY @@ -60,7 +60,7 @@ script: Configuration sending 3 context lines to LaunchDarkly: ```yaml script: - - pipe: launchdarkly/ld-find-code-refs-pipe:2.13.0 + - pipe: launchdarkly/ld-find-code-refs-pipe:2.14.0 environment: LD_ACCESS_TOKEN: $LD_ACCESS_TOKEN LD_PROJ_KEY: $LD_PROJ_KEY diff --git a/build/metadata/bitbucket/pipe.yml b/build/metadata/bitbucket/pipe.yml index 00b186546..25a3753c0 100644 --- a/build/metadata/bitbucket/pipe.yml +++ b/build/metadata/bitbucket/pipe.yml @@ -1,5 +1,5 @@ name: LaunchDarkly Code References -image: launchdarkly/ld-find-code-refs-bitbucket-pipeline:2.13.0 +image: launchdarkly/ld-find-code-refs-bitbucket-pipeline:2.14.0 category: Feature flagging description: Job for finding and sending feature flag code references to LaunchDarkly repository: https://bitbucket.org/launchdarkly/ld-find-code-refs-pipe diff --git a/build/metadata/github-actions/Dockerfile b/build/metadata/github-actions/Dockerfile index 26f59427c..e3d5f0433 100644 --- a/build/metadata/github-actions/Dockerfile +++ b/build/metadata/github-actions/Dockerfile @@ -1,4 +1,4 @@ -FROM launchdarkly/ld-find-code-refs-github-action:2.13.0 +FROM launchdarkly/ld-find-code-refs-github-action:2.14.0 LABEL com.github.actions.name="LaunchDarkly Code References" LABEL com.github.actions.description="Find references to feature flags in your code." diff --git a/build/metadata/github-actions/README.md b/build/metadata/github-actions/README.md index dbdc7de09..36fe689bd 100644 --- a/build/metadata/github-actions/README.md +++ b/build/metadata/github-actions/README.md @@ -28,7 +28,7 @@ jobs: with: fetch-depth: 11 # This value must be set if the lookback configuration option is not disabled for find-code-references. Read more: https://github.com/launchdarkly/ld-find-code-refs#searching-for-unused-flags-extinctions - name: LaunchDarkly Code References - uses: launchdarkly/find-code-references@v2.13.0 + uses: launchdarkly/find-code-references@v2.14.0 with: accessToken: ${{ secrets.LD_ACCESS_TOKEN }} projKey: LD_PROJECT_KEY @@ -71,7 +71,7 @@ jobs: with: fetch-depth: 11 # This value must be set if the lookback configuration option is not disabled for find-code-references. Read more: https://github.com/launchdarkly/ld-find-code-refs#searching-for-unused-flags-extinctions - name: LaunchDarkly Code References - uses: launchdarkly/find-code-references@v2.13.0 + uses: launchdarkly/find-code-references@v2.14.0 with: accessToken: ${{ secrets.LD_ACCESS_TOKEN }} projKey: LD_PROJECT_KEY diff --git a/build/package/circleci/orb.yml b/build/package/circleci/orb.yml index 883ac771e..3c67948fd 100644 --- a/build/package/circleci/orb.yml +++ b/build/package/circleci/orb.yml @@ -9,7 +9,7 @@ examples: usage: version: 2.1 orbs: - launchdarkly: launchdarkly/ld-find-code-refs@2.13.0 + launchdarkly: launchdarkly/ld-find-code-refs@2.14.0 workflows: main: jobs: @@ -23,7 +23,7 @@ examples: usage: version: 2.1 orbs: - launchdarkly: launchdarkly/ld-find-code-refs@2.13.0 + launchdarkly: launchdarkly/ld-find-code-refs@2.14.0 workflows: main: jobs: @@ -38,7 +38,7 @@ examples: usage: version: 2.1 orbs: - launchdarkly: launchdarkly/ld-find-code-refs@2.13.0 + launchdarkly: launchdarkly/ld-find-code-refs@2.14.0 workflows: main: jobs: @@ -107,7 +107,7 @@ jobs: type: integer default: 10 docker: - - image: launchdarkly/ld-find-code-refs:2.13.0 + - image: launchdarkly/ld-find-code-refs:2.14.0 entrypoint: sh steps: - checkout: diff --git a/internal/version/version.go b/internal/version/version.go index 59ce345fb..89c58ec7b 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -1,3 +1,3 @@ package version -const Version = "2.13.0" +const Version = "2.14.0" From 8ab972e21d9e9aa2abda74661c139e31b58973a2 Mon Sep 17 00:00:00 2001 From: Chris Blackburn Date: Wed, 13 Aug 2025 13:10:52 -0400 Subject: [PATCH 2/2] call out LD API version explicitly --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 015afcd1b..6435cd2d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ All notable changes to the ld-find-code-refs program will be documented in this - replaced the stdlib `regexp` with `go-re2` for improved regexp compilation and pattern matching - now using caching to optimize file globbing and regex compilation - move off of legacy `olekukonko/tablewriter` and onto `v1.x` -- updated to the latest version of the LaunchDarkly API +- updated to the latest version of the LaunchDarkly API (17.2.0) ### Fixed: - `subdirectory` option now works with `projects[*].dir` configuration, and produces correct "View in source" links in the LD UI