flat

Flatten/unflatten nested Javascript objects

BSD-3-CLAUSE License

Downloads
67.1M
Stars
1.8K
Committers
28

Bot releases are hidden (Show)

flat - v6.0.1 Latest Release

Published by jonkoops about 1 year ago

Bug Fixes 🐛

  • Fix misformatted export field in package.json (see #172).
flat - v6.0.0

Published by jonkoops about 1 year ago

New Features ✨

  • Package is now distributed in the ECMAScript module syntax (see #149).
  • Definitions for TypeScript are now included out of the box (see #151).

Breaking Changes 💥

  • Support for all module formats besides ECMAScript modules has been dropped.
  • Default export has been dropped in favor of a named one.
  • Officially supported Node.js version is now 18 and up (all others are end-of-life).

Migration 🚚

We are now shipping flat as a pure ECMAScript module, if you are still using CommonJS in your application follow this migration guide.

The default export has been dropped in favor of a named one, if you are using the default export make sure to update your imports:

-import flatten from 'flat'
+import { flatten } from 'flat'

If you are a user of TypeScript you can remove @types/flat from your project. The type definitions are now included in the package itself, so it is no longer required to keep a separate dependency around.

npm uninstall @types/flat
Package Rankings
Top 0.75% on Npmjs.org
Top 12.09% on Bower.io
Top 16.68% on Repo1.maven.org
Top 8.17% on Proxy.golang.org
Badges
Extracted from project README
Build Status