googleapis / google-cloudevents

Types for CloudEvents issued by Google
http://git.io/google-cloudevents
Apache License 2.0
140 stars 21 forks source link

fix(deps): update dependency flat to v6 #579

Closed renovate-bot closed 9 months ago

renovate-bot commented 11 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
flat ^5.0.2 -> ^6.0.0 age adoption passing confidence

Release Notes

hughsk/flat (flat) ### [`v6.0.1`](https://togithub.com/hughsk/flat/releases/tag/v6.0.1) [Compare Source](https://togithub.com/hughsk/flat/compare/v6.0.0...v6.0.1) #### Bug Fixes 🐛 - Fix misformatted `export` field in `package.json` (see [#​172](https://togithub.com/hughsk/flat/issues/172)). ### [`v6.0.0`](https://togithub.com/hughsk/flat/releases/tag/v6.0.0) [Compare Source](https://togithub.com/hughsk/flat/compare/5.0.2...v6.0.0) ##### New Features ✨ - Package is now distributed in the ECMAScript module syntax (see [#​149](https://togithub.com/hughsk/flat/issues/149)). - Definitions for TypeScript are now included out of the box (see [#​151](https://togithub.com/hughsk/flat/issues/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](https://togithub.com/nodejs/Release/#end-of-life-releases)). ##### Migration :truck: We are now shipping `flat` as a pure ECMAScript module, if you are still using CommonJS in your application follow this [migration guide](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). 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: ```diff -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. ```sh npm uninstall @​types/flat ```

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

rogerthatdev commented 9 months ago

The release notes of this change indicate that "default export has been dropped in favor of a named one, if you are using the default export make sure to update your imports"

There is an import of flatten in the file tools/proto2jsonschema/postgen.js that may need to be updated with this dependency change. This file however has no testing to verify the change.

rogerthatdev commented 9 months ago

This PR includes changes to package.json and postgen.js in tools/proto2jsonschema that convert it from a commonjs into a ES module in order to allow the update to this dependency.