@metamask/auto-changelog
Advanced tools
Comparing version 3.4.1 to 3.4.2
import { ChangeCategory, Version } from './constants'; | ||
import { PackageRename } from './shared-types'; | ||
/** | ||
* `Object.getOwnPropertyNames()` is intentionally generic: it returns the | ||
* immediate property names of an object, but it cannot make guarantees about | ||
* the contents of that object, so the type of the property names is merely | ||
* `string[]`. While this is technically accurate, it is also unnecessary if we | ||
* have an object with a type that we own (such as an enum). | ||
* | ||
* IMPORTANT: This is copied from `@metamask/utils` in order to avoid a circular | ||
* dependency between this package and `@metamask/utils`. | ||
* | ||
* @param object - The plain object. | ||
* @returns The own property names of the object which are assigned a type | ||
* derived from the object itself. | ||
*/ | ||
export declare function getKnownPropertyNames<Key extends PropertyKey>(object: Partial<Record<Key, any>>): Key[]; | ||
/** | ||
* Formatter function that formats a Markdown changelog string. | ||
@@ -5,0 +20,0 @@ */ |
@@ -18,5 +18,23 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const utils_1 = require("@metamask/utils"); | ||
exports.getKnownPropertyNames = void 0; | ||
const semver_1 = __importDefault(require("semver")); | ||
const constants_1 = require("./constants"); | ||
/** | ||
* `Object.getOwnPropertyNames()` is intentionally generic: it returns the | ||
* immediate property names of an object, but it cannot make guarantees about | ||
* the contents of that object, so the type of the property names is merely | ||
* `string[]`. While this is technically accurate, it is also unnecessary if we | ||
* have an object with a type that we own (such as an enum). | ||
* | ||
* IMPORTANT: This is copied from `@metamask/utils` in order to avoid a circular | ||
* dependency between this package and `@metamask/utils`. | ||
* | ||
* @param object - The plain object. | ||
* @returns The own property names of the object which are assigned a type | ||
* derived from the object itself. | ||
*/ | ||
function getKnownPropertyNames(object) { | ||
return Object.getOwnPropertyNames(object); | ||
} | ||
exports.getKnownPropertyNames = getKnownPropertyNames; | ||
const changelogTitle = '# Changelog'; | ||
@@ -349,3 +367,3 @@ const changelogDescription = `All notable changes to this project will be documented in this file. | ||
const unreleasedChanges = __classPrivateFieldGet(this, _Changelog_changes, "f")[constants_1.unreleased]; | ||
for (const category of (0, utils_1.getKnownPropertyNames)(unreleasedChanges)) { | ||
for (const category of getKnownPropertyNames(unreleasedChanges)) { | ||
if (releaseChanges[category]) { | ||
@@ -352,0 +370,0 @@ releaseChanges[category] = [ |
{ | ||
"name": "@metamask/auto-changelog", | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"description": "Utilities for validating and updating \"Keep a Changelog\" formatted changelogs", | ||
@@ -34,3 +34,2 @@ "publishConfig": { | ||
"dependencies": { | ||
"@metamask/utils": "^8.1.0", | ||
"diff": "^5.0.0", | ||
@@ -37,0 +36,0 @@ "execa": "^5.1.1", |
Sorry, the diff of this file is not supported yet
189339
5
1979
- Removed@metamask/utils@^8.1.0
- Removed@ethereumjs/common@3.2.0(transitive)
- Removed@ethereumjs/rlp@4.0.1(transitive)
- Removed@ethereumjs/tx@4.2.0(transitive)
- Removed@ethereumjs/util@8.1.0(transitive)
- Removed@metamask/superstruct@3.1.0(transitive)
- Removed@metamask/utils@8.5.0(transitive)
- Removed@noble/curves@1.4.2(transitive)
- Removed@noble/hashes@1.4.01.5.0(transitive)
- Removed@scure/base@1.1.9(transitive)
- Removed@scure/bip32@1.4.0(transitive)
- Removed@scure/bip39@1.3.0(transitive)
- Removed@types/debug@4.1.12(transitive)
- Removed@types/ms@0.7.34(transitive)
- Removedcrc-32@1.2.2(transitive)
- Removeddebug@4.3.7(transitive)
- Removedethereum-cryptography@2.2.1(transitive)
- Removedmicro-ftch@0.3.1(transitive)
- Removedms@2.1.3(transitive)
- Removedpony-cause@2.1.11(transitive)
- Removeduuid@9.0.1(transitive)