Skip to content

Commit bb34644

Browse files
authored
Version 0.16.0 beta.1 (#162)
* Set version to 0.16.0-beta.1 * CHANGELOG * Fix publishing prerelease tags * Do not tag prereleases as latest
1 parent 9f3c710 commit bb34644

4 files changed

Lines changed: 31 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ jobs:
6060
PACKAGE_NAME=$(node -p "require('./package.json').name")
6161
BASE_VERSION=$(node -p "require('./package.json').version")
6262
63-
if [[ ! "$GITHUB_REF_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
64-
echo "::error::Release tags must match vX.X.X, got $GITHUB_REF_NAME."
63+
if [[ ! "$GITHUB_REF_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$ ]]; then
64+
echo "::error::Release tags must match vX.X.X or vX.X.X-prerelease, got $GITHUB_REF_NAME."
6565
exit 1
6666
fi
6767
@@ -71,6 +71,12 @@ jobs:
7171
exit 1
7272
fi
7373
74+
if [[ "$PACKAGE_VERSION" == *-* ]]; then
75+
echo "npm_tag=next" >> "$GITHUB_OUTPUT"
76+
else
77+
echo "npm_tag=latest" >> "$GITHUB_OUTPUT"
78+
fi
79+
7480
if npm view "$PACKAGE_NAME@$PACKAGE_VERSION" version >/dev/null 2>&1; then
7581
echo "already_published=true" >> "$GITHUB_OUTPUT"
7682
else
@@ -79,7 +85,7 @@ jobs:
7985
8086
- name: Publish package to npm
8187
if: steps.release.outputs.already_published == 'false'
82-
run: npm publish --provenance --access public
88+
run: npm publish --provenance --access public --tag "${{ steps.release.outputs.npm_tag }}"
8389

8490
- name: Skip already published version
8591
if: steps.release.outputs.already_published == 'true'

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,25 @@
1010
> - :house: [Internal]
1111
> - :nail_care: [Polish]
1212
13+
## 0.16.0-beta.1
14+
15+
#### :boom: Breaking Change
16+
17+
- Requires ReScript 13.0.0-alpha.5 or newer.
18+
- Corrected the `ReactDOM.FormData.append`, `set`, and `has` signatures. The methods now receive the `FormData` value correctly, and `append` and `set` require the value being written. https://github.com/rescript-lang/rescript-react/pull/156
19+
- Corrected `ReactDOM.useFormStatus` to represent non-pending `data`, `method`, and `action` values as nullable. Its action now accepts one `FormData` argument and preserves synchronous and asynchronous results. https://github.com/rescript-lang/rescript-react/pull/161
20+
- Corrected `ReactDOMServer.resumeToPipeableStream` to synchronously return its `pipe` and `abort` controller instead of a promise. https://github.com/rescript-lang/rescript-react/pull/161
21+
22+
#### :bug: Bug Fix
23+
24+
- Use ReScript 13's `%component_identity` primitive for component conversion, fixing interface mismatches for components with generic prop types on ReScript 13.0.0-alpha.5 or newer. https://github.com/rescript-lang/rescript-react/pull/159
25+
- Preserve the complete callback signature returned by `React.useEffectEvent`, including its arguments and return value. https://github.com/rescript-lang/rescript-react/pull/157
26+
- Added the missing `onAllReady`, `onShellReady`, and `onShellError` options to `ReactDOMServer.resumeToPipeableStream`. https://github.com/rescript-lang/rescript-react/pull/161
27+
28+
#### :house: Internal
29+
30+
- Added automated preview-package publishing with pkg.pr.new and npm publishing for release tags. https://github.com/rescript-lang/rescript-react/pull/158 https://github.com/rescript-lang/rescript-react/pull/160
31+
1332
## 0.15.0
1433

1534
#### :boom: Breaking Change

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rescript/react",
3-
"version": "0.16.0",
3+
"version": "0.16.0-beta.1",
44
"description": "React bindings for ReScript",
55
"files": [
66
"README.md",

0 commit comments

Comments
 (0)