Skip to content

fix(rspeedy/core): bundle ts-blank-space#475

Merged
colinaaa merged 2 commits intolynx-family:mainfrom
colinaaa:colin/0405/fix-ts-blank-space
Apr 5, 2025
Merged

fix(rspeedy/core): bundle ts-blank-space#475
colinaaa merged 2 commits intolynx-family:mainfrom
colinaaa:colin/0405/fix-ts-blank-space

Conversation

@colinaaa
Copy link
Copy Markdown
Collaborator

@colinaaa colinaaa commented Apr 5, 2025

Summary

Fix a regression from #470: "Cannot find package 'ts-blank-space' imported from @lynx-js/rspeedy/register/hooks.js"

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 5, 2025

⚠️ No Changeset found

Latest commit: fc1a446

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 5, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
1069 1 1068 56
View the top 1 failed test(s) by shortest run time
react.spec.ts reactlynx3 testsbasicbasic-setstate-in-constructor
Stack Traces | 6.43s run time
react.spec.ts:104:5 basic-setstate-in-constructor

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Apr 5, 2025

CodSpeed Performance Report

Merging #475 will not alter performance

Comparing colinaaa:colin/0405/fix-ts-blank-space (55f069c) with main (09c346e)

Summary

✅ 1 untouched benchmarks

@colinaaa colinaaa marked this pull request as ready for review April 5, 2025 08:21
@colinaaa colinaaa merged commit d9b705b into lynx-family:main Apr 5, 2025
22 checks passed
colinaaa added a commit that referenced this pull request Apr 5, 2025
<!--
  Thank you for submitting a pull request!

We appreciate the time and effort you have invested in making these
changes. Please ensure that you provide enough information to allow
others to review your pull request.

Upon submission, your pull request will be automatically assigned with
reviewers.

If you want to learn more about contributing to this project, please
visit:
https://github.com/lynx-family/lynx-stack/blob/main/CONTRIBUTING.md.
-->

## Summary

<!-- Can you explain the reasoning behind implementing this change? What
problem or issue does this pull request resolve? -->

Fix a regression of #475: "Error on typia.createValidateEquals(): no
transform has been configured."

<!-- It would be helpful if you could provide any relevant context, such
as GitHub issues or related discussions. -->

## Checklist

<!--- Check and mark with an "x" -->

- [ ] Tests updated (or not required).
- [ ] Documentation updated (or not required).
colinaaa added a commit that referenced this pull request Apr 5, 2025
<!--
  Thank you for submitting a pull request!

We appreciate the time and effort you have invested in making these
changes. Please ensure that you provide enough information to allow
others to review your pull request.

Upon submission, your pull request will be automatically assigned with
reviewers.

If you want to learn more about contributing to this project, please
visit:
https://github.com/lynx-family/lynx-stack/blob/main/CONTRIBUTING.md.
-->

## Summary

<!-- Can you explain the reasoning behind implementing this change? What
problem or issue does this pull request resolve? -->

A new test `test-publish` has been added.

This test setup a mocked NPM registry using `@pnpm/registry-mock`
([verdaccio](https://verdaccio.org/) underhood) and publish all packages
to that registry. Then a Rspeedy App will be created and tested using
the newly published packages.

This is used to avoid future regression like: #475, #478 and #479.

<!-- It would be helpful if you could provide any relevant context, such
as GitHub issues or related discussions. -->

## Checklist

<!--- Check and mark with an "x" -->

- [x] Tests updated (or not required).
- [ ] Documentation updated (or not required).
colinaaa added a commit that referenced this pull request Apr 5, 2025
<!--
  Thank you for submitting a pull request!

We appreciate the time and effort you have invested in making these
changes. Please ensure that you provide enough information to allow
others to review your pull request.

Upon submission, your pull request will be automatically assigned with
reviewers.

If you want to learn more about contributing to this project, please
visit:
https://github.com/lynx-family/lynx-stack/blob/main/CONTRIBUTING.md.
-->

## Summary

<!-- Can you explain the reasoning behind implementing this change? What
problem or issue does this pull request resolve? -->

Since we are now bundling `ts-blank-space` and externalizing
`typescript` (#475), we need to manually specify the `peerDependencies`.

The version requirement is copied from
[`ts-blank-space/package.json`](https://github.com/bloomberg/ts-blank-space/blob/4102b1f26b1c53d38a1de74c10f262af5fd34fe8/package.json#L26).

> [!NOTE]
> The `typescript` is not required when:
>
> 1. Using JavaScript (`.js`) configuration
> 1. Using Node.js v23.6+
> 1. Using Node.js v22.6+ with `--experimental-strip-types` or
`--experimental-transform-types`

<!-- It would be helpful if you could provide any relevant context, such
as GitHub issues or related discussions. -->

## Checklist

<!--- Check and mark with an "x" -->

- [ ] Tests updated (or not required).
- [ ] Documentation updated (or not required).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant