Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@shgysk8zer0/npm-utils

shgysk8zer0589MIT1.1.3

A collection of helpful functions for npm packages.

readme

@shgysk8zer0/npm-utils

A collection of helpful functions for npm packages.

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[v1.1.3] - 2024-05-21

Fixed

  • Handle all cases for path when writing files
  • Resolve weird issue when import * as FOO is used in building with esbuild

[v1.1.2] - 2023-10-05

Added

  • path.js with methods for normalizing paths & converting from/to file: URLs

Fixed

  • File operations now work with file: URLs or paths

[v1.1.1] - 2023-09-29

Added

  • Install @shgysk8zer0/consts and @rollup/plugin-node-resolve
  • Add support for working with File and Blob objects
  • Add module with functions for form validation

Fixed

  • Fix typo in fix:js script

Changed

  • Move all modules from esm/ to project root
  • blob: and data: are now valid URL protocols for isURL()

Removed

  • Delete own versions of EXTS & MIMES

[v1.1.0] - 2023-07-03

Changed

  • Update to node 20
  • Update GH Action to publish to npm
  • Update npm scripts for versioning and locks

[v1.0.5] - 2023-06-10

Added

  • Install @shgysk8zer0/js-utils

Fixed

  • Correctly output chunks named [name]-[hash].cjs instead of .js ext

Removed

  • Uninstall rollup and eslint

[v1.0.4] - 2023-06-05

Added

  • url module with pathToURL() & pathToURL()

Fixed

  • Fix path for esm exports (#8)
  • Fix matched importmap resolving to URL (using pathToURL())

Changed

  • importmap updates & fixes

[v1.0.3] - 2023-06-05

Fixed

  • Create exports for all es modules in /cjs/*.cjs (#6)

Changed

  • Move all modules into /esm/*.js

[v1.0.2] - 2023-06-05

Added

  • Several new modules for extensions, mime-types and other constants
  • New functionality in importmap module to be compatible with @shgysk8zer0/rollup-import

[v1.0.1] - 2023-06-03

Added

  • Add exports with require & import options

[v1.0.0] - 202306-03

Initial Release