DEV Community

Cover image for What's new in Undercut 0.6.0
spyke
spyke

Posted on

3 1

What's new in Undercut 0.6.0

✂ We continue to add handy utilities into Undercut with release 0.6.0 while polishing its API. But this time there are also many internal changes making maintenance easier and users happier.

Code coverage

Code coverage is back where it should be above 80% mark, so using Undercut shouldn't be so scary anymore :) In fact, coverage was good from the beginning, but our monorepo structure were interfering with Jest/Istanbul processing. As result, most operation tests weren't considered as hits.

Website

Website have moved to Netlify. In past we were using GitHub Pages for hosting, but it isn't that convenient.

For example, one of the issues with GHP was the requirement to have full write access on CI as it needs to push files to the gh-pages branch on build. With Netlify you can continue using read-only keys. On top of that Netlify allows you to have a preview for Pull Requests and even separate deployments for non-main branches.

The setup was as easy as specifying yarn build command and a path to a directory to deploy.

Conventional Commits

Some time ago we started to adopt Conventional Commits and 0.6.0 release is the first one having its changelog generated from commit messages. Lerna supports Conventional Commits out of the box, which is nice.

Release Highlights

  • getObjectType for retrieving more detailed type name like AsyncFunction from Object's toString method.
  • Classic helpers in a form of head/tail utilities for working with Iterables. Unfortunately, the head utility have replaced former peekIterable, so we have a breaking change here.
  • A pack of utilities to quickly filter/map/collect object keys and values. You were able to do this with Pull already, but sometimes you only want a short single operation instead of the full power and ceremony of the pipelines.
  • A set of randomized functions like randomDecimal or randomIndex utilities.
  • Somehow missing isPromise utility.

Lots of other code and documentation improvements. Check out the list commits from previous version or view our full release notes.

Undercut Demo

Visit GitHub for code and undercut.js.org for documentation.

Photo by Florian Cario on Unsplash.

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay