Socket
Socket
Sign inDemoInstall

@metamask/auto-changelog

Package Overview
Dependencies
Maintainers
12
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/auto-changelog - npm Package Compare versions

Comparing version 3.4.1 to 3.4.2

15

dist/changelog.d.ts
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 @@ */

22

dist/changelog.js

@@ -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] = [

3

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc