lacuna-tech / mds-core

Repo for LADOT MDS implementation for contribution to the Open Mobility Foundation
Apache License 2.0
13 stars 9 forks source link

Fix SingleParser typedef so that parsers like JSON.parse() won't fail #999

Closed avatarneil closed 2 years ago

avatarneil commented 2 years ago

📚 Purpose

Fixes a minor bug I introduced in a previous PR that only appeared when running pnpm bundle, and didn't present in the pnpm build step. Fun!

👌 Resolves:

Broken support for JSON.parse() parsers

📦 Impacts:

See changesets

✅ PR Checklist

Tested pnpm bundle and it's working now, yay

changeset-bot[bot] commented 2 years ago

🦋 Changeset detected

Latest commit: cbe3ba3c2a12fecf34a7237631c0d9ddfc9aafc7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 23 packages | Name | Type | | ------------------------------------------ | ----- | | @mds-core/mds-api-helpers | Minor | | @mds-core/mds-audit-api | Patch | | @mds-core/mds-compliance-api | Patch | | @mds-core/mds-policy | Patch | | @mds-core/mds-transaction-api | Patch | | @mds-core/mds-agency | Patch | | @mds-core/mds-collector-api | Patch | | @mds-core/mds-compliance-engine | Patch | | @mds-core/mds-geography-api | Patch | | @mds-core/mds-geography-author-api | Patch | | @mds-core/mds-jurisdiction-api | Patch | | @mds-core/mds-policy-author-api | Patch | | @container-images/mds-audit-api | Patch | | @container-images/mds-compliance-api | Patch | | @container-images/mds-policy | Patch | | @container-images/mds-transaction-api | Patch | | @container-images/mds-agency | Patch | | @container-images/mds-collector-api | Patch | | @mds-core/mds-compliance-batch-processor | Patch | | @container-images/mds-geography-api | Patch | | @container-images/mds-geography-author-api | Patch | | @container-images/mds-jurisdiction-api | Patch | | @container-images/mds-policy-author-api | Patch |

Not sure what this means? Click here to learn what changesets are.

[Click here if you're a maintainer who wants to add another changeset to this PR](https://github.com/lacuna-tech/mds-core/new/bugfix/neil/single-parser-bad-type?filename=.changeset/dirty-socks-destroy.md&value=---%0A%22%40mds-core%2Fmds-api-helpers%22%3A%20patch%0A%22%40mds-core%2Fmds-audit-api%22%3A%20patch%0A%22%40mds-core%2Fmds-compliance-api%22%3A%20patch%0A%22%40mds-core%2Fmds-policy%22%3A%20patch%0A%22%40mds-core%2Fmds-transaction-api%22%3A%20patch%0A---%0A%0AFix%20SingleParser%20typedef%20so%20that%20parsers%20like%20JSON.parse()%20won't%20fail%0A)