feat: Ditch bluebird, lodash and plist#173
Merged
mykola-mokhnach merged 3 commits intoappium:masterfrom Apr 27, 2026
Merged
Conversation
KazuCocoa
approved these changes
Apr 27, 2026
github-actions Bot
pushed a commit
that referenced
this pull request
Apr 27, 2026
## [6.2.0](v6.1.10...v6.2.0) (2026-04-27) ### Features * Ditch bluebird, lodash and plist ([#173](#173)) ([a7c88ca](a7c88ca))
|
🎉 This PR is included in version 6.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
There was a problem hiding this comment.
Pull request overview
This PR removes direct dependencies on bluebird, lodash, and plist by replacing their usages with native APIs and in-house helpers, and migrates the test suite to TypeScript.
Changes:
- Remove
bluebird,lodash, andplistfrompackage.jsonand replace usages inlib/with native equivalents. - Introduce a local
memoizehelper and replace lodash memoization inlib/xcode.ts. - Convert unit/e2e tests from JS to TS and update mocha/tsconfig configuration accordingly.
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tsconfig.json | Adds mocha types and includes tests in the TS project. |
| package.json | Removes deps/types and updates mocha globs to run *-specs.ts. |
| lib/helpers.ts | Removes lodash/bluebird usage; adds memoize; switches to Promise.all and native string trimming. |
| lib/xcode.ts | Replaces lodash helpers/memoize with local implementations. |
| test/unit/index-specs.ts | Switches chai usage from dynamic import/should to expect. |
| test/unit/helpers-specs.ts | Adds unit tests for the new memoize helper. |
| test/e2e/xcode-specs.ts | Replaces JS e2e specs with TypeScript + chai-as-promised. |
| test/e2e/xcode-specs.js | Removes the old JS e2e specs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+14
to
+24
| export function memoize<Args extends unknown[], Result>( | ||
| fn: (...args: Args) => Result, | ||
| ): (...args: Args) => Result { | ||
| const cache = new Map<string, Result>(); | ||
| return (...args: Args): Result => { | ||
| const key = JSON.stringify(args); | ||
| if (!cache.has(key)) { | ||
| cache.set(key, fn(...args)); | ||
| } | ||
| return cache.get(key) as Result; | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.