Skip to content

Commit e29e6c3

Browse files
committed
FIX release script
1 parent 185c279 commit e29e6c3

5 files changed

Lines changed: 53 additions & 47 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
# @link https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
2525
permissions:
2626
contents: write
27+
workflows: write
2728
# @link https://docs.npmjs.com/generating-provenance-statements#about-npm-provenance
2829
id-token: write
2930
# Steps represent a sequence of tasks that will be executed as part of the job
@@ -99,15 +100,15 @@ jobs:
99100
git commit -m ${{github.event.inputs.version}}
100101
git tag ${{github.event.inputs.version}}
101102
102-
- run: npm publish --tag next
103-
if: steps.vars.outputs.prerelease == 'true'
104-
env:
105-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
103+
# - run: npm publish --tag next
104+
# if: steps.vars.outputs.prerelease == 'true'
105+
# env:
106+
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
106107

107-
- run: npm publish --provenance --access public
108-
if: steps.vars.outputs.prerelease == 'false'
109-
env:
110-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
108+
# - run: npm publish --provenance --access public
109+
# if: steps.vars.outputs.prerelease == 'false'
110+
# env:
111+
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
111112

112113
# pull again to make it unlikely that we have a merge conflict.
113114
- run: git pull

docs-src/docs/releases/17.0.0.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { IconVibeCoding } from '@site/src/components/icons/vibe-coding';
1212
import { IconExperiment } from '@site/src/components/icons/experiment';
1313
import { IconDevicePhone } from '@site/src/components/icons/device-phone';
1414
import { IconQuickstart } from '@site/src/components/icons/quickstart';
15-
import { H2WithIcon } from '@site/src/components/h2-with-icon';
15+
import { HeadlineWithIcon } from '@site/src/components/headline-with-icon';
1616

1717
export const PERFORMANCE_METRICS_V17 = [
1818
{ key: 'time-to-first-insert', name: 'Time to first insert', color: '#FF8BE0' },
@@ -61,19 +61,15 @@ export const PERFORMANCE_DATA_V17 = [
6161
}
6262
];
6363

64-
<p align="center">
65-
<IconQuickstart style={{ width: '80px', height: '80px', marginBottom: '10px' }} />
66-
</p>
67-
68-
# RxDB 17.0.0 - Local-First to the Moon
64+
# <HeadlineWithIcon h1 icon={<IconQuickstart />} subtitle="Local-First to the Moon">RxDB 17.0.0</HeadlineWithIcon>
6965

7066
RxDB version 17 focuses on features for Vibe-Coders, **better reactivity**, **improved debugging and DX-for-LLMs**, performance and **important breaking storage fixes**, while also graduating several long-standing plugins out of beta.
7167

7268
Most applications can upgrade easily, but [**users of OPFS and filesystem-based storages must review the migration notes carefully**](#migration-from-version-16-to-17).
7369

7470
Lets start with the most exciting features...
7571

76-
## <H2WithIcon icon={<img src="../files/icons/google-drive.svg" alt="Google Drive Sync" style={{ backgroundColor: 'transparent' }} />} subtitle="Sync without Servers">User Provided Sync Endpoints</H2WithIcon>
72+
## <HeadlineWithIcon h2 icon={<img src="../files/icons/google-drive.svg" alt="Google Drive Sync" style={{ backgroundColor: 'transparent' }} />} subtitle="Sync without Servers">User Provided Sync Endpoints</HeadlineWithIcon>
7773

7874
RxDB 17 introduces two new replication plugins: [Google Drive Replication](../replication-google-drive.md) and [Microsoft OneDrive Replication](../replication-microsoft-onedrive.md).
7975

@@ -98,7 +94,7 @@ By using these user-provided sync endpoints, you can build and distribute comple
9894

9995

10096

101-
## <H2WithIcon subtitle="Make your App AI Agent Ready">WebMCP Plugin</H2WithIcon>
97+
## <HeadlineWithIcon h2 subtitle="Make your App AI Agent Ready">WebMCP Plugin</HeadlineWithIcon>
10298

10399
<div className="linkedin-mobile-bottom-container">
104100

@@ -124,7 +120,7 @@ Are you a YouTuber or Influencer talking about Web Development, Offline-First, o
124120
:::
125121

126122

127-
## <H2WithIcon icon={<IconVibeCoding />}>Improvements for our Vibe-Coders</H2WithIcon>
123+
## <HeadlineWithIcon h2 icon={<IconVibeCoding />}>Improvements for our Vibe-Coders</HeadlineWithIcon>
128124

129125
To improve vibe-coding with RxDB, we made the following DX-for-LLM improvements:
130126

@@ -144,14 +140,14 @@ Also to improve vibe-coding when working with RxDB directly we added the followi
144140

145141

146142

147-
## <H2WithIcon icon={<IconDevicePhone />} subtitle="Faster than SQLite">Expo Filesystem RxStorage</H2WithIcon>
143+
## <HeadlineWithIcon h2 icon={<IconDevicePhone />} subtitle="Faster than SQLite">Expo Filesystem RxStorage</HeadlineWithIcon>
148144

149145
RxDB 17 introduces the [Expo Filesystem RxStorage](../rx-storage-filesystem-expo.md), a high-performance storage backend for React Native and Expo applications. It is built on [expo-opfs](https://www.npmjs.com/package/expo-opfs) and uses the newest Expo Filesystem API. This delivers significant performance gains over SQLite for a wide range of access patterns. Currently I work on making pull requests to the Expo Core repository to further improve the performance of the underlying api. [Read more](../rx-storage-filesystem-expo.md).
150146

151147
<PerformanceChart title="Expo Filesystem vs SQLite (React Native)" data={PERFORMANCE_DATA_EXPO} metrics={PERFORMANCE_METRICS} />
152148

153149

154-
## <H2WithIcon subtitle="Harder, Better, Faster, Stronger">Performance Improvements</H2WithIcon>
150+
## <HeadlineWithIcon h2 subtitle="Harder, Better, Faster, Stronger">Performance Improvements</HeadlineWithIcon>
155151

156152
RxDB 17 ships with faster reads, faster writes, and lower memory usage across all storage backends. The bulk insert path, query routing, and internal data structures have been reworked to reduce CPU overhead per operation. IndexedDB now stores [attachment](../rx-attachment.md) data in a binary format for smaller on-disk size, and several memory leaks in OPFS and migration code paths have been fixed. [Read more](../rx-storage-performance.md).
157153

@@ -179,7 +175,7 @@ RxDB 17 ships with faster reads, faster writes, and lower memory usage across al
179175
- **ADD** enforce maximum length for indexes and primary keys (`maxLength: 2048`) because big maxLength values impact performance.
180176

181177

182-
## <H2WithIcon icon={<IconExperiment />}>Plugins Graduating from Beta</H2WithIcon>
178+
## <HeadlineWithIcon h2 icon={<IconExperiment />}>Plugins Graduating from Beta</HeadlineWithIcon>
183179

184180
The following plugins are **no longer in beta** and are now considered production-ready:
185181

docs-src/sidebars.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ const sidebars = {
547547
{
548548
type: 'doc',
549549
id: 'releases/17.0.0',
550-
label: '17.0.0'
550+
label: '🆕 17.0.0'
551551
},
552552
{
553553
type: 'doc',

docs-src/src/components/h2-with-icon.tsx

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import React from 'react';
2+
3+
/**
4+
* A generic component to wrap a heading text with an icon on the left.
5+
* Must be used inside a markdown heading (`#`, `##`, `###`) so that it appears in the Docusaurus Table of Contents.
6+
*
7+
* @example
8+
* ## <HeadlineWithIcon h2 icon={<IconSomething />}>My Heading Text</HeadlineWithIcon>
9+
*/
10+
export function HeadlineWithIcon({ children, icon, subtitle, h1, h2, h3 }: { children: React.ReactNode; icon?: React.ReactNode; subtitle?: React.ReactNode; h1?: boolean; h2?: boolean; h3?: boolean; }) {
11+
let size = '35px';
12+
let marginRight = '20px';
13+
if (h1) {
14+
size = '40px';
15+
} else if (h3) {
16+
size = '30px';
17+
marginRight = '15px';
18+
}
19+
20+
return (
21+
<span style={{ display: 'inline-flex', alignItems: 'center', verticalAlign: 'bottom' }}>
22+
{icon && (
23+
<span style={{ width: size, height: size, marginRight, display: 'inline-flex', alignItems: 'center', justifyContent: 'center' }}>
24+
{React.isValidElement(icon) ? React.cloneElement(icon as React.ReactElement<any>, {
25+
style: { width: '100%', height: '100%' }
26+
}) : icon}
27+
</span>
28+
)}
29+
<span style={{ display: 'flex', flexDirection: 'column', justifyContent: 'center' }}>
30+
<span style={{ lineHeight: '1.2' }}>{children}</span>
31+
{subtitle && <span style={{ fontSize: '0.65em', opacity: 0.7, fontWeight: 'normal', lineHeight: '1.2', marginTop: '4px' }}>{subtitle}</span>}
32+
</span>
33+
</span>
34+
);
35+
}

0 commit comments

Comments
 (0)