From 8541e36bd55c6de2403690d2af91d4ed00d0bd92 Mon Sep 17 00:00:00 2001 From: Luke Melia Date: Tue, 27 Oct 2026 18:53:53 -0400 Subject: [PATCH] Remove unused bin/changelog and its dev dependencies Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Rvn9nzW2qDp8TtbmZ4mEve --- bin/changelog | 85 -------------------------------------------------- package.json | 2 -- pnpm-lock.yaml | 27 ---------------- 3 files changed, 114 deletions(-) delete mode 100755 bin/changelog diff --git a/bin/changelog b/bin/changelog deleted file mode 100755 index 7460515..0000000 --- a/bin/changelog +++ /dev/null @@ -1,85 +0,0 @@ -#!/usr/bin/env node -'use strict'; - -/* - * This script generates the template a changelog by comparing a current version - * with master. Run this, copy what's logged into the `CHANGELOG.md` and update - * the top section based on the changes listed in "Community Contributions" - * - * Usage: - * - * bin/changelog - */ - -var EOL = require('os').EOL; -var multiline = require('multiline'); -var RSVP = require('rsvp'); -var GitHubApi = require('github'); - -var github = new GitHubApi({version: '3.0.0'}); -var compareCommits = RSVP.denodeify(github.repos.compareCommits); -var currentVersion = 'v' + require('../package').version; - -var user = 'ember-cli-deploy'; -var repo = 'ember-cli-deploy-s3'; - -compareCommits({ - user: user, - repo: repo, - base: currentVersion, - head: 'master' -}).then(function(res) { - return res.commits.map(function(commitInfo) { - return commitInfo.commit.message - - }).filter(function(message) { - return message.indexOf('Merge pull request #') > -1; - - }).map(function(message) { - var numAndAuthor = message.match(/#(\d+) from (.*)\//).slice(1,3); - var title = message.split('\n\n')[1]; - - return { - number: +numAndAuthor[0], - author: numAndAuthor[1], - title: title - }; - - }).sort(function(a, b) { - return a.number > b.number; - }).map(function(pr) { - var link = '[#' + pr.number + ']' + - '(https://github.com/' + user + '/' + repo + '/pull/' + pr.number + ')'; - var title = pr.title; - var author = '[@' + pr.author + ']' + - '(https://github.com/' + pr.author +')'; - - return '- ' + link + ' ' + title + ' ' + author; - - }).join('\n'); - -}).then(function(contributions) { - var changelog = generateChangelog(contributions); - - console.log(changelog); -}).catch(function(err) { - console.error(err); -}) - -function generateChangelog(contributions) { - var header = multiline(function() {/* -The following changes are required if you are upgrading from the previous -version: -- Users - + Upgrade your project's ember-cli version - [docs](http://www.ember-cli.com/#project-update) -- Addon Developers - + No changes required -- Core Contributors - + No changes required -#### Community Contributions - */}); - - var footer = 'Thank you to all who took the time to contribute!'; - - return header + EOL + EOL + contributions + EOL + EOL + footer; -} diff --git a/package.json b/package.json index b48d373..cbe23a6 100644 --- a/package.json +++ b/package.json @@ -35,10 +35,8 @@ "chai-as-promised": "^7.1.1", "ember-cli": "^3.28.6", "eslint": "^8.42.0", - "github": "^14.0.0", "glob": "^10.2.6", "mocha": "^8.3.1", - "multiline": "^2.0.0", "release-it": "^20.2.1" }, "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d6b72e0..0c37177 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -212,18 +212,12 @@ importers: eslint: specifier: ^8.42.0 version: 8.42.0(supports-color@8.1.1) - github: - specifier: ^14.0.0 - version: 14.0.0 glob: specifier: ^10.2.6 version: 10.2.6 mocha: specifier: ^8.3.1 version: 8.3.1 - multiline: - specifier: ^2.0.0 - version: 2.0.0 release-it: specifier: ^20.2.1 version: 20.2.1(supports-color@8.1.1) @@ -2659,10 +2653,6 @@ packages: git-url-parse@16.1.0: resolution: {integrity: sha512-cPLz4HuK86wClEW7iDdeAKcCVlWXmrLpb2L+G9goW0Z1dtpNS6BXXSOckUTlJT/LDQViE1QZKstNORzHsLnobw==} - github@14.0.0: - resolution: {integrity: sha512-34/VqwhYGeYN0VHBSH49TmRWMF7emy32qjK6POiW47T/QI2u/cpuKsmrWt7a218ew/73dF4dQSJE68/HXdNfPw==} - deprecated: '''github'' has been renamed to ''@octokit/rest'' (https://git.io/vNB11)' - glob-parent@5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} @@ -3644,11 +3634,6 @@ packages: ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} - multiline@2.0.0: - resolution: {integrity: sha512-+HpXaUcV8PIGNNmuhtlaVmw4NH0W30/A5WP+rq6pxZYBjDslX/sXkFgL3Mgk1cSGGIICjWu4gNStkJXL6ZM2DQ==} - engines: {node: '>=0.10.0'} - deprecated: This was a fun hack, but now we have template literals, so use that instead. - mustache@3.2.1: resolution: {integrity: sha512-RERvMFdLpaFfSRIEe632yDm5nsd0SDKn8hGmcUwswnyiE5mtdZLDybtHAz6hjJhawokF0hXvGLtx9mrQfm6FkA==} engines: {npm: '>=1.4.0'} @@ -4607,10 +4592,6 @@ packages: resolution: {integrity: sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==} engines: {node: '>=18'} - strip-indent@2.0.0: - resolution: {integrity: sha512-RsSNPLpq6YUL7QYy44RnPVTn/lcVZtb48Uof3X5JLbF4zD/Gs7ZFDv2HWol+leoQN2mT86LAzSshGfkTlSOpsA==} - engines: {node: '>=4'} - strip-json-comments@3.1.1: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} @@ -8420,8 +8401,6 @@ snapshots: dependencies: git-up: 8.1.1 - github@14.0.0: {} - glob-parent@5.1.2: dependencies: is-glob: 4.0.3 @@ -9551,10 +9530,6 @@ snapshots: ms@2.1.3: {} - multiline@2.0.0: - dependencies: - strip-indent: 2.0.0 - mustache@3.2.1: {} mute-stream@0.0.7: {} @@ -10592,8 +10567,6 @@ snapshots: strip-final-newline@4.0.0: {} - strip-indent@2.0.0: {} - strip-json-comments@3.1.1: {} strnum@1.0.5: {}