Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
8a3c200
chore: configure gitRevision to main and add script to handle version…
mateuszlampert Feb 23, 2026
0535453
ci: add workflow to check if api-reference is up-to-date
mateuszlampert Feb 23, 2026
c5c46b2
chore: rebuild docs with gitRevision
mateuszlampert Feb 23, 2026
a15910d
fix: docs-build-check workflow (prettier step)
mateuszlampert Feb 23, 2026
9e939a6
test: should break ts-api-reference ci check
mateuszlampert Feb 23, 2026
83d3a7f
fix: check api reference before building full docs
mateuszlampert Feb 23, 2026
d531de8
fix: update typedoc config to force docs generation
mateuszlampert Feb 23, 2026
f7fca27
fix: update typedoc config to force docs generation
mateuszlampert Feb 23, 2026
5b32835
fix: revert ts api testing change
mateuszlampert Feb 23, 2026
87fbe9a
chore: regenerate API docs with skipErrorChecking enabled
mateuszlampert Feb 23, 2026
73d4c6a
fix: path pattern
mateuszlampert Feb 23, 2026
98e9442
debug: show diff
mateuszlampert Feb 23, 2026
0ef8e8c
fix: typedoc config
mateuszlampert Feb 23, 2026
84fd178
chore: add prettier step to build scripts
mateuszlampert Feb 23, 2026
21dd180
chore: add prettier to yarn scripts
mateuszlampert Feb 23, 2026
68a0112
chore: normalize line endings
mateuszlampert Feb 23, 2026
5b46a3a
debug
mateuszlampert Feb 23, 2026
dced36e
debug: try ci workflow on macos
mateuszlampert Feb 23, 2026
fc4f43d
fix/chore: extract to separate workflow & add ref
mateuszlampert Feb 23, 2026
0d06e5b
Merge branch 'main' into @ml/detect-api-reference-change-ci
mateuszlampert Feb 23, 2026
72e19af
fix: exclude external & rebuild
mateuszlampert Feb 23, 2026
f41a069
fix: install dependencies in the root
mateuszlampert Feb 23, 2026
7133ca4
test: ci should fail
mateuszlampert Feb 23, 2026
2a4247c
chore: revert testing api-reference change
mateuszlampert Feb 23, 2026
9daa7ea
fix: make build-version-docs.sh executable
mateuszlampert Feb 23, 2026
4b73087
move prettier to script to fix docs version building
mateuszlampert Feb 23, 2026
7fd2991
fix: revert device for docs-build-check workflow
mateuszlampert Feb 23, 2026
fd8972c
chore: rename prettier script
mateuszlampert Feb 23, 2026
02aab47
fix: use corrected script name
mateuszlampert Feb 23, 2026
19eb978
fix: image segmentation category case mismatch
mateuszlampert Feb 23, 2026
06aa0a2
chore: update command in RELEASE.md
mateuszlampert Feb 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/api-reference-up-to-date-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Check if API reference is up-to-date

on:
push:
branches:
- main
paths:
- 'docs/**'
- '.github/workflows/api-reference-up-to-date-check.yml'
pull_request:
branches:
- main
paths:
- 'docs/**'
- '.github/workflows/api-reference-up-to-date-check.yml'
workflow_dispatch:
jobs:
check:
if: github.repository == 'software-mansion/react-native-executorch'
runs-on: ubuntu-latest
concurrency:
group: api-reference-up-to-date-${{ github.ref }}
cancel-in-progress: true
env:
WORKING_DIRECTORY: docs
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install root dependencies
run: yarn install --immutable
- name: Install node docs dependencies
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn install --immutable
- name: Check TypeDoc is up-to-date
working-directory: ${{ env.WORKING_DIRECTORY }}
run: |
yarn docusaurus generate-typedoc
yarn prettier-api-reference
git status
git diff
if ! git diff --quiet; then
echo "Differences found. Look at the 'git diff' output above."
exit 1
fi
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The release process of new minor version consists of the following steps:
4. Create a new release branch `release/{MAJOR}.{MINOR}`and push it to the remote.
5. Stability tests are performed on the release branch and all fixes to the new-found issues are pushed into the main branch and cherry-picked into the release branch. This allows for further development on the main branch without interfering with the release process.
6. Once all tests are passed, tag the release branch with proper version tag `v{MAJOR}.{MINOR}.0` and run `npm publish`.
7. Create versioned docs by running from repo root `(cd docs && yarn docusaurus docs:version {MAJOR}.{MINOR}.x)` (the 'x' part is intentional and is not to be substituted). Also, make sure that all the links in `api-reference` are not broken.
7. Create versioned docs by running from repo root `(cd docs && yarn docs:version {MAJOR}.{MINOR}.x)` (the 'x' part is intentional and is not to be substituted). Also, make sure that all the links in `api-reference` are not broken.
8. Create a PR with the updated docs.
9. Create the release notes on GitHub.
10. Update README.md with release video, if available.
Expand Down
14 changes: 7 additions & 7 deletions docs/docs/06-api-reference/classes/ClassificationModule.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Class: ClassificationModule

Defined in: [packages/react-native-executorch/src/modules/computer_vision/ClassificationModule.ts:13](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/computer_vision/ClassificationModule.ts#L13)
Defined in: [modules/computer_vision/ClassificationModule.ts:13](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/computer_vision/ClassificationModule.ts#L13)

Module for image classification tasks.

Expand Down Expand Up @@ -28,7 +28,7 @@ Module for image classification tasks.

> **nativeModule**: `any` = `null`

Defined in: [packages/react-native-executorch/src/modules/BaseModule.ts:8](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/BaseModule.ts#L8)
Defined in: [modules/BaseModule.ts:8](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/BaseModule.ts#L8)

Native module instance

Expand All @@ -42,7 +42,7 @@ Native module instance

> **delete**(): `void`

Defined in: [packages/react-native-executorch/src/modules/BaseModule.ts:41](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/BaseModule.ts#L41)
Defined in: [modules/BaseModule.ts:41](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/BaseModule.ts#L41)

Unloads the model from memory.

Expand All @@ -60,7 +60,7 @@ Unloads the model from memory.

> **forward**(`imageSource`): `Promise`\<\{\[`category`: `string`\]: `number`; \}\>

Defined in: [packages/react-native-executorch/src/modules/computer_vision/ClassificationModule.ts:51](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/computer_vision/ClassificationModule.ts#L51)
Defined in: [modules/computer_vision/ClassificationModule.ts:51](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/computer_vision/ClassificationModule.ts#L51)

Executes the model's forward pass, where `imageSource` can be a fetchable resource or a Base64-encoded string.

Expand All @@ -84,7 +84,7 @@ The classification result.

> `protected` **forwardET**(`inputTensor`): `Promise`\<[`TensorPtr`](../interfaces/TensorPtr.md)[]\>

Defined in: [packages/react-native-executorch/src/modules/BaseModule.ts:23](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/BaseModule.ts#L23)
Defined in: [modules/BaseModule.ts:23](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/BaseModule.ts#L23)

Runs the model's forward method with the given input tensors.
It returns the output tensors that mimic the structure of output from ExecuTorch.
Expand Down Expand Up @@ -113,7 +113,7 @@ Array of output tensors.

> **getInputShape**(`methodName`, `index`): `Promise`\<`number`[]\>

Defined in: [packages/react-native-executorch/src/modules/BaseModule.ts:34](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/BaseModule.ts#L34)
Defined in: [modules/BaseModule.ts:34](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/BaseModule.ts#L34)

Gets the input shape for a given method and index.

Expand Down Expand Up @@ -147,7 +147,7 @@ The input shape as an array of numbers.

> **load**(`model`, `onDownloadProgressCallback`): `Promise`\<`void`\>

Defined in: [packages/react-native-executorch/src/modules/computer_vision/ClassificationModule.ts:21](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/computer_vision/ClassificationModule.ts#L21)
Defined in: [modules/computer_vision/ClassificationModule.ts:21](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/computer_vision/ClassificationModule.ts#L21)

Loads the model, where `modelSource` is a string that specifies the location of the model binary.
To track the download progress, supply a callback function `onDownloadProgressCallback`.
Expand Down
14 changes: 7 additions & 7 deletions docs/docs/06-api-reference/classes/ExecutorchModule.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Class: ExecutorchModule

Defined in: [packages/react-native-executorch/src/modules/general/ExecutorchModule.ts:14](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/general/ExecutorchModule.ts#L14)
Defined in: [modules/general/ExecutorchModule.ts:14](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/general/ExecutorchModule.ts#L14)

General module for executing custom Executorch models.

Expand Down Expand Up @@ -28,7 +28,7 @@ General module for executing custom Executorch models.

> **nativeModule**: `any` = `null`

Defined in: [packages/react-native-executorch/src/modules/BaseModule.ts:8](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/BaseModule.ts#L8)
Defined in: [modules/BaseModule.ts:8](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/BaseModule.ts#L8)

Native module instance

Expand All @@ -42,7 +42,7 @@ Native module instance

> **delete**(): `void`

Defined in: [packages/react-native-executorch/src/modules/BaseModule.ts:41](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/BaseModule.ts#L41)
Defined in: [modules/BaseModule.ts:41](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/BaseModule.ts#L41)

Unloads the model from memory.

Expand All @@ -60,7 +60,7 @@ Unloads the model from memory.

> **forward**(`inputTensor`): `Promise`\<[`TensorPtr`](../interfaces/TensorPtr.md)[]\>

Defined in: [packages/react-native-executorch/src/modules/general/ExecutorchModule.ts:51](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/general/ExecutorchModule.ts#L51)
Defined in: [modules/general/ExecutorchModule.ts:51](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/general/ExecutorchModule.ts#L51)

Executes the model's forward pass, where input is an array of `TensorPtr` objects.
If the inference is successful, an array of tensor pointers is returned.
Expand All @@ -85,7 +85,7 @@ An array of output tensor pointers.

> `protected` **forwardET**(`inputTensor`): `Promise`\<[`TensorPtr`](../interfaces/TensorPtr.md)[]\>

Defined in: [packages/react-native-executorch/src/modules/BaseModule.ts:23](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/BaseModule.ts#L23)
Defined in: [modules/BaseModule.ts:23](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/BaseModule.ts#L23)

Runs the model's forward method with the given input tensors.
It returns the output tensors that mimic the structure of output from ExecuTorch.
Expand Down Expand Up @@ -114,7 +114,7 @@ Array of output tensors.

> **getInputShape**(`methodName`, `index`): `Promise`\<`number`[]\>

Defined in: [packages/react-native-executorch/src/modules/BaseModule.ts:34](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/BaseModule.ts#L34)
Defined in: [modules/BaseModule.ts:34](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/BaseModule.ts#L34)

Gets the input shape for a given method and index.

Expand Down Expand Up @@ -148,7 +148,7 @@ The input shape as an array of numbers.

> **load**(`modelSource`, `onDownloadProgressCallback`): `Promise`\<`void`\>

Defined in: [packages/react-native-executorch/src/modules/general/ExecutorchModule.ts:22](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/general/ExecutorchModule.ts#L22)
Defined in: [modules/general/ExecutorchModule.ts:22](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/general/ExecutorchModule.ts#L22)

Loads the model, where `modelSource` is a string, number, or object that specifies the location of the model binary.
Optionally accepts a download progress callback.
Expand Down
14 changes: 7 additions & 7 deletions docs/docs/06-api-reference/classes/ImageEmbeddingsModule.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Class: ImageEmbeddingsModule

Defined in: [packages/react-native-executorch/src/modules/computer_vision/ImageEmbeddingsModule.ts:13](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/computer_vision/ImageEmbeddingsModule.ts#L13)
Defined in: [modules/computer_vision/ImageEmbeddingsModule.ts:13](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/computer_vision/ImageEmbeddingsModule.ts#L13)

Module for generating image embeddings from input images.

Expand Down Expand Up @@ -28,7 +28,7 @@ Module for generating image embeddings from input images.

> **nativeModule**: `any` = `null`

Defined in: [packages/react-native-executorch/src/modules/BaseModule.ts:8](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/BaseModule.ts#L8)
Defined in: [modules/BaseModule.ts:8](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/BaseModule.ts#L8)

Native module instance

Expand All @@ -42,7 +42,7 @@ Native module instance

> **delete**(): `void`

Defined in: [packages/react-native-executorch/src/modules/BaseModule.ts:41](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/BaseModule.ts#L41)
Defined in: [modules/BaseModule.ts:41](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/BaseModule.ts#L41)

Unloads the model from memory.

Expand All @@ -60,7 +60,7 @@ Unloads the model from memory.

> **forward**(`imageSource`): `Promise`\<`Float32Array`\<`ArrayBufferLike`\>\>

Defined in: [packages/react-native-executorch/src/modules/computer_vision/ImageEmbeddingsModule.ts:50](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/computer_vision/ImageEmbeddingsModule.ts#L50)
Defined in: [modules/computer_vision/ImageEmbeddingsModule.ts:50](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/computer_vision/ImageEmbeddingsModule.ts#L50)

Executes the model's forward pass. Returns an embedding array for a given sentence.

Expand All @@ -84,7 +84,7 @@ A Float32Array containing the image embeddings.

> `protected` **forwardET**(`inputTensor`): `Promise`\<[`TensorPtr`](../interfaces/TensorPtr.md)[]\>

Defined in: [packages/react-native-executorch/src/modules/BaseModule.ts:23](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/BaseModule.ts#L23)
Defined in: [modules/BaseModule.ts:23](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/BaseModule.ts#L23)

Runs the model's forward method with the given input tensors.
It returns the output tensors that mimic the structure of output from ExecuTorch.
Expand Down Expand Up @@ -113,7 +113,7 @@ Array of output tensors.

> **getInputShape**(`methodName`, `index`): `Promise`\<`number`[]\>

Defined in: [packages/react-native-executorch/src/modules/BaseModule.ts:34](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/BaseModule.ts#L34)
Defined in: [modules/BaseModule.ts:34](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/BaseModule.ts#L34)

Gets the input shape for a given method and index.

Expand Down Expand Up @@ -147,7 +147,7 @@ The input shape as an array of numbers.

> **load**(`model`, `onDownloadProgressCallback`): `Promise`\<`void`\>

Defined in: [packages/react-native-executorch/src/modules/computer_vision/ImageEmbeddingsModule.ts:20](https://github.com/software-mansion/react-native-executorch/blob/a6b2b6f4f1622166e3517338d42680655383a3be/packages/react-native-executorch/src/modules/computer_vision/ImageEmbeddingsModule.ts#L20)
Defined in: [modules/computer_vision/ImageEmbeddingsModule.ts:20](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/computer_vision/ImageEmbeddingsModule.ts#L20)

Loads the model, where `modelSource` is a string that specifies the location of the model binary.

Expand Down
Loading
Loading