From 29184194aed5d3a56592e96fa6b7b155e99d33bb Mon Sep 17 00:00:00 2001 From: Patrick Kabwe Date: Sat, 6 Sep 2025 07:49:43 +0200 Subject: [PATCH 1/3] feat(cli): pin nitro deps to exact latest and allow '_' unused vars in ESLint --- eslint.config.js | 8 ++++++++ src/generate-nitro-package.ts | 33 ++++++++++++++++++++++++++++++++- 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/eslint.config.js b/eslint.config.js index d61f7512..39365f5b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -29,6 +29,14 @@ export default defineConfig([ 'n/no-process-exit': 'off', 'n/no-missing-import': 'off', 'n/no-unsupported-features/node-builtins': 'warn', + '@typescript-eslint/no-unused-vars': [ + 'error', + { + argsIgnorePattern: '^_', + varsIgnorePattern: '^_', + caughtErrorsIgnorePattern: '^_', + }, + ], }, }, { diff --git a/src/generate-nitro-package.ts b/src/generate-nitro-package.ts index eece0ad5..b2729827 100644 --- a/src/generate-nitro-package.ts +++ b/src/generate-nitro-package.ts @@ -52,6 +52,7 @@ const __dirname = path.dirname(__filename) export class NitroModuleFactory { private generators: Map + private nitroModulesVersion: string | null = null constructor(private config: GenerateModuleConfig) { const androidGenerator = new AndroidFileGenerator() @@ -105,6 +106,22 @@ export class NitroModuleFactory { } } + private async getLatestVersion(pkg: string): Promise { + try { + const { stdout } = await execAsync(`npm view ${pkg} version`) + const v = stdout?.toString().trim() + return v?.length ? v : null + } catch (_) { + try { + const { stdout } = await execAsync(`pnpm view ${pkg} version`) + const v = stdout?.toString().trim() + return v?.length ? v : null + } catch { + return null + } + } + } + private async replaceNitroJsonPlaceholders() { const nitroJsonContent = await readFile( path.join(this.config.cwd, 'nitro.json'), @@ -167,6 +184,20 @@ export class NitroModuleFactory { postcodegen: this.getPostCodegenScript(), } + // Resolve and pin latest Nitro tools to concrete versions + const [nitroModulesVersion, nitroCodegenVersion] = await Promise.all([ + this.getLatestVersion('react-native-nitro-modules'), + this.getLatestVersion('nitro-codegen'), + ]) + this.nitroModulesVersion = nitroModulesVersion + newWorkspacePackageJsonFile.devDependencies = { + ...newWorkspacePackageJsonFile.devDependencies, + 'react-native-nitro-modules': + nitroModulesVersion ?? newWorkspacePackageJsonFile.devDependencies?.['react-native-nitro-modules'] ?? templatePackageJson.devDependencies['react-native-nitro-modules'], + 'nitro-codegen': + nitroCodegenVersion ?? newWorkspacePackageJsonFile.devDependencies?.['nitro-codegen'] ?? templatePackageJson.devDependencies['nitro-codegen'], + } + newWorkspacePackageJsonFile.keywords = [ ...newWorkspacePackageJsonFile.keywords, this.config.finalPackageName, @@ -323,7 +354,7 @@ export class NitroModuleFactory { const nitroKey = `react-native-nitro-modules` exampleAppPackageJson.dependencies = { ...exampleAppPackageJson.dependencies, - [nitroKey]: templatePackageJson.devDependencies[nitroKey] ?? '*', + [nitroKey]: this.nitroModulesVersion ?? '*', } exampleAppPackageJson.devDependencies = { From c8466a983fbd9aabb77042c6c083a2b9357e5559 Mon Sep 17 00:00:00 2001 From: Patrick Kabwe Date: Sat, 6 Sep 2025 07:50:55 +0200 Subject: [PATCH 2/3] chore: format and update configuration files for consistency --- .../actions/android-gradle-build/action.yml | 35 +- .github/actions/install-deps/action.yml | 35 +- .github/actions/ios-build-xcode/action.yml | 57 +- .github/actions/run-codegen-build/action.yml | 35 +- .github/actions/setup-yarn/action.yml | 29 +- .github/dependabot.yml | 56 +- .github/workflows/ci-packages.yml | 1038 +++++++++-------- .github/workflows/deploy.yml | 116 +- .github/workflows/release.yml | 78 +- CHANGELOG.md | 465 ++++---- assets/react-native.config.js | 16 +- assets/template/.github/dependabot.yml | 4 + assets/template/.github/workflows/release.yml | 4 +- assets/template/.watchmanconfig | 2 +- assets/template/nitro.json | 12 +- assets/template/release.config.cjs | 97 +- docs/docs/intro.md | 2 +- docs/docs/troubleshooting.md | 2 - docs/docs/usage/_category_.json | 14 +- .../create-an-app-with-nitro-module-setup.md | 10 +- docs/docusaurus.config.ts | 149 ++- docs/package.json | 90 +- docs/sidebars.ts | 14 +- .../src/components/HomepageFeatures/index.tsx | 110 +- .../HomepageFeatures/styles.module.css | 12 +- docs/src/css/custom.css | 34 +- docs/src/pages/index.module.css | 20 +- docs/src/pages/index.tsx | 62 +- docs/tsconfig.json | 12 +- e2e-tests/view.e2e.yaml | 2 +- lefthook.yml | 36 +- src/generate-nitro-package.ts | 14 +- src/nitro-spinner.ts | 2 +- tsconfig.json | 24 +- tsup.config.ts | 10 +- 35 files changed, 1349 insertions(+), 1349 deletions(-) diff --git a/.github/actions/android-gradle-build/action.yml b/.github/actions/android-gradle-build/action.yml index e5f8aa29..e25f52d9 100644 --- a/.github/actions/android-gradle-build/action.yml +++ b/.github/actions/android-gradle-build/action.yml @@ -1,22 +1,21 @@ name: Android Gradle build description: Clean, generate codegen artifacts, build assemble{mode}, and stop Gradle inputs: - android-dir: - description: Path to example/android directory - required: true - mode: - description: Build mode (Debug|Release) - required: true + android-dir: + description: Path to example/android directory + required: true + mode: + description: Build mode (Debug|Release) + required: true runs: - using: composite - steps: - - shell: bash - run: | - set -euo pipefail - cd "${{ inputs.android-dir }}" - chmod +x ./gradlew - ./gradlew clean - ./gradlew generateCodegenArtifactsFromSchema - ./gradlew assemble${{ inputs.mode }} --no-daemon --build-cache - ./gradlew --stop - + using: composite + steps: + - shell: bash + run: | + set -euo pipefail + cd "${{ inputs.android-dir }}" + chmod +x ./gradlew + ./gradlew clean + ./gradlew generateCodegenArtifactsFromSchema + ./gradlew assemble${{ inputs.mode }} --no-daemon --build-cache + ./gradlew --stop diff --git a/.github/actions/install-deps/action.yml b/.github/actions/install-deps/action.yml index 9f3577ce..043e875f 100644 --- a/.github/actions/install-deps/action.yml +++ b/.github/actions/install-deps/action.yml @@ -1,22 +1,21 @@ name: Install package dependencies description: Install dependencies using the provided package manager in a working directory inputs: - pm: - description: Package manager (bun|yarn|pnpm|npm) - required: true - working-directory: - description: Directory to run the install in - required: true + pm: + description: Package manager (bun|yarn|pnpm|npm) + required: true + working-directory: + description: Directory to run the install in + required: true runs: - using: composite - steps: - - shell: bash - run: | - set -euo pipefail - cd "${{ inputs.working-directory }}" - case "${{ inputs.pm }}" in - bun|yarn|pnpm|npm) ;; - *) echo "Unsupported pm: ${{ inputs.pm }}" >&2; exit 1;; - esac - ${{ inputs.pm }} install - + using: composite + steps: + - shell: bash + run: | + set -euo pipefail + cd "${{ inputs.working-directory }}" + case "${{ inputs.pm }}" in + bun|yarn|pnpm|npm) ;; + *) echo "Unsupported pm: ${{ inputs.pm }}" >&2; exit 1;; + esac + ${{ inputs.pm }} install diff --git a/.github/actions/ios-build-xcode/action.yml b/.github/actions/ios-build-xcode/action.yml index 831bd1e8..429e4b01 100644 --- a/.github/actions/ios-build-xcode/action.yml +++ b/.github/actions/ios-build-xcode/action.yml @@ -1,33 +1,32 @@ name: iOS xcodebuild description: Build iOS workspace/scheme with xcpretty inputs: - ios-dir: - description: Path to example/ios directory - required: true - scheme: - description: Xcode scheme to build - required: true - mode: - description: Build configuration (Debug|Release) - required: true + ios-dir: + description: Path to example/ios directory + required: true + scheme: + description: Xcode scheme to build + required: true + mode: + description: Build configuration (Debug|Release) + required: true runs: - using: composite - steps: - - shell: bash - run: | - set -euo pipefail - gem install xcpretty - cd "${{ inputs.ios-dir }}" - set -o pipefail && xcodebuild \ - CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \ - -derivedDataPath build -UseModernBuildSystem=YES \ - -workspace "${SCHEME}.xcworkspace" \ - -scheme "${SCHEME}" \ - -sdk iphonesimulator \ - -configuration "${{ inputs.mode }}" \ - -destination 'platform=iOS Simulator,name=iPhone 16' \ - build \ - CODE_SIGNING_ALLOWED=NO | xcpretty - env: - SCHEME: ${{ inputs.scheme }} - + using: composite + steps: + - shell: bash + run: | + set -euo pipefail + gem install xcpretty + cd "${{ inputs.ios-dir }}" + set -o pipefail && xcodebuild \ + CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \ + -derivedDataPath build -UseModernBuildSystem=YES \ + -workspace "${SCHEME}.xcworkspace" \ + -scheme "${SCHEME}" \ + -sdk iphonesimulator \ + -configuration "${{ inputs.mode }}" \ + -destination 'platform=iOS Simulator,name=iPhone 16' \ + build \ + CODE_SIGNING_ALLOWED=NO | xcpretty + env: + SCHEME: ${{ inputs.scheme }} diff --git a/.github/actions/run-codegen-build/action.yml b/.github/actions/run-codegen-build/action.yml index 08821dc6..dad86b80 100644 --- a/.github/actions/run-codegen-build/action.yml +++ b/.github/actions/run-codegen-build/action.yml @@ -1,22 +1,21 @@ name: Run codegen and build description: Run nitro codegen, build the package, and execute post-script inputs: - pm: - description: Package manager (bun|yarn|pnpm|npm) - required: true - working-directory: - description: Directory to run in - required: true + pm: + description: Package manager (bun|yarn|pnpm|npm) + required: true + working-directory: + description: Directory to run in + required: true runs: - using: composite - steps: - - shell: bash - run: | - set -euo pipefail - cd "${{ inputs.working-directory }}" - bunx nitro-codegen --logLevel="debug" - ${{ inputs.pm }} run build - if [ -f post-script.js ]; then - node post-script.js - fi - + using: composite + steps: + - shell: bash + run: | + set -euo pipefail + cd "${{ inputs.working-directory }}" + bunx nitro-codegen --logLevel="debug" + ${{ inputs.pm }} run build + if [ -f post-script.js ]; then + node post-script.js + fi diff --git a/.github/actions/setup-yarn/action.yml b/.github/actions/setup-yarn/action.yml index af4e6e51..a88d817a 100644 --- a/.github/actions/setup-yarn/action.yml +++ b/.github/actions/setup-yarn/action.yml @@ -1,19 +1,18 @@ name: Setup Yarn in working directory description: Configure Yarn v4 with node-modules linker for the given directory inputs: - working-directory: - description: Directory to run yarn config - required: true + working-directory: + description: Directory to run yarn config + required: true runs: - using: composite - steps: - - shell: bash - run: | - set -euo pipefail - corepack enable - cd "${{ inputs.working-directory }}" - yarn set version 4.6.0 - yarn config set enableImmutableInstalls false - yarn config set nodeLinker node-modules - touch yarn.lock - + using: composite + steps: + - shell: bash + run: | + set -euo pipefail + corepack enable + cd "${{ inputs.working-directory }}" + yarn set version 4.6.0 + yarn config set enableImmutableInstalls false + yarn config set nodeLinker node-modules + touch yarn.lock diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5cc0166a..4c54749d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,29 +1,33 @@ version: 2 updates: - - package-ecosystem: 'github-actions' - directory: '/' - schedule: - interval: 'daily' - labels: - - 'dependencies' + - package-ecosystem: 'github-actions' + directory: '/' + schedule: + interval: 'daily' + labels: + - 'dependencies' - - package-ecosystem: bun - directories: - - '/' - - '/assets/template' - schedule: - interval: 'daily' - commit-message: - prefix: "chore" - include: "scope" - groups: - rncli: - patterns: - - '@react-native-community/cli*' - babel: - patterns: - - '@babel/*' - react-native: - patterns: - - '@react-native/*' - - 'react-native' + - package-ecosystem: bun + directories: + - '/' + - '/assets/template' + schedule: + interval: 'daily' + commit-message: + prefix: 'chore' + include: 'scope' + groups: + rncli: + patterns: + - '@react-native-community/cli*' + babel: + patterns: + - '@babel/*' + react-native: + patterns: + - '@react-native/*' + - 'react-native' + nitro: + patterns: + - 'nitro-codegen' + - 'react-native-nitro-modules' diff --git a/.github/workflows/ci-packages.yml b/.github/workflows/ci-packages.yml index eb4dbab1..cb340938 100644 --- a/.github/workflows/ci-packages.yml +++ b/.github/workflows/ci-packages.yml @@ -1,528 +1,530 @@ name: Packages CI - Build, E2E, PM Tests on: - push: - branches: [next] - paths: - - 'src/**' - - '.github/workflows/**' - - '.github/actions/**' - - 'package.json' - - 'bun.lock' - - 'assets/template/**' - pull_request: - branches: [main, next] - paths: - - 'src/**' - - '.github/workflows/**' - - '.github/actions/**' - - 'package.json' - - 'bun.lock' - - 'assets/template/**' - workflow_dispatch: + push: + branches: [next] + paths: + - 'src/**' + - '.github/workflows/**' + - '.github/actions/**' + - 'package.json' + - 'bun.lock' + - 'assets/template/**' + pull_request: + branches: [main, next] + paths: + - 'src/**' + - '.github/workflows/**' + - '.github/actions/**' + - 'package.json' + - 'bun.lock' + - 'assets/template/**' + workflow_dispatch: + schedule: + - cron: '0 0 * * *' # Every day at midnight permissions: - contents: write - actions: write + contents: write + actions: write concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: - lint-and-build: - name: Lint and Build CLI - runs-on: ubuntu-latest - outputs: - bun-cache-key: ${{ runner.os }}-bun - steps: - - name: Checkout Repo - uses: actions/checkout@v5 - - - name: Setup Bun.js - uses: oven-sh/setup-bun@v2 - with: - bun-version: latest - - - name: Cache bun dependencies - id: bun-cache - uses: actions/cache@v4 - with: - path: ~/.bun/install/cache - key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock', '**/bun.lockb') }} - restore-keys: | - ${{ runner.os }}-bun- - - - name: Install dependencies - run: bun install - - - name: Lint Code - run: bun lint - - - name: Build CLI - run: bun run build - - - name: Test CLI help commands - run: | - node lib/cli/index.js --help - node lib/cli/index.js create --help - - generate-packages: - name: Generate with ${{ matrix.pm }} - ${{ matrix.package-type }} - needs: lint-and-build - runs-on: macos-latest - strategy: - matrix: - pm: ['bun', 'yarn'] - package-type: ['module', 'view'] - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - steps: - - uses: actions/checkout@v5 - - - name: Configure Git - run: | - git config --global user.name "GitHub Actions Bot" - git config --global user.email "actions@github.com" - - - name: Setup pnpm - if: matrix.pm == 'pnpm' - uses: pnpm/action-setup@v4 - with: - version: 10 - - - name: Setup Node.js - if: matrix.pm == 'yarn' || matrix.pm == 'pnpm' - uses: actions/setup-node@v5 - with: - node-version: 22.x - - - name: Setup Bun.js - uses: oven-sh/setup-bun@v2 - with: - bun-version: latest - - - name: Cache dependencies (bun) - if: matrix.pm == 'bun' - uses: actions/cache@v4 - with: - path: ~/.bun/install/cache - key: ${{ needs.lint-and-build.outputs.bun-cache-key }}-${{ hashFiles('**/bun.lockb') }} - restore-keys: | - ${{ runner.os }}-bun- - - - name: Install npm dependencies (bun) - run: bun install - - - name: Build CLI and Link Locally - run: | - bun run build - ${{matrix.pm}} link - - - name: Generate ${{ matrix.package-type }} with ${{ matrix.pm }} - if: matrix.pm != 'pnpm' - run: ${{ matrix.pm }} create nitro-module test-${{ matrix.package-type }} --skip-install --ci --package-type ${{ matrix.package-type }} - - - name: Generate ${{ matrix.package-type }} with ${{ matrix.pm }} (pnpm) - if: matrix.pm == 'pnpm' - run: create-nitro-module test-${{ matrix.package-type }} --skip-install --ci --package-type ${{ matrix.package-type }} - - - name: Verify generated package structure - run: | - PACKAGE_DIR="react-native-test-${{ matrix.package-type }}" - if [ ! -d "$PACKAGE_DIR" ]; then - echo "❌ Package directory not found: $PACKAGE_DIR" - ls -la - exit 1 - fi - echo "✅ Package directory created: $PACKAGE_DIR" - cd "$PACKAGE_DIR" - REQUIRED_FILES=( - "package.json" - "README.md" - "src/" - "android/" - "ios/" - "example/" - ) - for file in "${REQUIRED_FILES[@]}"; do - if [ ! -e "$file" ]; then - echo "❌ Missing required file/directory: $file" - ls -la - exit 1 - fi - echo "✅ Found: $file" - done - - - name: Test package.json content - run: | - cd "react-native-test-${{ matrix.package-type }}" - if ! grep -q "react-native-test-${{ matrix.package-type }}" package.json; then - echo "❌ Package name not correct in package.json" && cat package.json && exit 1 - fi - if ! grep -q '"scripts"' package.json; then - echo "❌ Scripts section missing from package.json" && exit 1 - fi - echo "✅ package.json structure validated" - - - name: Upload generated package - uses: actions/upload-artifact@v4 - with: - name: test-${{ matrix.package-type }}-${{ matrix.pm }} - path: react-native-test-${{ matrix.package-type }} - include-hidden-files: true - if-no-files-found: error - retention-days: 7 - - # Package manager build tests (iOS) - test-ios-build: - name: Test iOS Build - ${{ matrix.pm }} - ${{ matrix.package-type }} (${{ matrix.mode }}) - needs: generate-packages - runs-on: macOS-latest - strategy: - fail-fast: false - matrix: - pm: ['bun', 'yarn'] - package-type: ['module', 'view'] - mode: ['Debug', 'Release'] - env: - WORKING_DIR: ${{ github.workspace }}/react-native-test-${{ matrix.package-type }} - SCHEME: ${{ matrix.package-type == 'module' && 'TestModuleExample' || 'TestViewExample' }} - steps: - - name: Checkout repository - uses: actions/checkout@v5 - - - name: Create working directory - run: mkdir -p ${{ env.WORKING_DIR }} - - - name: Download generated package - uses: actions/download-artifact@v5 - with: - name: test-${{ matrix.package-type }}-${{ matrix.pm }} - path: ${{ env.WORKING_DIR }} - - - name: List package structure - working-directory: ${{ env.WORKING_DIR }} - run: | - echo "Package structure:" - find . -type f -name "*.json" -o -name "*.js" -o -name "*.ts" | head -20 - - - name: Setup Xcode - uses: maxim-lobanov/setup-xcode@v1 - with: - xcode-version: 16.4 - - - name: Setup Ruby and CocoaPods - uses: ruby/setup-ruby@v1 - with: - ruby-version: '3.2' - bundler-cache: true - - - name: Setup Node.js - if: matrix.pm == 'yarn' - uses: actions/setup-node@v5 - with: - node-version: 22.x - - - name: Setup Yarn - if: matrix.pm == 'yarn' - uses: ./.github/actions/setup-yarn - with: - working-directory: ${{ env.WORKING_DIR }} - - - name: Setup Bun.js - uses: oven-sh/setup-bun@v2 - with: - bun-version: latest - - - name: Install package dependencies - uses: ./.github/actions/install-deps - with: - pm: ${{ matrix.pm }} - working-directory: ${{ env.WORKING_DIR }} - - - name: Run codegen and build - uses: ./.github/actions/run-codegen-build - with: - pm: ${{ matrix.pm }} - working-directory: ${{ env.WORKING_DIR }} - - - name: Cache CocoaPods - uses: actions/cache@v4 - with: - path: | - ~/.cocoapods/repos - ${{ env.WORKING_DIR }}/example/ios/Pods - key: ${{ runner.os }}-pods-${{ hashFiles(format('{0}/example/ios/Podfile.lock', env.WORKING_DIR)) }} - restore-keys: | - ${{ runner.os }}-pods- - - - name: Install CocoaPods dependencies - working-directory: ${{ env.WORKING_DIR }}/example - run: ${{ matrix.pm }} pod - - - name: Build iOS project - uses: ./.github/actions/ios-build-xcode - with: - ios-dir: ${{ env.WORKING_DIR }}/example/ios - scheme: ${{ env.SCHEME }} - mode: ${{ matrix.mode }} - - # Package manager build tests (Android) - test-android-build: - name: Test Android Build - ${{ matrix.pm }} - ${{ matrix.package-type }} (${{ matrix.mode }}) - needs: generate-packages - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - pm: ['bun', 'yarn'] - package-type: ['module', 'view'] - mode: ['Debug', 'Release'] - env: - WORKING_DIR: ${{ github.workspace }}/react-native-test-${{ matrix.package-type }} - steps: - - name: Checkout repository - uses: actions/checkout@v5 - - - name: Create working directory - run: mkdir -p ${{ env.WORKING_DIR }} - - - name: Download generated package - uses: actions/download-artifact@v5 - with: - name: test-${{ matrix.package-type }}-${{ matrix.pm }} - path: ${{ env.WORKING_DIR }} - - - name: List package structure - working-directory: ${{ env.WORKING_DIR }} - run: | - echo "Package structure:" - find . -type f -name "*.json" -o -name "*.js" -o -name "*.ts" | head -20 - - - name: Setup Node.js - if: matrix.pm == 'yarn' - uses: actions/setup-node@v5 - with: - node-version: 22.x - - - name: Setup Yarn - if: matrix.pm == 'yarn' - uses: ./.github/actions/setup-yarn - with: - working-directory: ${{ env.WORKING_DIR }} - - - name: Setup Bun.js - uses: oven-sh/setup-bun@v2 - with: - bun-version: latest - - - name: Install package dependencies - uses: ./.github/actions/install-deps - with: - pm: ${{ matrix.pm }} - working-directory: ${{ env.WORKING_DIR }} - - - name: Run codegen and build - uses: ./.github/actions/run-codegen-build - with: - pm: ${{ matrix.pm }} - working-directory: ${{ env.WORKING_DIR }} - - - name: Setup Java for Android builds - uses: actions/setup-java@v5 - with: - distribution: 'zulu' - java-version: '17' - cache: 'gradle' - - - name: Cache Gradle - uses: actions/cache@v4 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-${{ hashFiles(format('{0}/example/android/**/*.gradle*', env.WORKING_DIR)) }} - restore-keys: | - ${{ runner.os }}-gradle- - - name: Build Android project - uses: ./.github/actions/android-gradle-build - with: - android-dir: ${{ env.WORKING_DIR }}/example/android - mode: ${{ matrix.mode }} - - # E2E tests (Android) - e2e-android: - if: always() - name: Android E2E Test - needs: generate-packages - runs-on: ubuntu-latest - strategy: - matrix: - package-type: ['module', 'view'] - mode: ['Release'] - pm: ['bun'] - env: - WORKING_DIR: ${{ github.workspace }}/react-native-test-${{ matrix.package-type }} - steps: - - name: Checkout repository - uses: actions/checkout@v5 - - - name: Enable KVM (Android emulator) - if: runner.os == 'Linux' - run: | - echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules - sudo udevadm control --reload-rules - sudo udevadm trigger --name-match=kvm - - - name: Create working directory - run: mkdir -p ${{ env.WORKING_DIR }} - - - name: Download generated package - uses: actions/download-artifact@v5 - with: - name: test-${{ matrix.package-type }}-${{ matrix.pm }} - path: ${{ env.WORKING_DIR }} - - - name: List package structure - working-directory: ${{ env.WORKING_DIR }} - run: find . -type f | head -30 - - - name: Setup Bun - uses: oven-sh/setup-bun@v2 - with: - bun-version: latest - - - name: Cache Bun dependencies - uses: actions/cache@v4 - with: - path: ~/.bun/install/cache - key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }} - restore-keys: | - ${{ runner.os }}-bun- - - - name: Install dependencies - uses: ./.github/actions/install-deps - with: - pm: ${{ matrix.pm }} - working-directory: ${{ env.WORKING_DIR }} - - - name: Run codegen and build - uses: ./.github/actions/run-codegen-build - with: - pm: ${{ matrix.pm }} - working-directory: ${{ env.WORKING_DIR }} - - - name: Setup Java - uses: actions/setup-java@v5 - with: - distribution: 'zulu' - java-version: '17' - cache: 'gradle' - - - name: Setup Android SDK - uses: android-actions/setup-android@v3 - - - name: Install Maestro CLI - uses: ./.github/actions/setup-maestro - - - name: Run Android Emulator and E2E Tests - uses: reactivecircus/android-emulator-runner@v2 - with: - api-level: 35 - target: google_apis - arch: x86_64 - profile: Galaxy Nexus - emulator-options: -no-snapshot -memory 4096 -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none - disable-animations: true - script: | - adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done' - ${{ matrix.pm }} android:e2e ${{ env.WORKING_DIR }}/example ${{ matrix.package-type }} - - # E2E tests (iOS) - e2e-ios: - if: always() - name: iOS E2E Test - needs: generate-packages - runs-on: macOS-15 - strategy: - matrix: - package-type: ['module', 'view'] - mode: ['Release'] - pm: ['bun'] - env: - MAESTRO_DRIVER_STARTUP_TIMEOUT: 300_000 - MAESTRO_CLI_ANALYSIS_NOTIFICATION_DISABLED: true - WORKING_DIR: ${{ github.workspace }}/react-native-test-${{ matrix.package-type }} - steps: - - name: Checkout repository - uses: actions/checkout@v5 - - - name: Setup Xcode - uses: maxim-lobanov/setup-xcode@v1 - with: - xcode-version: 16.4 - - - name: Create working directory - run: mkdir -p ${{ env.WORKING_DIR }} - - - name: Download generated module - uses: actions/download-artifact@v5 - with: - name: test-${{ matrix.package-type }}-${{ matrix.pm }} - path: ${{ env.WORKING_DIR }} - - - name: List package structure - working-directory: ${{ env.WORKING_DIR }} - run: find . -type f | head -30 - - - name: Setup Bun - uses: oven-sh/setup-bun@v2 - with: - bun-version: latest - - - name: Cache Bun dependencies - uses: actions/cache@v4 - with: - path: ~/.bun/install/cache - key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }} - restore-keys: | - ${{ runner.os }}-bun- - - - name: Install Dependencies - uses: ./.github/actions/install-deps - with: - pm: ${{ matrix.pm }} - working-directory: ${{ env.WORKING_DIR }} - - - name: Run codegen and build - uses: ./.github/actions/run-codegen-build - with: - pm: ${{ matrix.pm }} - working-directory: ${{ env.WORKING_DIR }} - - - name: Cache Pods - uses: actions/cache@v4 - with: - path: ${{ env.WORKING_DIR }}/example/ios/Pods - key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} - restore-keys: | - ${{ runner.os }}-pods- - - - name: Run pod install - working-directory: ${{ env.WORKING_DIR }}/example/ios - run: pod install - - - name: Install Maestro CLI - uses: ./.github/actions/setup-maestro - - - name: Run tests - run: ${{ matrix.pm }} ios:e2e ${{ env.WORKING_DIR }}/example ${{ matrix.package-type }} - - - name: Upload test artifacts + lint-and-build: + name: Lint and Build CLI + runs-on: ubuntu-latest + outputs: + bun-cache-key: ${{ runner.os }}-bun + steps: + - name: Checkout Repo + uses: actions/checkout@v5 + + - name: Setup Bun.js + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Cache bun dependencies + id: bun-cache + uses: actions/cache@v4 + with: + path: ~/.bun/install/cache + key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }} + restore-keys: | + ${{ runner.os }}-bun- + + - name: Install dependencies + run: bun install + + - name: Lint Code + run: bun lint + + - name: Build CLI + run: bun run build + + - name: Test CLI help commands + run: | + node lib/cli/index.js --help + node lib/cli/index.js create --help + + generate-packages: + name: Generate with ${{ matrix.pm }} - ${{ matrix.package-type }} + needs: lint-and-build + runs-on: macos-latest + strategy: + matrix: + pm: ['bun', 'yarn'] + package-type: ['module', 'view'] + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v5 + + - name: Configure Git + run: | + git config --global user.name "GitHub Actions Bot" + git config --global user.email "actions@github.com" + + - name: Setup pnpm + if: matrix.pm == 'pnpm' + uses: pnpm/action-setup@v4 + with: + version: 10 + + - name: Setup Node.js + if: matrix.pm == 'yarn' || matrix.pm == 'pnpm' + uses: actions/setup-node@v5 + with: + node-version: 22.x + + - name: Setup Bun.js + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Cache dependencies (bun) + if: matrix.pm == 'bun' + uses: actions/cache@v4 + with: + path: ~/.bun/install/cache + key: ${{ needs.lint-and-build.outputs.bun-cache-key }}-${{ hashFiles('**/bun.lockb') }} + restore-keys: | + ${{ runner.os }}-bun- + + - name: Install npm dependencies (bun) + run: bun install + + - name: Build CLI and Link Locally + run: | + bun run build + ${{matrix.pm}} link + + - name: Generate ${{ matrix.package-type }} with ${{ matrix.pm }} + if: matrix.pm != 'pnpm' + run: ${{ matrix.pm }} create nitro-module test-${{ matrix.package-type }} --skip-install --ci --package-type ${{ matrix.package-type }} + + - name: Generate ${{ matrix.package-type }} with ${{ matrix.pm }} (pnpm) + if: matrix.pm == 'pnpm' + run: create-nitro-module test-${{ matrix.package-type }} --skip-install --ci --package-type ${{ matrix.package-type }} + + - name: Verify generated package structure + run: | + PACKAGE_DIR="react-native-test-${{ matrix.package-type }}" + if [ ! -d "$PACKAGE_DIR" ]; then + echo "❌ Package directory not found: $PACKAGE_DIR" + ls -la + exit 1 + fi + echo "✅ Package directory created: $PACKAGE_DIR" + cd "$PACKAGE_DIR" + REQUIRED_FILES=( + "package.json" + "README.md" + "src/" + "android/" + "ios/" + "example/" + ) + for file in "${REQUIRED_FILES[@]}"; do + if [ ! -e "$file" ]; then + echo "❌ Missing required file/directory: $file" + ls -la + exit 1 + fi + echo "✅ Found: $file" + done + + - name: Test package.json content + run: | + cd "react-native-test-${{ matrix.package-type }}" + if ! grep -q "react-native-test-${{ matrix.package-type }}" package.json; then + echo "❌ Package name not correct in package.json" && cat package.json && exit 1 + fi + if ! grep -q '"scripts"' package.json; then + echo "❌ Scripts section missing from package.json" && exit 1 + fi + echo "✅ package.json structure validated" + + - name: Upload generated package + uses: actions/upload-artifact@v4 + with: + name: test-${{ matrix.package-type }}-${{ matrix.pm }} + path: react-native-test-${{ matrix.package-type }} + include-hidden-files: true + if-no-files-found: error + retention-days: 7 + + # Package manager build tests (iOS) + test-ios-build: + name: Test iOS Build - ${{ matrix.pm }} - ${{ matrix.package-type }} (${{ matrix.mode }}) + needs: generate-packages + runs-on: macOS-latest + strategy: + fail-fast: false + matrix: + pm: ['bun', 'yarn'] + package-type: ['module', 'view'] + mode: ['Debug', 'Release'] + env: + WORKING_DIR: ${{ github.workspace }}/react-native-test-${{ matrix.package-type }} + SCHEME: ${{ matrix.package-type == 'module' && 'TestModuleExample' || 'TestViewExample' }} + steps: + - name: Checkout repository + uses: actions/checkout@v5 + + - name: Create working directory + run: mkdir -p ${{ env.WORKING_DIR }} + + - name: Download generated package + uses: actions/download-artifact@v5 + with: + name: test-${{ matrix.package-type }}-${{ matrix.pm }} + path: ${{ env.WORKING_DIR }} + + - name: List package structure + working-directory: ${{ env.WORKING_DIR }} + run: | + echo "Package structure:" + find . -type f -name "*.json" -o -name "*.js" -o -name "*.ts" | head -20 + + - name: Setup Xcode + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: 16.4 + + - name: Setup Ruby and CocoaPods + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.2' + bundler-cache: true + + - name: Setup Node.js + if: matrix.pm == 'yarn' + uses: actions/setup-node@v5 + with: + node-version: 22.x + + - name: Setup Yarn + if: matrix.pm == 'yarn' + uses: ./.github/actions/setup-yarn + with: + working-directory: ${{ env.WORKING_DIR }} + + - name: Setup Bun.js + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Install package dependencies + uses: ./.github/actions/install-deps + with: + pm: ${{ matrix.pm }} + working-directory: ${{ env.WORKING_DIR }} + + - name: Run codegen and build + uses: ./.github/actions/run-codegen-build + with: + pm: ${{ matrix.pm }} + working-directory: ${{ env.WORKING_DIR }} + + - name: Cache CocoaPods + uses: actions/cache@v4 + with: + path: | + ~/.cocoapods/repos + ${{ env.WORKING_DIR }}/example/ios/Pods + key: ${{ runner.os }}-pods-${{ hashFiles(format('{0}/example/ios/Podfile.lock', env.WORKING_DIR)) }} + restore-keys: | + ${{ runner.os }}-pods- + + - name: Install CocoaPods dependencies + working-directory: ${{ env.WORKING_DIR }}/example + run: ${{ matrix.pm }} pod + + - name: Build iOS project + uses: ./.github/actions/ios-build-xcode + with: + ios-dir: ${{ env.WORKING_DIR }}/example/ios + scheme: ${{ env.SCHEME }} + mode: ${{ matrix.mode }} + + # Package manager build tests (Android) + test-android-build: + name: Test Android Build - ${{ matrix.pm }} - ${{ matrix.package-type }} (${{ matrix.mode }}) + needs: generate-packages + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + pm: ['bun', 'yarn'] + package-type: ['module', 'view'] + mode: ['Debug', 'Release'] + env: + WORKING_DIR: ${{ github.workspace }}/react-native-test-${{ matrix.package-type }} + steps: + - name: Checkout repository + uses: actions/checkout@v5 + + - name: Create working directory + run: mkdir -p ${{ env.WORKING_DIR }} + + - name: Download generated package + uses: actions/download-artifact@v5 + with: + name: test-${{ matrix.package-type }}-${{ matrix.pm }} + path: ${{ env.WORKING_DIR }} + + - name: List package structure + working-directory: ${{ env.WORKING_DIR }} + run: | + echo "Package structure:" + find . -type f -name "*.json" -o -name "*.js" -o -name "*.ts" | head -20 + + - name: Setup Node.js + if: matrix.pm == 'yarn' + uses: actions/setup-node@v5 + with: + node-version: 22.x + + - name: Setup Yarn + if: matrix.pm == 'yarn' + uses: ./.github/actions/setup-yarn + with: + working-directory: ${{ env.WORKING_DIR }} + + - name: Setup Bun.js + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Install package dependencies + uses: ./.github/actions/install-deps + with: + pm: ${{ matrix.pm }} + working-directory: ${{ env.WORKING_DIR }} + + - name: Run codegen and build + uses: ./.github/actions/run-codegen-build + with: + pm: ${{ matrix.pm }} + working-directory: ${{ env.WORKING_DIR }} + + - name: Setup Java for Android builds + uses: actions/setup-java@v5 + with: + distribution: 'zulu' + java-version: '17' + cache: 'gradle' + + - name: Cache Gradle + uses: actions/cache@v4 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles(format('{0}/example/android/**/*.gradle*', env.WORKING_DIR)) }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Build Android project + uses: ./.github/actions/android-gradle-build + with: + android-dir: ${{ env.WORKING_DIR }}/example/android + mode: ${{ matrix.mode }} + + # E2E tests (Android) + e2e-android: if: always() - uses: actions/upload-artifact@v4 - with: - name: maestro-artifacts-ios-${{ matrix.package-type }} - path: e2e-artifacts - include-hidden-files: true + name: Android E2E Test + needs: generate-packages + runs-on: ubuntu-latest + strategy: + matrix: + package-type: ['module', 'view'] + mode: ['Release'] + pm: ['bun'] + env: + WORKING_DIR: ${{ github.workspace }}/react-native-test-${{ matrix.package-type }} + steps: + - name: Checkout repository + uses: actions/checkout@v5 + + - name: Enable KVM (Android emulator) + if: runner.os == 'Linux' + run: | + echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules + sudo udevadm control --reload-rules + sudo udevadm trigger --name-match=kvm + + - name: Create working directory + run: mkdir -p ${{ env.WORKING_DIR }} + + - name: Download generated package + uses: actions/download-artifact@v5 + with: + name: test-${{ matrix.package-type }}-${{ matrix.pm }} + path: ${{ env.WORKING_DIR }} + + - name: List package structure + working-directory: ${{ env.WORKING_DIR }} + run: find . -type f | head -30 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Cache Bun dependencies + uses: actions/cache@v4 + with: + path: ~/.bun/install/cache + key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }} + restore-keys: | + ${{ runner.os }}-bun- + + - name: Install dependencies + uses: ./.github/actions/install-deps + with: + pm: ${{ matrix.pm }} + working-directory: ${{ env.WORKING_DIR }} + + - name: Run codegen and build + uses: ./.github/actions/run-codegen-build + with: + pm: ${{ matrix.pm }} + working-directory: ${{ env.WORKING_DIR }} + + - name: Setup Java + uses: actions/setup-java@v5 + with: + distribution: 'zulu' + java-version: '17' + cache: 'gradle' + + - name: Setup Android SDK + uses: android-actions/setup-android@v3 + + - name: Install Maestro CLI + uses: ./.github/actions/setup-maestro + + - name: Run Android Emulator and E2E Tests + uses: reactivecircus/android-emulator-runner@v2 + with: + api-level: 35 + target: google_apis + arch: x86_64 + profile: Galaxy Nexus + emulator-options: -no-snapshot -memory 4096 -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none + disable-animations: true + script: | + adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done' + ${{ matrix.pm }} android:e2e ${{ env.WORKING_DIR }}/example ${{ matrix.package-type }} + + # E2E tests (iOS) + e2e-ios: + if: always() + name: iOS E2E Test + needs: generate-packages + runs-on: macOS-15 + strategy: + matrix: + package-type: ['module', 'view'] + mode: ['Release'] + pm: ['bun'] + env: + MAESTRO_DRIVER_STARTUP_TIMEOUT: 300_000 + MAESTRO_CLI_ANALYSIS_NOTIFICATION_DISABLED: true + WORKING_DIR: ${{ github.workspace }}/react-native-test-${{ matrix.package-type }} + steps: + - name: Checkout repository + uses: actions/checkout@v5 + + - name: Setup Xcode + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: 16.4 + + - name: Create working directory + run: mkdir -p ${{ env.WORKING_DIR }} + + - name: Download generated module + uses: actions/download-artifact@v5 + with: + name: test-${{ matrix.package-type }}-${{ matrix.pm }} + path: ${{ env.WORKING_DIR }} + + - name: List package structure + working-directory: ${{ env.WORKING_DIR }} + run: find . -type f | head -30 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Cache Bun dependencies + uses: actions/cache@v4 + with: + path: ~/.bun/install/cache + key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }} + restore-keys: | + ${{ runner.os }}-bun- + + - name: Install Dependencies + uses: ./.github/actions/install-deps + with: + pm: ${{ matrix.pm }} + working-directory: ${{ env.WORKING_DIR }} + + - name: Run codegen and build + uses: ./.github/actions/run-codegen-build + with: + pm: ${{ matrix.pm }} + working-directory: ${{ env.WORKING_DIR }} + + - name: Cache Pods + uses: actions/cache@v4 + with: + path: ${{ env.WORKING_DIR }}/example/ios/Pods + key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} + restore-keys: | + ${{ runner.os }}-pods- + + - name: Run pod install + working-directory: ${{ env.WORKING_DIR }}/example/ios + run: pod install + + - name: Install Maestro CLI + uses: ./.github/actions/setup-maestro + + - name: Run tests + run: ${{ matrix.pm }} ios:e2e ${{ env.WORKING_DIR }}/example ${{ matrix.package-type }} + + - name: Upload test artifacts + if: always() + uses: actions/upload-artifact@v4 + with: + name: maestro-artifacts-ios-${{ matrix.package-type }} + path: e2e-artifacts + include-hidden-files: true diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ec49f5a5..1dc1dd65 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,63 +1,63 @@ name: Deploy to GitHub Pages on: - push: - branches: - - main - paths: - - 'docs/**' - - '.github/workflows/deploy.yml' - pull_request: - branches: - - main - paths: - - 'docs/**' - - '.github/workflows/deploy.yml' + push: + branches: + - main + paths: + - 'docs/**' + - '.github/workflows/deploy.yml' + pull_request: + branches: + - main + paths: + - 'docs/**' + - '.github/workflows/deploy.yml' jobs: - build: - name: Build Docs Website - runs-on: ubuntu-latest - defaults: - run: - working-directory: docs - steps: - - uses: actions/checkout@v5 - with: - fetch-depth: 0 - - - name: Setup Bun.js - uses: oven-sh/setup-bun@v2 - with: - bun-version: latest - - - name: Install dependencies - run: bun install --frozen-lockfile - - - name: Build website - id: build - run: bun run build - - - name: Upload Build Artifact - id: deployment - uses: actions/upload-pages-artifact@v4 - with: - path: docs/build - - deploy: - name: Deploy to GitHub Pages - needs: build - if: ${{ github.event_name == 'push' }} - permissions: - pages: write - id-token: write - - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - - runs-on: ubuntu-latest - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 + build: + name: Build Docs Website + runs-on: ubuntu-latest + defaults: + run: + working-directory: docs + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + + - name: Setup Bun.js + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Install dependencies + run: bun install --frozen-lockfile + + - name: Build website + id: build + run: bun run build + + - name: Upload Build Artifact + id: deployment + uses: actions/upload-pages-artifact@v4 + with: + path: docs/build + + deploy: + name: Deploy to GitHub Pages + needs: build + if: ${{ github.event_name == 'push' }} + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aee3fa77..8f1b8cd9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,43 +8,43 @@ concurrency: cancel-in-progress: true jobs: - release: - name: Release - runs-on: ubuntu-latest - permissions: - contents: write - id-token: write - steps: - - name: Checkout - uses: actions/checkout@v5 - with: - fetch-depth: 0 - - name: Setup Bun.js - uses: oven-sh/setup-bun@v2 - with: - bun-version: latest - - name: Cache bun dependencies - id: bun-cache - uses: actions/cache@v4 - with: - path: ~/.bun/install/cache - key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }} - restore-keys: | - ${{ runner.os }}-bun- - - - name: Install npm dependencies (bun) - run: bun install + release: + name: Release + runs-on: ubuntu-latest + permissions: + contents: write + id-token: write + steps: + - name: Checkout + uses: actions/checkout@v5 + with: + fetch-depth: 0 + - name: Setup Bun.js + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + - name: Cache bun dependencies + id: bun-cache + uses: actions/cache@v4 + with: + path: ~/.bun/install/cache + key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }} + restore-keys: | + ${{ runner.os }}-bun- - - name: Build lib - run: bun run build - - - name: Release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - NPM_CONFIG_PROVENANCE: true - GIT_AUTHOR_NAME: ${{ github.actor }} - GIT_AUTHOR_EMAIL: "${{ github.actor }}@users.noreply.github.com" - GIT_COMMITTER_NAME: ${{ github.actor }} - GIT_COMMITTER_EMAIL: "${{ github.actor }}@users.noreply.github.com" - run: bun release + - name: Install npm dependencies (bun) + run: bun install + + - name: Build lib + run: bun run build + + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_CONFIG_PROVENANCE: true + GIT_AUTHOR_NAME: ${{ github.actor }} + GIT_AUTHOR_EMAIL: '${{ github.actor }}@users.noreply.github.com' + GIT_COMMITTER_NAME: ${{ github.actor }} + GIT_COMMITTER_EMAIL: '${{ github.actor }}@users.noreply.github.com' + run: bun release diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d91cd87..727a3e7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,432 +2,432 @@ ### 🛠️ Other changes -* **deps:** update nitro-codegen and react-native-nitro-modules to version 0.29.2 ([5175f6b](https://github.com/patrickkabwe/create-nitro-module/commit/5175f6b2d97861ea845e26d547b4a906646d62f6)) -* update Node.js engine requirement from >=18 to >=22 in package.json ([970c0df](https://github.com/patrickkabwe/create-nitro-module/commit/970c0df6d9c5d5cbd6dfa25dc770841abd5b43b9)) +- **deps:** update nitro-codegen and react-native-nitro-modules to version 0.29.2 ([5175f6b](https://github.com/patrickkabwe/create-nitro-module/commit/5175f6b2d97861ea845e26d547b4a906646d62f6)) +- update Node.js engine requirement from >=18 to >=22 in package.json ([970c0df](https://github.com/patrickkabwe/create-nitro-module/commit/970c0df6d9c5d5cbd6dfa25dc770841abd5b43b9)) ## [3.2.0](https://github.com/patrickkabwe/create-nitro-module/compare/v3.1.0...v3.2.0) (2025-08-30) ### ✨ Features -* **snippets:** update code.js.ts snippets ([4fa1868](https://github.com/patrickkabwe/create-nitro-module/commit/4fa186851d9ee97cdb48ee19e503e983b4d0f612)) +- **snippets:** update code.js.ts snippets ([4fa1868](https://github.com/patrickkabwe/create-nitro-module/commit/4fa186851d9ee97cdb48ee19e503e983b4d0f612)) ### 🛠️ Other changes -* **android:** enable RN_SERIALIZABLE_STATE for Nitro Views ([fb0cd8a](https://github.com/patrickkabwe/create-nitro-module/commit/fb0cd8a4427e8545f3390fddc33534f1e2b8bd1f)) -* **ci:** add Xcode setup step and update gradle cache syntax in CI workflow ([1bc93b5](https://github.com/patrickkabwe/create-nitro-module/commit/1bc93b5fcebbf54122f66cfcb504a26e312008ad)) -* **ci:** refactor template android/ios workflows ([ebc11ea](https://github.com/patrickkabwe/create-nitro-module/commit/ebc11ea53daba78fef7f4652a7cf44fc7976c0ff)) -* **ci:** refactor test-nitro-cli workflow ([bb53ba9](https://github.com/patrickkabwe/create-nitro-module/commit/bb53ba912632aa47ce90127d3e604cf19caa6402)) -* **ci:** update e2e workflow and improve build error handling ([154d89e](https://github.com/patrickkabwe/create-nitro-module/commit/154d89e695327c17462b501dc70e2b5e65fe8cee)) -* **deps-dev:** bump @types/node from 24.1.0 to 24.2.1 ([f2c8da1](https://github.com/patrickkabwe/create-nitro-module/commit/f2c8da1eb65ba875a2396f2fe6e5285641dbd2c8)) -* **deps-dev:** bump @typescript-eslint/eslint-plugin ([bdaece7](https://github.com/patrickkabwe/create-nitro-module/commit/bdaece71e2cc17cf1005a70d206ae9bc5a5a4deb)) -* **deps-dev:** bump @typescript-eslint/eslint-plugin ([825160a](https://github.com/patrickkabwe/create-nitro-module/commit/825160acb821199d43a787e17d2df3b5804cac9b)) -* **deps-dev:** bump @typescript-eslint/eslint-plugin ([3a63213](https://github.com/patrickkabwe/create-nitro-module/commit/3a63213383e5639841ea1b9e38386837894d850a)) -* **deps-dev:** bump @typescript-eslint/parser from 8.38.0 to 8.39.1 ([72f74f3](https://github.com/patrickkabwe/create-nitro-module/commit/72f74f3df9f173ae0c6b0eeb23ca990cbf3721f6)) -* **deps-dev:** bump @typescript-eslint/parser from 8.39.1 to 8.40.0 ([4c2ccef](https://github.com/patrickkabwe/create-nitro-module/commit/4c2ccef32acf00da79eae75aee5b702c8103e489)) -* **deps-dev:** bump @typescript-eslint/parser from 8.40.0 to 8.41.0 ([2140d19](https://github.com/patrickkabwe/create-nitro-module/commit/2140d19b2e6a2aba8a8d96dc819a970983e292db)) -* **deps-dev:** bump eslint from 9.32.0 to 9.33.0 ([3011364](https://github.com/patrickkabwe/create-nitro-module/commit/301136429b67b3233f6637a8a342cb9195546982)) -* **deps-dev:** bump eslint from 9.33.0 to 9.34.0 ([f8b7e79](https://github.com/patrickkabwe/create-nitro-module/commit/f8b7e79cc6dd4d487a315bc49022dfd3e36fd26b)) -* **deps-dev:** bump lefthook from 1.12.2 to 1.12.3 ([b748a27](https://github.com/patrickkabwe/create-nitro-module/commit/b748a2772ab5b998f377edbf3e63a185bdf7f45b)) -* **deps-dev:** bump react-native ([f346894](https://github.com/patrickkabwe/create-nitro-module/commit/f34689491f71547cd6a71ffb4b9e635bee6e034b)) -* **deps-dev:** bump react-native-nitro-modules in /assets/template ([77d4fc5](https://github.com/patrickkabwe/create-nitro-module/commit/77d4fc577c3afef54d3055b225d3e51fbcdee551)) -* **deps:** bump actions/checkout from 4 to 5 ([41f84bf](https://github.com/patrickkabwe/create-nitro-module/commit/41f84bf332134c2c478f7a6d09673cef367d76b5)) -* **deps:** bump actions/download-artifact from 4 to 5 ([be72d59](https://github.com/patrickkabwe/create-nitro-module/commit/be72d597f120dbec6fd9107871524e379ba04d3d)) -* **deps:** bump actions/setup-java from 4 to 5 ([45c211d](https://github.com/patrickkabwe/create-nitro-module/commit/45c211d4ae366bcb3f59b0f2ee1761e9db9bc9ed)) -* **deps:** bump actions/upload-pages-artifact from 3 to 4 ([4fdf4b9](https://github.com/patrickkabwe/create-nitro-module/commit/4fdf4b9097f9e08425e8135a3f21da247b8bfee6)) -* remove pnpm from CI workflow package managers ([2f45f1b](https://github.com/patrickkabwe/create-nitro-module/commit/2f45f1b38f398c18209cd42555cb18cb12ac21cc)) -* update package dependencies and enhance CI workflows ([81a99d3](https://github.com/patrickkabwe/create-nitro-module/commit/81a99d3eebd19c903600cace92f9472ac90d10e1)) +- **android:** enable RN_SERIALIZABLE_STATE for Nitro Views ([fb0cd8a](https://github.com/patrickkabwe/create-nitro-module/commit/fb0cd8a4427e8545f3390fddc33534f1e2b8bd1f)) +- **ci:** add Xcode setup step and update gradle cache syntax in CI workflow ([1bc93b5](https://github.com/patrickkabwe/create-nitro-module/commit/1bc93b5fcebbf54122f66cfcb504a26e312008ad)) +- **ci:** refactor template android/ios workflows ([ebc11ea](https://github.com/patrickkabwe/create-nitro-module/commit/ebc11ea53daba78fef7f4652a7cf44fc7976c0ff)) +- **ci:** refactor test-nitro-cli workflow ([bb53ba9](https://github.com/patrickkabwe/create-nitro-module/commit/bb53ba912632aa47ce90127d3e604cf19caa6402)) +- **ci:** update e2e workflow and improve build error handling ([154d89e](https://github.com/patrickkabwe/create-nitro-module/commit/154d89e695327c17462b501dc70e2b5e65fe8cee)) +- **deps-dev:** bump @types/node from 24.1.0 to 24.2.1 ([f2c8da1](https://github.com/patrickkabwe/create-nitro-module/commit/f2c8da1eb65ba875a2396f2fe6e5285641dbd2c8)) +- **deps-dev:** bump @typescript-eslint/eslint-plugin ([bdaece7](https://github.com/patrickkabwe/create-nitro-module/commit/bdaece71e2cc17cf1005a70d206ae9bc5a5a4deb)) +- **deps-dev:** bump @typescript-eslint/eslint-plugin ([825160a](https://github.com/patrickkabwe/create-nitro-module/commit/825160acb821199d43a787e17d2df3b5804cac9b)) +- **deps-dev:** bump @typescript-eslint/eslint-plugin ([3a63213](https://github.com/patrickkabwe/create-nitro-module/commit/3a63213383e5639841ea1b9e38386837894d850a)) +- **deps-dev:** bump @typescript-eslint/parser from 8.38.0 to 8.39.1 ([72f74f3](https://github.com/patrickkabwe/create-nitro-module/commit/72f74f3df9f173ae0c6b0eeb23ca990cbf3721f6)) +- **deps-dev:** bump @typescript-eslint/parser from 8.39.1 to 8.40.0 ([4c2ccef](https://github.com/patrickkabwe/create-nitro-module/commit/4c2ccef32acf00da79eae75aee5b702c8103e489)) +- **deps-dev:** bump @typescript-eslint/parser from 8.40.0 to 8.41.0 ([2140d19](https://github.com/patrickkabwe/create-nitro-module/commit/2140d19b2e6a2aba8a8d96dc819a970983e292db)) +- **deps-dev:** bump eslint from 9.32.0 to 9.33.0 ([3011364](https://github.com/patrickkabwe/create-nitro-module/commit/301136429b67b3233f6637a8a342cb9195546982)) +- **deps-dev:** bump eslint from 9.33.0 to 9.34.0 ([f8b7e79](https://github.com/patrickkabwe/create-nitro-module/commit/f8b7e79cc6dd4d487a315bc49022dfd3e36fd26b)) +- **deps-dev:** bump lefthook from 1.12.2 to 1.12.3 ([b748a27](https://github.com/patrickkabwe/create-nitro-module/commit/b748a2772ab5b998f377edbf3e63a185bdf7f45b)) +- **deps-dev:** bump react-native ([f346894](https://github.com/patrickkabwe/create-nitro-module/commit/f34689491f71547cd6a71ffb4b9e635bee6e034b)) +- **deps-dev:** bump react-native-nitro-modules in /assets/template ([77d4fc5](https://github.com/patrickkabwe/create-nitro-module/commit/77d4fc577c3afef54d3055b225d3e51fbcdee551)) +- **deps:** bump actions/checkout from 4 to 5 ([41f84bf](https://github.com/patrickkabwe/create-nitro-module/commit/41f84bf332134c2c478f7a6d09673cef367d76b5)) +- **deps:** bump actions/download-artifact from 4 to 5 ([be72d59](https://github.com/patrickkabwe/create-nitro-module/commit/be72d597f120dbec6fd9107871524e379ba04d3d)) +- **deps:** bump actions/setup-java from 4 to 5 ([45c211d](https://github.com/patrickkabwe/create-nitro-module/commit/45c211d4ae366bcb3f59b0f2ee1761e9db9bc9ed)) +- **deps:** bump actions/upload-pages-artifact from 3 to 4 ([4fdf4b9](https://github.com/patrickkabwe/create-nitro-module/commit/4fdf4b9097f9e08425e8135a3f21da247b8bfee6)) +- remove pnpm from CI workflow package managers ([2f45f1b](https://github.com/patrickkabwe/create-nitro-module/commit/2f45f1b38f398c18209cd42555cb18cb12ac21cc)) +- update package dependencies and enhance CI workflows ([81a99d3](https://github.com/patrickkabwe/create-nitro-module/commit/81a99d3eebd19c903600cace92f9472ac90d10e1)) ## [3.1.0](https://github.com/patrickkabwe/create-nitro-module/compare/v3.0.3...v3.1.0) (2025-07-31) ### ✨ Features -* **actions:** add Setup Maestro action to install Maestro CLI ([70838ef](https://github.com/patrickkabwe/create-nitro-module/commit/70838ef76fa91248cca152f2344d819c2bb6fd63)) -* add support for `--package-type` which can either be `view` or `module` ([83fb57d](https://github.com/patrickkabwe/create-nitro-module/commit/83fb57d81937dd03e520155654e4883d41cb7888)) +- **actions:** add Setup Maestro action to install Maestro CLI ([70838ef](https://github.com/patrickkabwe/create-nitro-module/commit/70838ef76fa91248cca152f2344d819c2bb6fd63)) +- add support for `--package-type` which can either be `view` or `module` ([83fb57d](https://github.com/patrickkabwe/create-nitro-module/commit/83fb57d81937dd03e520155654e4883d41cb7888)) ### 🐛 Bug Fixes -* **ci:** update e2e workflow to use dynamic paths for Android app build and test execution ([b87a171](https://github.com/patrickkabwe/create-nitro-module/commit/b87a171e02939dcdcd872125b11a3e31f813717a)) -* **code:** update import statement to conditionally include Text based on hybrid view ([362391f](https://github.com/patrickkabwe/create-nitro-module/commit/362391f0afdab9fc2b6ebcbcca72feae0aae856a)) -* **e2e:** correct path to gradlew in Android app build step ([#274](https://github.com/patrickkabwe/create-nitro-module/issues/274)) ([d544c3a](https://github.com/patrickkabwe/create-nitro-module/commit/d544c3ab12545820d3babcca67acf48e2ef28763)) -* **e2e:** update emulator options in E2E test configuration for improved performance ([d727d90](https://github.com/patrickkabwe/create-nitro-module/commit/d727d907eb17f8eba48482119ddd0b3748b47834)) -* **e2e:** update emulator options in E2E test configuration for improved performance ([#286](https://github.com/patrickkabwe/create-nitro-module/issues/286)) ([e556a5c](https://github.com/patrickkabwe/create-nitro-module/commit/e556a5c00b6eae865cd53c4f6c34ed109282efaf)) +- **ci:** update e2e workflow to use dynamic paths for Android app build and test execution ([b87a171](https://github.com/patrickkabwe/create-nitro-module/commit/b87a171e02939dcdcd872125b11a3e31f813717a)) +- **code:** update import statement to conditionally include Text based on hybrid view ([362391f](https://github.com/patrickkabwe/create-nitro-module/commit/362391f0afdab9fc2b6ebcbcca72feae0aae856a)) +- **e2e:** correct path to gradlew in Android app build step ([#274](https://github.com/patrickkabwe/create-nitro-module/issues/274)) ([d544c3a](https://github.com/patrickkabwe/create-nitro-module/commit/d544c3ab12545820d3babcca67acf48e2ef28763)) +- **e2e:** update emulator options in E2E test configuration for improved performance ([d727d90](https://github.com/patrickkabwe/create-nitro-module/commit/d727d907eb17f8eba48482119ddd0b3748b47834)) +- **e2e:** update emulator options in E2E test configuration for improved performance ([#286](https://github.com/patrickkabwe/create-nitro-module/issues/286)) ([e556a5c](https://github.com/patrickkabwe/create-nitro-module/commit/e556a5c00b6eae865cd53c4f6c34ed109282efaf)) ### 🔄 Code Refactors -* improve formatting and readability in create.ts for package type validation ([84615a1](https://github.com/patrickkabwe/create-nitro-module/commit/84615a10b00a3d6abecb7948491d8eb4e7bd3909)) +- improve formatting and readability in create.ts for package type validation ([84615a1](https://github.com/patrickkabwe/create-nitro-module/commit/84615a10b00a3d6abecb7948491d8eb4e7bd3909)) ### 🛠️ Other changes -* add xcpretty installation step to CI workflow for improved iOS build output ([d88e2e3](https://github.com/patrickkabwe/create-nitro-module/commit/d88e2e3bee4fc219b4fa7f7a4e219cbab047f7e1)) -* bum up nitro to 0.27.2 ([0d08a5d](https://github.com/patrickkabwe/create-nitro-module/commit/0d08a5df0909a322059a8e93c4801d17bdab2a31)) -* bump up nitro and react-native ([165558f](https://github.com/patrickkabwe/create-nitro-module/commit/165558fff38557beecdfc0b42954f40239708030)) -* change macOS runner version in CI workflow for iOS E2E tests ([6e57677](https://github.com/patrickkabwe/create-nitro-module/commit/6e576770e0742b5bb5c1cef160224890d7177d8f)) -* **ci:** add Git author and committer information to release workflow ([7f4e371](https://github.com/patrickkabwe/create-nitro-module/commit/7f4e371b72f3a8e621dd325feb8fcead29ec7f41)) -* **ci:** enhance e2e workflow by adding Android app build and installation steps ([021450f](https://github.com/patrickkabwe/create-nitro-module/commit/021450f394b2fc98facbeffabcccfdab848b2bc9)) -* **deps-dev:** bump @types/jest in /assets/template ([#250](https://github.com/patrickkabwe/create-nitro-module/issues/250)) ([041f217](https://github.com/patrickkabwe/create-nitro-module/commit/041f217986af4ecad64395bd36c055c6c9331f3a)) -* **deps-dev:** bump @types/node from 24.0.1 to 24.0.10 ([#244](https://github.com/patrickkabwe/create-nitro-module/issues/244)) ([25cbc66](https://github.com/patrickkabwe/create-nitro-module/commit/25cbc66771f59bbc3348fc410106bfa086e9778a)) -* **deps-dev:** bump @types/node from 24.0.10 to 24.0.12 ([#254](https://github.com/patrickkabwe/create-nitro-module/issues/254)) ([0619552](https://github.com/patrickkabwe/create-nitro-module/commit/061955271b3d8bf66850eee5699d7b56f95ff8e7)) -* **deps-dev:** bump @types/node from 24.0.12 to 24.0.13 ([#258](https://github.com/patrickkabwe/create-nitro-module/issues/258)) ([97be28b](https://github.com/patrickkabwe/create-nitro-module/commit/97be28b11eec8dacb89366cbffdb22c40dba67c6)) -* **deps-dev:** bump @typescript-eslint/eslint-plugin ([#248](https://github.com/patrickkabwe/create-nitro-module/issues/248)) ([0d326d0](https://github.com/patrickkabwe/create-nitro-module/commit/0d326d05ecba10fdfa7b2a4598934b2aa9d95127)) -* **deps-dev:** bump @typescript-eslint/parser from 8.34.1 to 8.36.0 ([#249](https://github.com/patrickkabwe/create-nitro-module/issues/249)) ([338e58e](https://github.com/patrickkabwe/create-nitro-module/commit/338e58e2f5e981cedd448dcda2701a68474b79c5)) -* **deps-dev:** bump eslint from 9.30.0 to 9.30.1 ([#243](https://github.com/patrickkabwe/create-nitro-module/issues/243)) ([4aa9aa2](https://github.com/patrickkabwe/create-nitro-module/commit/4aa9aa24bcf9b9f4d14b6bcb5af5fa1b7e494a10)) -* **deps-dev:** bump lefthook from 1.11.14 to 1.11.16 ([#242](https://github.com/patrickkabwe/create-nitro-module/issues/242)) ([66cb81c](https://github.com/patrickkabwe/create-nitro-module/commit/66cb81ca41f557f1ce33f9928b5d0577f287108d)) -* **deps-dev:** bump lefthook from 1.11.16 to 1.12.0 ([#253](https://github.com/patrickkabwe/create-nitro-module/issues/253)) ([11222d1](https://github.com/patrickkabwe/create-nitro-module/commit/11222d16b28c8308b78048b89e13b73c57ea3656)) -* **deps-dev:** bump lefthook from 1.12.0 to 1.12.2 ([#272](https://github.com/patrickkabwe/create-nitro-module/issues/272)) ([a676ae3](https://github.com/patrickkabwe/create-nitro-module/commit/a676ae39b4adfe969f749537768aa6609982484f)) -* **deps-dev:** bump prettier from 3.5.3 to 3.6.2 ([#245](https://github.com/patrickkabwe/create-nitro-module/issues/245)) ([4dd4586](https://github.com/patrickkabwe/create-nitro-module/commit/4dd4586fffb245c67e259523adc1ac8947459ffd)) -* **e2e:** add caching and pod installation steps to iOS workflow ([66d2b62](https://github.com/patrickkabwe/create-nitro-module/commit/66d2b62211d48aa03a911383efa1a4f84a8142b0)) -* **e2e:** add conditional execution for E2E tests based on previous workflow success ([ed4540f](https://github.com/patrickkabwe/create-nitro-module/commit/ed4540f2bc807a44cbaa6ba3294335f065b4ecc3)) -* **e2e:** remove commented-out Java setup steps from e2e workflow ([#261](https://github.com/patrickkabwe/create-nitro-module/issues/261)) ([fd48bed](https://github.com/patrickkabwe/create-nitro-module/commit/fd48bede37f766c914c7fd154ffb0c714f02d0f5)) -* **release:** 3.1.0-next.1 [skip ci] ([87f15c6](https://github.com/patrickkabwe/create-nitro-module/commit/87f15c6f17fe0659287b3e305c7ddbedd80c3f48)) -* **release:** 3.1.0-next.2 [skip ci] ([ebab473](https://github.com/patrickkabwe/create-nitro-module/commit/ebab47307eff97edf36e32b2c8319aa7048fa76a)) -* update dependencies in bun.lock to latest versions ([1e67116](https://github.com/patrickkabwe/create-nitro-module/commit/1e67116aab49cfd9a0acc78cc2c6b2754e5ac525)) -* update macOS version in CI workflow for iOS build testing ([2da1045](https://github.com/patrickkabwe/create-nitro-module/commit/2da104512480aa6a450b58aaeeb085440a3001a5)) -* update nitro-codegen and react-native-nitro-modules to version 0.26.4 ([5d94e84](https://github.com/patrickkabwe/create-nitro-module/commit/5d94e8456d4faa9dc3a57eeb9c8c020dcd775b44)) -* update package.json dependencies and add fix-prefab.gradle file ([7108fbd](https://github.com/patrickkabwe/create-nitro-module/commit/7108fbd9cf98150d2792ef6bda72e83ad20bea39)) -* **workflows:** update release and test workflows ([#246](https://github.com/patrickkabwe/create-nitro-module/issues/246)) ([acb90e5](https://github.com/patrickkabwe/create-nitro-module/commit/acb90e572b5106c62883035df794df68de699cd6)) +- add xcpretty installation step to CI workflow for improved iOS build output ([d88e2e3](https://github.com/patrickkabwe/create-nitro-module/commit/d88e2e3bee4fc219b4fa7f7a4e219cbab047f7e1)) +- bum up nitro to 0.27.2 ([0d08a5d](https://github.com/patrickkabwe/create-nitro-module/commit/0d08a5df0909a322059a8e93c4801d17bdab2a31)) +- bump up nitro and react-native ([165558f](https://github.com/patrickkabwe/create-nitro-module/commit/165558fff38557beecdfc0b42954f40239708030)) +- change macOS runner version in CI workflow for iOS E2E tests ([6e57677](https://github.com/patrickkabwe/create-nitro-module/commit/6e576770e0742b5bb5c1cef160224890d7177d8f)) +- **ci:** add Git author and committer information to release workflow ([7f4e371](https://github.com/patrickkabwe/create-nitro-module/commit/7f4e371b72f3a8e621dd325feb8fcead29ec7f41)) +- **ci:** enhance e2e workflow by adding Android app build and installation steps ([021450f](https://github.com/patrickkabwe/create-nitro-module/commit/021450f394b2fc98facbeffabcccfdab848b2bc9)) +- **deps-dev:** bump @types/jest in /assets/template ([#250](https://github.com/patrickkabwe/create-nitro-module/issues/250)) ([041f217](https://github.com/patrickkabwe/create-nitro-module/commit/041f217986af4ecad64395bd36c055c6c9331f3a)) +- **deps-dev:** bump @types/node from 24.0.1 to 24.0.10 ([#244](https://github.com/patrickkabwe/create-nitro-module/issues/244)) ([25cbc66](https://github.com/patrickkabwe/create-nitro-module/commit/25cbc66771f59bbc3348fc410106bfa086e9778a)) +- **deps-dev:** bump @types/node from 24.0.10 to 24.0.12 ([#254](https://github.com/patrickkabwe/create-nitro-module/issues/254)) ([0619552](https://github.com/patrickkabwe/create-nitro-module/commit/061955271b3d8bf66850eee5699d7b56f95ff8e7)) +- **deps-dev:** bump @types/node from 24.0.12 to 24.0.13 ([#258](https://github.com/patrickkabwe/create-nitro-module/issues/258)) ([97be28b](https://github.com/patrickkabwe/create-nitro-module/commit/97be28b11eec8dacb89366cbffdb22c40dba67c6)) +- **deps-dev:** bump @typescript-eslint/eslint-plugin ([#248](https://github.com/patrickkabwe/create-nitro-module/issues/248)) ([0d326d0](https://github.com/patrickkabwe/create-nitro-module/commit/0d326d05ecba10fdfa7b2a4598934b2aa9d95127)) +- **deps-dev:** bump @typescript-eslint/parser from 8.34.1 to 8.36.0 ([#249](https://github.com/patrickkabwe/create-nitro-module/issues/249)) ([338e58e](https://github.com/patrickkabwe/create-nitro-module/commit/338e58e2f5e981cedd448dcda2701a68474b79c5)) +- **deps-dev:** bump eslint from 9.30.0 to 9.30.1 ([#243](https://github.com/patrickkabwe/create-nitro-module/issues/243)) ([4aa9aa2](https://github.com/patrickkabwe/create-nitro-module/commit/4aa9aa24bcf9b9f4d14b6bcb5af5fa1b7e494a10)) +- **deps-dev:** bump lefthook from 1.11.14 to 1.11.16 ([#242](https://github.com/patrickkabwe/create-nitro-module/issues/242)) ([66cb81c](https://github.com/patrickkabwe/create-nitro-module/commit/66cb81ca41f557f1ce33f9928b5d0577f287108d)) +- **deps-dev:** bump lefthook from 1.11.16 to 1.12.0 ([#253](https://github.com/patrickkabwe/create-nitro-module/issues/253)) ([11222d1](https://github.com/patrickkabwe/create-nitro-module/commit/11222d16b28c8308b78048b89e13b73c57ea3656)) +- **deps-dev:** bump lefthook from 1.12.0 to 1.12.2 ([#272](https://github.com/patrickkabwe/create-nitro-module/issues/272)) ([a676ae3](https://github.com/patrickkabwe/create-nitro-module/commit/a676ae39b4adfe969f749537768aa6609982484f)) +- **deps-dev:** bump prettier from 3.5.3 to 3.6.2 ([#245](https://github.com/patrickkabwe/create-nitro-module/issues/245)) ([4dd4586](https://github.com/patrickkabwe/create-nitro-module/commit/4dd4586fffb245c67e259523adc1ac8947459ffd)) +- **e2e:** add caching and pod installation steps to iOS workflow ([66d2b62](https://github.com/patrickkabwe/create-nitro-module/commit/66d2b62211d48aa03a911383efa1a4f84a8142b0)) +- **e2e:** add conditional execution for E2E tests based on previous workflow success ([ed4540f](https://github.com/patrickkabwe/create-nitro-module/commit/ed4540f2bc807a44cbaa6ba3294335f065b4ecc3)) +- **e2e:** remove commented-out Java setup steps from e2e workflow ([#261](https://github.com/patrickkabwe/create-nitro-module/issues/261)) ([fd48bed](https://github.com/patrickkabwe/create-nitro-module/commit/fd48bede37f766c914c7fd154ffb0c714f02d0f5)) +- **release:** 3.1.0-next.1 [skip ci] ([87f15c6](https://github.com/patrickkabwe/create-nitro-module/commit/87f15c6f17fe0659287b3e305c7ddbedd80c3f48)) +- **release:** 3.1.0-next.2 [skip ci] ([ebab473](https://github.com/patrickkabwe/create-nitro-module/commit/ebab47307eff97edf36e32b2c8319aa7048fa76a)) +- update dependencies in bun.lock to latest versions ([1e67116](https://github.com/patrickkabwe/create-nitro-module/commit/1e67116aab49cfd9a0acc78cc2c6b2754e5ac525)) +- update macOS version in CI workflow for iOS build testing ([2da1045](https://github.com/patrickkabwe/create-nitro-module/commit/2da104512480aa6a450b58aaeeb085440a3001a5)) +- update nitro-codegen and react-native-nitro-modules to version 0.26.4 ([5d94e84](https://github.com/patrickkabwe/create-nitro-module/commit/5d94e8456d4faa9dc3a57eeb9c8c020dcd775b44)) +- update package.json dependencies and add fix-prefab.gradle file ([7108fbd](https://github.com/patrickkabwe/create-nitro-module/commit/7108fbd9cf98150d2792ef6bda72e83ad20bea39)) +- **workflows:** update release and test workflows ([#246](https://github.com/patrickkabwe/create-nitro-module/issues/246)) ([acb90e5](https://github.com/patrickkabwe/create-nitro-module/commit/acb90e572b5106c62883035df794df68de699cd6)) ## [3.1.0-next.2](https://github.com/patrickkabwe/create-nitro-module/compare/v3.1.0-next.1...v3.1.0-next.2) (2025-07-31) ### 🛠️ Other changes -* update package.json dependencies and add fix-prefab.gradle file ([7108fbd](https://github.com/patrickkabwe/create-nitro-module/commit/7108fbd9cf98150d2792ef6bda72e83ad20bea39)) +- update package.json dependencies and add fix-prefab.gradle file ([7108fbd](https://github.com/patrickkabwe/create-nitro-module/commit/7108fbd9cf98150d2792ef6bda72e83ad20bea39)) ## [3.1.0-next.1](https://github.com/patrickkabwe/create-nitro-module/compare/v3.0.3...v3.1.0-next.1) (2025-07-30) ### ✨ Features -* **actions:** add Setup Maestro action to install Maestro CLI ([70838ef](https://github.com/patrickkabwe/create-nitro-module/commit/70838ef76fa91248cca152f2344d819c2bb6fd63)) -* add support for `--package-type` which can either be `view` or `module` ([83fb57d](https://github.com/patrickkabwe/create-nitro-module/commit/83fb57d81937dd03e520155654e4883d41cb7888)) +- **actions:** add Setup Maestro action to install Maestro CLI ([70838ef](https://github.com/patrickkabwe/create-nitro-module/commit/70838ef76fa91248cca152f2344d819c2bb6fd63)) +- add support for `--package-type` which can either be `view` or `module` ([83fb57d](https://github.com/patrickkabwe/create-nitro-module/commit/83fb57d81937dd03e520155654e4883d41cb7888)) ### 🐛 Bug Fixes -* **ci:** update e2e workflow to use dynamic paths for Android app build and test execution ([b87a171](https://github.com/patrickkabwe/create-nitro-module/commit/b87a171e02939dcdcd872125b11a3e31f813717a)) -* **code:** update import statement to conditionally include Text based on hybrid view ([362391f](https://github.com/patrickkabwe/create-nitro-module/commit/362391f0afdab9fc2b6ebcbcca72feae0aae856a)) -* **e2e:** correct path to gradlew in Android app build step ([#274](https://github.com/patrickkabwe/create-nitro-module/issues/274)) ([d544c3a](https://github.com/patrickkabwe/create-nitro-module/commit/d544c3ab12545820d3babcca67acf48e2ef28763)) -* **e2e:** update emulator options in E2E test configuration for improved performance ([d727d90](https://github.com/patrickkabwe/create-nitro-module/commit/d727d907eb17f8eba48482119ddd0b3748b47834)) -* **e2e:** update emulator options in E2E test configuration for improved performance ([#286](https://github.com/patrickkabwe/create-nitro-module/issues/286)) ([e556a5c](https://github.com/patrickkabwe/create-nitro-module/commit/e556a5c00b6eae865cd53c4f6c34ed109282efaf)) +- **ci:** update e2e workflow to use dynamic paths for Android app build and test execution ([b87a171](https://github.com/patrickkabwe/create-nitro-module/commit/b87a171e02939dcdcd872125b11a3e31f813717a)) +- **code:** update import statement to conditionally include Text based on hybrid view ([362391f](https://github.com/patrickkabwe/create-nitro-module/commit/362391f0afdab9fc2b6ebcbcca72feae0aae856a)) +- **e2e:** correct path to gradlew in Android app build step ([#274](https://github.com/patrickkabwe/create-nitro-module/issues/274)) ([d544c3a](https://github.com/patrickkabwe/create-nitro-module/commit/d544c3ab12545820d3babcca67acf48e2ef28763)) +- **e2e:** update emulator options in E2E test configuration for improved performance ([d727d90](https://github.com/patrickkabwe/create-nitro-module/commit/d727d907eb17f8eba48482119ddd0b3748b47834)) +- **e2e:** update emulator options in E2E test configuration for improved performance ([#286](https://github.com/patrickkabwe/create-nitro-module/issues/286)) ([e556a5c](https://github.com/patrickkabwe/create-nitro-module/commit/e556a5c00b6eae865cd53c4f6c34ed109282efaf)) ### 🔄 Code Refactors -* improve formatting and readability in create.ts for package type validation ([84615a1](https://github.com/patrickkabwe/create-nitro-module/commit/84615a10b00a3d6abecb7948491d8eb4e7bd3909)) +- improve formatting and readability in create.ts for package type validation ([84615a1](https://github.com/patrickkabwe/create-nitro-module/commit/84615a10b00a3d6abecb7948491d8eb4e7bd3909)) ### 🛠️ Other changes -* add xcpretty installation step to CI workflow for improved iOS build output ([d88e2e3](https://github.com/patrickkabwe/create-nitro-module/commit/d88e2e3bee4fc219b4fa7f7a4e219cbab047f7e1)) -* bum up nitro to 0.27.2 ([0d08a5d](https://github.com/patrickkabwe/create-nitro-module/commit/0d08a5df0909a322059a8e93c4801d17bdab2a31)) -* bump up nitro and react-native ([165558f](https://github.com/patrickkabwe/create-nitro-module/commit/165558fff38557beecdfc0b42954f40239708030)) -* change macOS runner version in CI workflow for iOS E2E tests ([6e57677](https://github.com/patrickkabwe/create-nitro-module/commit/6e576770e0742b5bb5c1cef160224890d7177d8f)) -* **ci:** add Git author and committer information to release workflow ([7f4e371](https://github.com/patrickkabwe/create-nitro-module/commit/7f4e371b72f3a8e621dd325feb8fcead29ec7f41)) -* **ci:** enhance e2e workflow by adding Android app build and installation steps ([021450f](https://github.com/patrickkabwe/create-nitro-module/commit/021450f394b2fc98facbeffabcccfdab848b2bc9)) -* **deps-dev:** bump @types/jest in /assets/template ([#250](https://github.com/patrickkabwe/create-nitro-module/issues/250)) ([041f217](https://github.com/patrickkabwe/create-nitro-module/commit/041f217986af4ecad64395bd36c055c6c9331f3a)) -* **deps-dev:** bump @types/node from 24.0.1 to 24.0.10 ([#244](https://github.com/patrickkabwe/create-nitro-module/issues/244)) ([25cbc66](https://github.com/patrickkabwe/create-nitro-module/commit/25cbc66771f59bbc3348fc410106bfa086e9778a)) -* **deps-dev:** bump @types/node from 24.0.10 to 24.0.12 ([#254](https://github.com/patrickkabwe/create-nitro-module/issues/254)) ([0619552](https://github.com/patrickkabwe/create-nitro-module/commit/061955271b3d8bf66850eee5699d7b56f95ff8e7)) -* **deps-dev:** bump @types/node from 24.0.12 to 24.0.13 ([#258](https://github.com/patrickkabwe/create-nitro-module/issues/258)) ([97be28b](https://github.com/patrickkabwe/create-nitro-module/commit/97be28b11eec8dacb89366cbffdb22c40dba67c6)) -* **deps-dev:** bump @typescript-eslint/eslint-plugin ([#248](https://github.com/patrickkabwe/create-nitro-module/issues/248)) ([0d326d0](https://github.com/patrickkabwe/create-nitro-module/commit/0d326d05ecba10fdfa7b2a4598934b2aa9d95127)) -* **deps-dev:** bump @typescript-eslint/parser from 8.34.1 to 8.36.0 ([#249](https://github.com/patrickkabwe/create-nitro-module/issues/249)) ([338e58e](https://github.com/patrickkabwe/create-nitro-module/commit/338e58e2f5e981cedd448dcda2701a68474b79c5)) -* **deps-dev:** bump eslint from 9.30.0 to 9.30.1 ([#243](https://github.com/patrickkabwe/create-nitro-module/issues/243)) ([4aa9aa2](https://github.com/patrickkabwe/create-nitro-module/commit/4aa9aa24bcf9b9f4d14b6bcb5af5fa1b7e494a10)) -* **deps-dev:** bump lefthook from 1.11.14 to 1.11.16 ([#242](https://github.com/patrickkabwe/create-nitro-module/issues/242)) ([66cb81c](https://github.com/patrickkabwe/create-nitro-module/commit/66cb81ca41f557f1ce33f9928b5d0577f287108d)) -* **deps-dev:** bump lefthook from 1.11.16 to 1.12.0 ([#253](https://github.com/patrickkabwe/create-nitro-module/issues/253)) ([11222d1](https://github.com/patrickkabwe/create-nitro-module/commit/11222d16b28c8308b78048b89e13b73c57ea3656)) -* **deps-dev:** bump lefthook from 1.12.0 to 1.12.2 ([#272](https://github.com/patrickkabwe/create-nitro-module/issues/272)) ([a676ae3](https://github.com/patrickkabwe/create-nitro-module/commit/a676ae39b4adfe969f749537768aa6609982484f)) -* **deps-dev:** bump prettier from 3.5.3 to 3.6.2 ([#245](https://github.com/patrickkabwe/create-nitro-module/issues/245)) ([4dd4586](https://github.com/patrickkabwe/create-nitro-module/commit/4dd4586fffb245c67e259523adc1ac8947459ffd)) -* **e2e:** add conditional execution for E2E tests based on previous workflow success ([ed4540f](https://github.com/patrickkabwe/create-nitro-module/commit/ed4540f2bc807a44cbaa6ba3294335f065b4ecc3)) -* **e2e:** remove commented-out Java setup steps from e2e workflow ([#261](https://github.com/patrickkabwe/create-nitro-module/issues/261)) ([fd48bed](https://github.com/patrickkabwe/create-nitro-module/commit/fd48bede37f766c914c7fd154ffb0c714f02d0f5)) -* update dependencies in bun.lock to latest versions ([1e67116](https://github.com/patrickkabwe/create-nitro-module/commit/1e67116aab49cfd9a0acc78cc2c6b2754e5ac525)) -* update macOS version in CI workflow for iOS build testing ([2da1045](https://github.com/patrickkabwe/create-nitro-module/commit/2da104512480aa6a450b58aaeeb085440a3001a5)) -* update nitro-codegen and react-native-nitro-modules to version 0.26.4 ([5d94e84](https://github.com/patrickkabwe/create-nitro-module/commit/5d94e8456d4faa9dc3a57eeb9c8c020dcd775b44)) -* **workflows:** update release and test workflows ([#246](https://github.com/patrickkabwe/create-nitro-module/issues/246)) ([acb90e5](https://github.com/patrickkabwe/create-nitro-module/commit/acb90e572b5106c62883035df794df68de699cd6)) +- add xcpretty installation step to CI workflow for improved iOS build output ([d88e2e3](https://github.com/patrickkabwe/create-nitro-module/commit/d88e2e3bee4fc219b4fa7f7a4e219cbab047f7e1)) +- bum up nitro to 0.27.2 ([0d08a5d](https://github.com/patrickkabwe/create-nitro-module/commit/0d08a5df0909a322059a8e93c4801d17bdab2a31)) +- bump up nitro and react-native ([165558f](https://github.com/patrickkabwe/create-nitro-module/commit/165558fff38557beecdfc0b42954f40239708030)) +- change macOS runner version in CI workflow for iOS E2E tests ([6e57677](https://github.com/patrickkabwe/create-nitro-module/commit/6e576770e0742b5bb5c1cef160224890d7177d8f)) +- **ci:** add Git author and committer information to release workflow ([7f4e371](https://github.com/patrickkabwe/create-nitro-module/commit/7f4e371b72f3a8e621dd325feb8fcead29ec7f41)) +- **ci:** enhance e2e workflow by adding Android app build and installation steps ([021450f](https://github.com/patrickkabwe/create-nitro-module/commit/021450f394b2fc98facbeffabcccfdab848b2bc9)) +- **deps-dev:** bump @types/jest in /assets/template ([#250](https://github.com/patrickkabwe/create-nitro-module/issues/250)) ([041f217](https://github.com/patrickkabwe/create-nitro-module/commit/041f217986af4ecad64395bd36c055c6c9331f3a)) +- **deps-dev:** bump @types/node from 24.0.1 to 24.0.10 ([#244](https://github.com/patrickkabwe/create-nitro-module/issues/244)) ([25cbc66](https://github.com/patrickkabwe/create-nitro-module/commit/25cbc66771f59bbc3348fc410106bfa086e9778a)) +- **deps-dev:** bump @types/node from 24.0.10 to 24.0.12 ([#254](https://github.com/patrickkabwe/create-nitro-module/issues/254)) ([0619552](https://github.com/patrickkabwe/create-nitro-module/commit/061955271b3d8bf66850eee5699d7b56f95ff8e7)) +- **deps-dev:** bump @types/node from 24.0.12 to 24.0.13 ([#258](https://github.com/patrickkabwe/create-nitro-module/issues/258)) ([97be28b](https://github.com/patrickkabwe/create-nitro-module/commit/97be28b11eec8dacb89366cbffdb22c40dba67c6)) +- **deps-dev:** bump @typescript-eslint/eslint-plugin ([#248](https://github.com/patrickkabwe/create-nitro-module/issues/248)) ([0d326d0](https://github.com/patrickkabwe/create-nitro-module/commit/0d326d05ecba10fdfa7b2a4598934b2aa9d95127)) +- **deps-dev:** bump @typescript-eslint/parser from 8.34.1 to 8.36.0 ([#249](https://github.com/patrickkabwe/create-nitro-module/issues/249)) ([338e58e](https://github.com/patrickkabwe/create-nitro-module/commit/338e58e2f5e981cedd448dcda2701a68474b79c5)) +- **deps-dev:** bump eslint from 9.30.0 to 9.30.1 ([#243](https://github.com/patrickkabwe/create-nitro-module/issues/243)) ([4aa9aa2](https://github.com/patrickkabwe/create-nitro-module/commit/4aa9aa24bcf9b9f4d14b6bcb5af5fa1b7e494a10)) +- **deps-dev:** bump lefthook from 1.11.14 to 1.11.16 ([#242](https://github.com/patrickkabwe/create-nitro-module/issues/242)) ([66cb81c](https://github.com/patrickkabwe/create-nitro-module/commit/66cb81ca41f557f1ce33f9928b5d0577f287108d)) +- **deps-dev:** bump lefthook from 1.11.16 to 1.12.0 ([#253](https://github.com/patrickkabwe/create-nitro-module/issues/253)) ([11222d1](https://github.com/patrickkabwe/create-nitro-module/commit/11222d16b28c8308b78048b89e13b73c57ea3656)) +- **deps-dev:** bump lefthook from 1.12.0 to 1.12.2 ([#272](https://github.com/patrickkabwe/create-nitro-module/issues/272)) ([a676ae3](https://github.com/patrickkabwe/create-nitro-module/commit/a676ae39b4adfe969f749537768aa6609982484f)) +- **deps-dev:** bump prettier from 3.5.3 to 3.6.2 ([#245](https://github.com/patrickkabwe/create-nitro-module/issues/245)) ([4dd4586](https://github.com/patrickkabwe/create-nitro-module/commit/4dd4586fffb245c67e259523adc1ac8947459ffd)) +- **e2e:** add conditional execution for E2E tests based on previous workflow success ([ed4540f](https://github.com/patrickkabwe/create-nitro-module/commit/ed4540f2bc807a44cbaa6ba3294335f065b4ecc3)) +- **e2e:** remove commented-out Java setup steps from e2e workflow ([#261](https://github.com/patrickkabwe/create-nitro-module/issues/261)) ([fd48bed](https://github.com/patrickkabwe/create-nitro-module/commit/fd48bede37f766c914c7fd154ffb0c714f02d0f5)) +- update dependencies in bun.lock to latest versions ([1e67116](https://github.com/patrickkabwe/create-nitro-module/commit/1e67116aab49cfd9a0acc78cc2c6b2754e5ac525)) +- update macOS version in CI workflow for iOS build testing ([2da1045](https://github.com/patrickkabwe/create-nitro-module/commit/2da104512480aa6a450b58aaeeb085440a3001a5)) +- update nitro-codegen and react-native-nitro-modules to version 0.26.4 ([5d94e84](https://github.com/patrickkabwe/create-nitro-module/commit/5d94e8456d4faa9dc3a57eeb9c8c020dcd775b44)) +- **workflows:** update release and test workflows ([#246](https://github.com/patrickkabwe/create-nitro-module/issues/246)) ([acb90e5](https://github.com/patrickkabwe/create-nitro-module/commit/acb90e572b5106c62883035df794df68de699cd6)) ## [3.0.3](https://github.com/patrickkabwe/create-nitro-module/compare/v3.0.2...v3.0.3) (2025-07-06) ### 🛠️ Other changes -* **deps:** downgrade react-native from 0.80.0 to 0.79.5 in package.json ([c5591ce](https://github.com/patrickkabwe/create-nitro-module/commit/c5591ce753734e560511d48664552364aa654aeb)) +- **deps:** downgrade react-native from 0.80.0 to 0.79.5 in package.json ([c5591ce](https://github.com/patrickkabwe/create-nitro-module/commit/c5591ce753734e560511d48664552364aa654aeb)) ## [3.0.2](https://github.com/patrickkabwe/create-nitro-module/compare/v3.0.1...v3.0.2) (2025-07-05) ### 🛠️ Other changes -* **deps-dev:** bump @typescript-eslint/eslint-plugin ([65c290e](https://github.com/patrickkabwe/create-nitro-module/commit/65c290e1ad47bb228446c89587ae8af77d094757)) -* **deps-dev:** bump eslint-plugin-n from 17.19.0 to 17.21.0 ([88aa1bb](https://github.com/patrickkabwe/create-nitro-module/commit/88aa1bb4e95cb32032090efb985572634cc448cc)) -* **deps-dev:** bump semantic-release from 24.2.5 to 24.2.6 ([1cc9971](https://github.com/patrickkabwe/create-nitro-module/commit/1cc99713f9b6a70e177b64c303eff79f0be381e5)) -* **deps-dev:** bump semantic-release in /assets/template ([ecc0a60](https://github.com/patrickkabwe/create-nitro-module/commit/ecc0a6021f036cb1f5e32a1dc877f08b304b23a8)) +- **deps-dev:** bump @typescript-eslint/eslint-plugin ([65c290e](https://github.com/patrickkabwe/create-nitro-module/commit/65c290e1ad47bb228446c89587ae8af77d094757)) +- **deps-dev:** bump eslint-plugin-n from 17.19.0 to 17.21.0 ([88aa1bb](https://github.com/patrickkabwe/create-nitro-module/commit/88aa1bb4e95cb32032090efb985572634cc448cc)) +- **deps-dev:** bump semantic-release from 24.2.5 to 24.2.6 ([1cc9971](https://github.com/patrickkabwe/create-nitro-module/commit/1cc99713f9b6a70e177b64c303eff79f0be381e5)) +- **deps-dev:** bump semantic-release in /assets/template ([ecc0a60](https://github.com/patrickkabwe/create-nitro-module/commit/ecc0a6021f036cb1f5e32a1dc877f08b304b23a8)) ## [3.0.1](https://github.com/patrickkabwe/create-nitro-module/compare/v3.0.0...v3.0.1) (2025-07-01) ### 🐛 Bug Fixes -* remove or overwrite existing folder only when user confirms ([f0270fb](https://github.com/patrickkabwe/create-nitro-module/commit/f0270fb2ae969f862c9504c24d5cdb55cee2e822)) +- remove or overwrite existing folder only when user confirms ([f0270fb](https://github.com/patrickkabwe/create-nitro-module/commit/f0270fb2ae969f862c9504c24d5cdb55cee2e822)) ### 🛠️ Other changes -* add clean step to Android build workflow ([d8e244c](https://github.com/patrickkabwe/create-nitro-module/commit/d8e244c36f95cca6323f3c86d457d92e35520d2e)) -* add code generation step to Android build workflow ([0058334](https://github.com/patrickkabwe/create-nitro-module/commit/0058334ff6509c0fa496a0c5e44406bbc246260c)) -* bump up react-native version to 0.80.0 ([4fe0280](https://github.com/patrickkabwe/create-nitro-module/commit/4fe0280a61b560406198beb87a91f5083942ff05)) -* **deps-dev:** bump eslint from 9.28.0 to 9.30.0 ([8d970ac](https://github.com/patrickkabwe/create-nitro-module/commit/8d970ac13951e1733d66095b7236cc9e6002421c)) -* **deps-dev:** bump lefthook from 1.11.13 to 1.11.14 ([de1f544](https://github.com/patrickkabwe/create-nitro-module/commit/de1f544232e53fdaf084e5d44815e3f1346db491)) -* enable 16 KB page size on Android ([973d7c7](https://github.com/patrickkabwe/create-nitro-module/commit/973d7c74e1e594f2448ed5d0e6b75c4c77bf575c)) -* remove clean step from Android build workflow ([61b3564](https://github.com/patrickkabwe/create-nitro-module/commit/61b356416563c2d1a087eb97d8d81da766f1ae2a)) -* update nitro-codegen and react-native-nitro-modules to version 0.26.3 ([ce44f8f](https://github.com/patrickkabwe/create-nitro-module/commit/ce44f8f81085c6a8c1c065918e1e7cf595c3d413)) +- add clean step to Android build workflow ([d8e244c](https://github.com/patrickkabwe/create-nitro-module/commit/d8e244c36f95cca6323f3c86d457d92e35520d2e)) +- add code generation step to Android build workflow ([0058334](https://github.com/patrickkabwe/create-nitro-module/commit/0058334ff6509c0fa496a0c5e44406bbc246260c)) +- bump up react-native version to 0.80.0 ([4fe0280](https://github.com/patrickkabwe/create-nitro-module/commit/4fe0280a61b560406198beb87a91f5083942ff05)) +- **deps-dev:** bump eslint from 9.28.0 to 9.30.0 ([8d970ac](https://github.com/patrickkabwe/create-nitro-module/commit/8d970ac13951e1733d66095b7236cc9e6002421c)) +- **deps-dev:** bump lefthook from 1.11.13 to 1.11.14 ([de1f544](https://github.com/patrickkabwe/create-nitro-module/commit/de1f544232e53fdaf084e5d44815e3f1346db491)) +- enable 16 KB page size on Android ([973d7c7](https://github.com/patrickkabwe/create-nitro-module/commit/973d7c74e1e594f2448ed5d0e6b75c4c77bf575c)) +- remove clean step from Android build workflow ([61b3564](https://github.com/patrickkabwe/create-nitro-module/commit/61b356416563c2d1a087eb97d8d81da766f1ae2a)) +- update nitro-codegen and react-native-nitro-modules to version 0.26.3 ([ce44f8f](https://github.com/patrickkabwe/create-nitro-module/commit/ce44f8f81085c6a8c1c065918e1e7cf595c3d413)) ## [3.0.0](https://github.com/patrickkabwe/create-nitro-module/compare/v2.1.3...v3.0.0) (2025-06-17) ### ⚠ BREAKING CHANGES -* The CLI entry point 'nitro-module' is no longer available in the package's bin field. +- The CLI entry point 'nitro-module' is no longer available in the package's bin field. ### ✨ Features -* add support for pnpm package manager ([a456841](https://github.com/patrickkabwe/create-nitro-module/commit/a4568416140907b3e057e8e5b69d0984cfa95696)) +- add support for pnpm package manager ([a456841](https://github.com/patrickkabwe/create-nitro-module/commit/a4568416140907b3e057e8e5b69d0984cfa95696)) ### 🐛 Bug Fixes -* add .npmrc file for pnpm configuration and fix yaml formatting ([9dc9fc0](https://github.com/patrickkabwe/create-nitro-module/commit/9dc9fc059a9138860bc6796cb54dc40ffaf964a7)) -* correct indentation in package manager selection logic ([a68dc75](https://github.com/patrickkabwe/create-nitro-module/commit/a68dc7587faf9f807f623725cce87ae96a22bcd2)) +- add .npmrc file for pnpm configuration and fix yaml formatting ([9dc9fc0](https://github.com/patrickkabwe/create-nitro-module/commit/9dc9fc059a9138860bc6796cb54dc40ffaf964a7)) +- correct indentation in package manager selection logic ([a68dc75](https://github.com/patrickkabwe/create-nitro-module/commit/a68dc7587faf9f807f623725cce87ae96a22bcd2)) ### 📚 Documentation -* add pnpm support to README and documentation ([570bbcf](https://github.com/patrickkabwe/create-nitro-module/commit/570bbcf81884ed3c051728e07751942b0d2f4b92)) +- add pnpm support to README and documentation ([570bbcf](https://github.com/patrickkabwe/create-nitro-module/commit/570bbcf81884ed3c051728e07751942b0d2f4b92)) ### 🛠️ Other changes -* add pnpm to package manager selection in CI workflow ([32561be](https://github.com/patrickkabwe/create-nitro-module/commit/32561bec1ce12a98c911014bb0b799fff6f735f6)) -* **deps-dev:** bump @typescript-eslint/parser from 8.33.0 to 8.34.1 ([9e841f9](https://github.com/patrickkabwe/create-nitro-module/commit/9e841f9ee24bfb89df29fb8f4deed67a8f2da303)) -* remove cache option from node setup in CI workflow ([841bed3](https://github.com/patrickkabwe/create-nitro-module/commit/841bed3d1d7eb6b503fa6154e607e76e54b30f37)) -* remove nitro-module entry from bin in package.json ([a210a70](https://github.com/patrickkabwe/create-nitro-module/commit/a210a701b295d885e13ac9bb6c3dc80734e01ee1)) +- add pnpm to package manager selection in CI workflow ([32561be](https://github.com/patrickkabwe/create-nitro-module/commit/32561bec1ce12a98c911014bb0b799fff6f735f6)) +- **deps-dev:** bump @typescript-eslint/parser from 8.33.0 to 8.34.1 ([9e841f9](https://github.com/patrickkabwe/create-nitro-module/commit/9e841f9ee24bfb89df29fb8f4deed67a8f2da303)) +- remove cache option from node setup in CI workflow ([841bed3](https://github.com/patrickkabwe/create-nitro-module/commit/841bed3d1d7eb6b503fa6154e607e76e54b30f37)) +- remove nitro-module entry from bin in package.json ([a210a70](https://github.com/patrickkabwe/create-nitro-module/commit/a210a701b295d885e13ac9bb6c3dc80734e01ee1)) ## [2.1.3](https://github.com/patrickkabwe/create-nitro-module/compare/v2.1.2...v2.1.3) (2025-06-13) ### 🛠️ Other changes -* **deps-dev:** bump @types/node from 22.15.24 to 24.0.1 ([28530f1](https://github.com/patrickkabwe/create-nitro-module/commit/28530f11587bcb825ce1d152b11bfe1bfd7e9973)) +- **deps-dev:** bump @types/node from 22.15.24 to 24.0.1 ([28530f1](https://github.com/patrickkabwe/create-nitro-module/commit/28530f11587bcb825ce1d152b11bfe1bfd7e9973)) ## [2.1.2](https://github.com/patrickkabwe/create-nitro-module/compare/v2.1.1...v2.1.2) (2025-06-07) ### 🛠️ Other changes -* **deps:** update nitro-codegen and react-native-nitro-modules to use caret versioning ([eeadf9a](https://github.com/patrickkabwe/create-nitro-module/commit/eeadf9a8aa1689cbf727aee39cd4544e58d6f857)) -* **deps:** update nitro-codegen and react-native-nitro-modules to version 0.26.2 ([04d578a](https://github.com/patrickkabwe/create-nitro-module/commit/04d578a011a71a3dca6e9ce0174748a1a4b92aa3)) +- **deps:** update nitro-codegen and react-native-nitro-modules to use caret versioning ([eeadf9a](https://github.com/patrickkabwe/create-nitro-module/commit/eeadf9a8aa1689cbf727aee39cd4544e58d6f857)) +- **deps:** update nitro-codegen and react-native-nitro-modules to version 0.26.2 ([04d578a](https://github.com/patrickkabwe/create-nitro-module/commit/04d578a011a71a3dca6e9ce0174748a1a4b92aa3)) ## [2.1.1](https://github.com/patrickkabwe/create-nitro-module/compare/v2.1.0...v2.1.1) (2025-06-05) ### 🛠️ Other changes -* **deps-dev:** bump @typescript-eslint/eslint-plugin ([7922c3e](https://github.com/patrickkabwe/create-nitro-module/commit/7922c3e259aa0dc9231d59dfb1567d64db97fb74)) -* **deps-dev:** bump eslint from 9.27.0 to 9.28.0 ([5ae7ace](https://github.com/patrickkabwe/create-nitro-module/commit/5ae7ace904dc65a92dcafed794dca46293fddd01)) -* **deps-dev:** bump eslint-plugin-n from 17.18.0 to 17.19.0 ([97a49fc](https://github.com/patrickkabwe/create-nitro-module/commit/97a49fc4af8cb5d6a8d32ede6478c58e53281cd5)) +- **deps-dev:** bump @typescript-eslint/eslint-plugin ([7922c3e](https://github.com/patrickkabwe/create-nitro-module/commit/7922c3e259aa0dc9231d59dfb1567d64db97fb74)) +- **deps-dev:** bump eslint from 9.27.0 to 9.28.0 ([5ae7ace](https://github.com/patrickkabwe/create-nitro-module/commit/5ae7ace904dc65a92dcafed794dca46293fddd01)) +- **deps-dev:** bump eslint-plugin-n from 17.18.0 to 17.19.0 ([97a49fc](https://github.com/patrickkabwe/create-nitro-module/commit/97a49fc4af8cb5d6a8d32ede6478c58e53281cd5)) ## [2.1.0](https://github.com/patrickkabwe/create-nitro-module/compare/v2.0.0...v2.1.0) (2025-06-05) ### ✨ Features -* upgrade nitro to 0.26.1 ([336b995](https://github.com/patrickkabwe/create-nitro-module/commit/336b995a613f70e977851a3748d307ab6e10670c)) +- upgrade nitro to 0.26.1 ([336b995](https://github.com/patrickkabwe/create-nitro-module/commit/336b995a613f70e977851a3748d307ab6e10670c)) ### 🐛 Bug Fixes -* `postcodegen` script not working correctly with `bun` ([9c08c4b](https://github.com/patrickkabwe/create-nitro-module/commit/9c08c4b7cdc1f2b0db49573417e5260ff9c7f092)) -* package and readme description ([b033671](https://github.com/patrickkabwe/create-nitro-module/commit/b033671cff4948d9d1768d06f4c95327f10fd779)) +- `postcodegen` script not working correctly with `bun` ([9c08c4b](https://github.com/patrickkabwe/create-nitro-module/commit/9c08c4b7cdc1f2b0db49573417e5260ff9c7f092)) +- package and readme description ([b033671](https://github.com/patrickkabwe/create-nitro-module/commit/b033671cff4948d9d1768d06f4c95327f10fd779)) ### 🔄 Code Refactors -* improve code readability in installDependenciesAndRunCodegen method ([d6d81bc](https://github.com/patrickkabwe/create-nitro-module/commit/d6d81bc7128553d56e099837898d6d0f4158e200)) -* improve language selection logic in CLI ([ed9df70](https://github.com/patrickkabwe/create-nitro-module/commit/ed9df708e7e98e1ba07328500d05bc8de8817957)) +- improve code readability in installDependenciesAndRunCodegen method ([d6d81bc](https://github.com/patrickkabwe/create-nitro-module/commit/d6d81bc7128553d56e099837898d6d0f4158e200)) +- improve language selection logic in CLI ([ed9df70](https://github.com/patrickkabwe/create-nitro-module/commit/ed9df708e7e98e1ba07328500d05bc8de8817957)) ### 🛠️ Other changes -* update ESLint configuration to use defineConfig for improved structure and readability ([7d51f85](https://github.com/patrickkabwe/create-nitro-module/commit/7d51f8537b0867d4a882a1d9b56b4294a82407a0)) -* update LICENSE file to use dynamic copyright year ([e7f25a5](https://github.com/patrickkabwe/create-nitro-module/commit/e7f25a58243ec4834d52f4ce00f11955f4ac2e95)) -* update react-native to version 0.79.3 ([6bb9d16](https://github.com/patrickkabwe/create-nitro-module/commit/6bb9d1631b2b0aa246c3c724fff6345c4ffdeac5)) +- update ESLint configuration to use defineConfig for improved structure and readability ([7d51f85](https://github.com/patrickkabwe/create-nitro-module/commit/7d51f8537b0867d4a882a1d9b56b4294a82407a0)) +- update LICENSE file to use dynamic copyright year ([e7f25a5](https://github.com/patrickkabwe/create-nitro-module/commit/e7f25a58243ec4834d52f4ce00f11955f4ac2e95)) +- update react-native to version 0.79.3 ([6bb9d16](https://github.com/patrickkabwe/create-nitro-module/commit/6bb9d1631b2b0aa246c3c724fff6345c4ffdeac5)) ## [2.0.0](https://github.com/patrickkabwe/create-nitro-module/compare/v1.8.10...v2.0.0) (2025-06-01) ### ⚠ BREAKING CHANGES -* use `@clack/prompts` to handle prompts +- use `@clack/prompts` to handle prompts ### ✨ Features -* add author and description placeholders to template files and update spinner messages ([1eba141](https://github.com/patrickkabwe/create-nitro-module/commit/1eba141c2a88995bbd704f4e8a3d28f042f8b944)) -* add badges for version, downloads, and license to README ([ecdba90](https://github.com/patrickkabwe/create-nitro-module/commit/ecdba907064d076b7fb8a8cd85ac50a5369f6f5f)) -* add description and keywords to package generation ([5b9aded](https://github.com/patrickkabwe/create-nitro-module/commit/5b9aded2b3ebdfe01bff85bfec6ed8a386f18eb9)) -* add MIT License file to the project ([235ac28](https://github.com/patrickkabwe/create-nitro-module/commit/235ac286b3a76f19b8f9bb28afed27870c8ae318)) -* add ncli.tape for automated CLI module creation and improve spinner message formatting ([0dd62c4](https://github.com/patrickkabwe/create-nitro-module/commit/0dd62c464844d19d7e686ebef9d07997480fc486)) -* use `@clack/prompts` to handle prompts ([31d414c](https://github.com/patrickkabwe/create-nitro-module/commit/31d414c376084d06afe181e01cff985870340524)) +- add author and description placeholders to template files and update spinner messages ([1eba141](https://github.com/patrickkabwe/create-nitro-module/commit/1eba141c2a88995bbd704f4e8a3d28f042f8b944)) +- add badges for version, downloads, and license to README ([ecdba90](https://github.com/patrickkabwe/create-nitro-module/commit/ecdba907064d076b7fb8a8cd85ac50a5369f6f5f)) +- add description and keywords to package generation ([5b9aded](https://github.com/patrickkabwe/create-nitro-module/commit/5b9aded2b3ebdfe01bff85bfec6ed8a386f18eb9)) +- add MIT License file to the project ([235ac28](https://github.com/patrickkabwe/create-nitro-module/commit/235ac286b3a76f19b8f9bb28afed27870c8ae318)) +- add ncli.tape for automated CLI module creation and improve spinner message formatting ([0dd62c4](https://github.com/patrickkabwe/create-nitro-module/commit/0dd62c464844d19d7e686ebef9d07997480fc486)) +- use `@clack/prompts` to handle prompts ([31d414c](https://github.com/patrickkabwe/create-nitro-module/commit/31d414c376084d06afe181e01cff985870340524)) ### 🐛 Bug Fixes -* Clean up code formatting and ensure newline at end of file ([1fa81a1](https://github.com/patrickkabwe/create-nitro-module/commit/1fa81a1f4678db0cfc578f0ecb5655ffc24dc80d)) -* correct syntax in package generation keywords array ([2d835a1](https://github.com/patrickkabwe/create-nitro-module/commit/2d835a1cec954252dfce9e85ddd4afb35da2d10c)) -* ensure newline at end of package.json file ([b5d2d47](https://github.com/patrickkabwe/create-nitro-module/commit/b5d2d4761e040e53f34b1c4c7c2e738d14fab589)) -* update cache key in GitHub workflows and correct import path in package generation ([07acfc3](https://github.com/patrickkabwe/create-nitro-module/commit/07acfc351c8d39dd296c55cfff03741a8c39d021)) -* update nitro-module-cli.gif to improve visual representation ([79ba089](https://github.com/patrickkabwe/create-nitro-module/commit/79ba089b08eadc3fab00e1618897a78356679c5c)) -* workflow ([d35a0b6](https://github.com/patrickkabwe/create-nitro-module/commit/d35a0b60834deec42262f66db61d2bda8ddcaa0b)) +- Clean up code formatting and ensure newline at end of file ([1fa81a1](https://github.com/patrickkabwe/create-nitro-module/commit/1fa81a1f4678db0cfc578f0ecb5655ffc24dc80d)) +- correct syntax in package generation keywords array ([2d835a1](https://github.com/patrickkabwe/create-nitro-module/commit/2d835a1cec954252dfce9e85ddd4afb35da2d10c)) +- ensure newline at end of package.json file ([b5d2d47](https://github.com/patrickkabwe/create-nitro-module/commit/b5d2d4761e040e53f34b1c4c7c2e738d14fab589)) +- update cache key in GitHub workflows and correct import path in package generation ([07acfc3](https://github.com/patrickkabwe/create-nitro-module/commit/07acfc351c8d39dd296c55cfff03741a8c39d021)) +- update nitro-module-cli.gif to improve visual representation ([79ba089](https://github.com/patrickkabwe/create-nitro-module/commit/79ba089b08eadc3fab00e1618897a78356679c5c)) +- workflow ([d35a0b6](https://github.com/patrickkabwe/create-nitro-module/commit/d35a0b60834deec42262f66db61d2bda8ddcaa0b)) ### 🔄 Code Refactors -* standardize naming from moduleName to packageName across the codebase ([8df59bd](https://github.com/patrickkabwe/create-nitro-module/commit/8df59bdcebfff7e717d4e5aabb2636c60e50bf70)) -* update Nitro module creation to use packageName instead of moduleName ([83207f9](https://github.com/patrickkabwe/create-nitro-module/commit/83207f9e368f984665120e1287ef7880767216f2)) +- standardize naming from moduleName to packageName across the codebase ([8df59bd](https://github.com/patrickkabwe/create-nitro-module/commit/8df59bdcebfff7e717d4e5aabb2636c60e50bf70)) +- update Nitro module creation to use packageName instead of moduleName ([83207f9](https://github.com/patrickkabwe/create-nitro-module/commit/83207f9e368f984665120e1287ef7880767216f2)) ### 📚 Documentation -* add Semantic Release mention to README and documentation ([e81ba14](https://github.com/patrickkabwe/create-nitro-module/commit/e81ba14cf74a344dda19280297e51efabb8be986)) +- add Semantic Release mention to README and documentation ([e81ba14](https://github.com/patrickkabwe/create-nitro-module/commit/e81ba14cf74a344dda19280297e51efabb8be986)) ### 🛠️ Other changes -* add Act configuration and update GitHub workflows ([57ffaff](https://github.com/patrickkabwe/create-nitro-module/commit/57ffaff17564446774dcacbe0284c4dd44828021)) -* add Act configuration and update GitHub workflows ([9a0dc4f](https://github.com/patrickkabwe/create-nitro-module/commit/9a0dc4fb7b700bb0963d73f840b465ada8c9d80c)) -* add Act configuration and update GitHub workflows ([d1800ce](https://github.com/patrickkabwe/create-nitro-module/commit/d1800ce807c98f65c0c28a32ebcaafe52b9f8b36)) -* add Act configuration and update GitHub workflows ([9630cb8](https://github.com/patrickkabwe/create-nitro-module/commit/9630cb84ed352292ae38963a7b5e39f7494d514d)) -* add Act configuration and update GitHub workflows ([7b901a5](https://github.com/patrickkabwe/create-nitro-module/commit/7b901a5fadb93e6b849b60fa61ff18e1873367e5)) -* **deps:** update multiple dependencies ([dcb6810](https://github.com/patrickkabwe/create-nitro-module/commit/dcb6810ab5769061700445b2af593f2de9e10af4)) -* enhance GitHub workflow for code generation and CocoaPods installation ([b8c6916](https://github.com/patrickkabwe/create-nitro-module/commit/b8c6916608b5c5428b3f70fc01ae8cfecd640659)) -* migrate from release-it to semantic-release for version management ([947b75a](https://github.com/patrickkabwe/create-nitro-module/commit/947b75a65bd3a23afd73f7bc4ed1e870ac2b284b)) -* refine artifact naming in GitHub workflows for consistency ([0edc112](https://github.com/patrickkabwe/create-nitro-module/commit/0edc11218ef4246c8998cf015ce30d462ba892f1)) -* **release:** 1.8.11-next.1 [skip ci] ([0a02747](https://github.com/patrickkabwe/create-nitro-module/commit/0a0274739431ed40dd4850a21645feb599cb7735)) -* **release:** 1.8.11-next.2 [skip ci] ([97c1a83](https://github.com/patrickkabwe/create-nitro-module/commit/97c1a833b40e0a8124bc277971488f1984279864)) -* **release:** 1.8.11-next.3 [skip ci] ([e2f6acb](https://github.com/patrickkabwe/create-nitro-module/commit/e2f6acbc281179b0d1cee2d74bba92427c1d8b9b)) -* **release:** 2.0.0-next.1 [skip ci] ([3fe4f4c](https://github.com/patrickkabwe/create-nitro-module/commit/3fe4f4c3a63941e8d53cbf6d0729aa4e7b21e13a)) -* **release:** 2.0.0-next.2 [skip ci] ([7d64ad3](https://github.com/patrickkabwe/create-nitro-module/commit/7d64ad3347e0d23ddfc0ace0ef3bb2bde6cfe5a2)) -* **release:** 2.0.0-next.3 [skip ci] ([9eedfd7](https://github.com/patrickkabwe/create-nitro-module/commit/9eedfd79b22c68f828027413022e3f4d617b80a4)) -* **release:** 2.0.0-next.4 [skip ci] ([116db9b](https://github.com/patrickkabwe/create-nitro-module/commit/116db9b8cdb23dc60526d7ca59777927d4a1fe20)) -* **release:** 2.0.0-next.5 [skip ci] ([c430744](https://github.com/patrickkabwe/create-nitro-module/commit/c430744f248fa83cc96de1428e2f29776ed7e7a4)) -* **release:** bump version to 2.0.0 ([0b99243](https://github.com/patrickkabwe/create-nitro-module/commit/0b9924394707296889a20c2af9e99c309325f6b7)) -* remove generate-nitro-module and generate-nitro-views workflows from GitHub Actions ([15f3ad5](https://github.com/patrickkabwe/create-nitro-module/commit/15f3ad554c0ef7375e66c26aa7cae42ccb6e4417)) -* remove npm from package manager matrix in GitHub workflows ([a5f2dd4](https://github.com/patrickkabwe/create-nitro-module/commit/a5f2dd4de11a999a71b752481454b665fe711b9f)) -* rename generate-nitro-module to nitro-package ([7431ece](https://github.com/patrickkabwe/create-nitro-module/commit/7431ece019983664d2e9759710b5de025c572ea8)) -* simplify artifact naming in GitHub workflows by removing package manager from the name ([1af2d24](https://github.com/patrickkabwe/create-nitro-module/commit/1af2d2497208c9dec6ceee2034d5b1c043ebee83)) -* update artifact naming in GitHub workflows for clarity ([d0222f8](https://github.com/patrickkabwe/create-nitro-module/commit/d0222f815f487ffdec58088420e07287ce523fea)) -* update artifact naming in GitHub workflows for clarity ([fa7b444](https://github.com/patrickkabwe/create-nitro-module/commit/fa7b4445648e331f9135a67546abe7c594c468a0)) -* update artifact naming in GitHub workflows to include package manager in the name ([e8a88b5](https://github.com/patrickkabwe/create-nitro-module/commit/e8a88b5590b11f7ce63df2a444179ea5f74db6e2)) -* update artifact naming in GitHub workflows to remove package manager from the name ([4cb84c6](https://github.com/patrickkabwe/create-nitro-module/commit/4cb84c6a585f3dfa1460d0d3a54ca3e335e82b57)) -* update dependencies and refactor CLI entry points ([9078e13](https://github.com/patrickkabwe/create-nitro-module/commit/9078e13431cf1636dcb24bed4ad31ac98269ec9e)) -* Update dependencies and refactor module creation process ([9b57577](https://github.com/patrickkabwe/create-nitro-module/commit/9b57577bfe3c08c280bb82db4f804402c41400bf)) -* update GitHub workflow and package generation scripts ([683e4f8](https://github.com/patrickkabwe/create-nitro-module/commit/683e4f8cc8f09408ea24fd1aad8d5ae14ee9e54e)) -* update GitHub workflow to support both Debug and Release modes ([a8f808a](https://github.com/patrickkabwe/create-nitro-module/commit/a8f808a895f9de903d3d068cad19152cbbaf3043)) -* update GitHub workflow to support npm alongside bun and yarn ([a702640](https://github.com/patrickkabwe/create-nitro-module/commit/a70264080b1266a258a74476ca29bef3d26c1183)) -* update publishConfig in package.json to set access to public ([ea03bb0](https://github.com/patrickkabwe/create-nitro-module/commit/ea03bb0e7ec62f2fc6ab61b639770680db4f6a7e)) -* update release configuration for additional assets ([0f8bc96](https://github.com/patrickkabwe/create-nitro-module/commit/0f8bc96161c0e851a224b733550f36272bc25c9b)) -* update workflow to conditionally use bun for npm package creation ([dbef309](https://github.com/patrickkabwe/create-nitro-module/commit/dbef3098b85fa0527289c0c9d3888a83989af2c5)) -* use capitalize function ([b6e4e3e](https://github.com/patrickkabwe/create-nitro-module/commit/b6e4e3ed5bae6ec279626f825c501ae2e4fcd8ad)) +- add Act configuration and update GitHub workflows ([57ffaff](https://github.com/patrickkabwe/create-nitro-module/commit/57ffaff17564446774dcacbe0284c4dd44828021)) +- add Act configuration and update GitHub workflows ([9a0dc4f](https://github.com/patrickkabwe/create-nitro-module/commit/9a0dc4fb7b700bb0963d73f840b465ada8c9d80c)) +- add Act configuration and update GitHub workflows ([d1800ce](https://github.com/patrickkabwe/create-nitro-module/commit/d1800ce807c98f65c0c28a32ebcaafe52b9f8b36)) +- add Act configuration and update GitHub workflows ([9630cb8](https://github.com/patrickkabwe/create-nitro-module/commit/9630cb84ed352292ae38963a7b5e39f7494d514d)) +- add Act configuration and update GitHub workflows ([7b901a5](https://github.com/patrickkabwe/create-nitro-module/commit/7b901a5fadb93e6b849b60fa61ff18e1873367e5)) +- **deps:** update multiple dependencies ([dcb6810](https://github.com/patrickkabwe/create-nitro-module/commit/dcb6810ab5769061700445b2af593f2de9e10af4)) +- enhance GitHub workflow for code generation and CocoaPods installation ([b8c6916](https://github.com/patrickkabwe/create-nitro-module/commit/b8c6916608b5c5428b3f70fc01ae8cfecd640659)) +- migrate from release-it to semantic-release for version management ([947b75a](https://github.com/patrickkabwe/create-nitro-module/commit/947b75a65bd3a23afd73f7bc4ed1e870ac2b284b)) +- refine artifact naming in GitHub workflows for consistency ([0edc112](https://github.com/patrickkabwe/create-nitro-module/commit/0edc11218ef4246c8998cf015ce30d462ba892f1)) +- **release:** 1.8.11-next.1 [skip ci] ([0a02747](https://github.com/patrickkabwe/create-nitro-module/commit/0a0274739431ed40dd4850a21645feb599cb7735)) +- **release:** 1.8.11-next.2 [skip ci] ([97c1a83](https://github.com/patrickkabwe/create-nitro-module/commit/97c1a833b40e0a8124bc277971488f1984279864)) +- **release:** 1.8.11-next.3 [skip ci] ([e2f6acb](https://github.com/patrickkabwe/create-nitro-module/commit/e2f6acbc281179b0d1cee2d74bba92427c1d8b9b)) +- **release:** 2.0.0-next.1 [skip ci] ([3fe4f4c](https://github.com/patrickkabwe/create-nitro-module/commit/3fe4f4c3a63941e8d53cbf6d0729aa4e7b21e13a)) +- **release:** 2.0.0-next.2 [skip ci] ([7d64ad3](https://github.com/patrickkabwe/create-nitro-module/commit/7d64ad3347e0d23ddfc0ace0ef3bb2bde6cfe5a2)) +- **release:** 2.0.0-next.3 [skip ci] ([9eedfd7](https://github.com/patrickkabwe/create-nitro-module/commit/9eedfd79b22c68f828027413022e3f4d617b80a4)) +- **release:** 2.0.0-next.4 [skip ci] ([116db9b](https://github.com/patrickkabwe/create-nitro-module/commit/116db9b8cdb23dc60526d7ca59777927d4a1fe20)) +- **release:** 2.0.0-next.5 [skip ci] ([c430744](https://github.com/patrickkabwe/create-nitro-module/commit/c430744f248fa83cc96de1428e2f29776ed7e7a4)) +- **release:** bump version to 2.0.0 ([0b99243](https://github.com/patrickkabwe/create-nitro-module/commit/0b9924394707296889a20c2af9e99c309325f6b7)) +- remove generate-nitro-module and generate-nitro-views workflows from GitHub Actions ([15f3ad5](https://github.com/patrickkabwe/create-nitro-module/commit/15f3ad554c0ef7375e66c26aa7cae42ccb6e4417)) +- remove npm from package manager matrix in GitHub workflows ([a5f2dd4](https://github.com/patrickkabwe/create-nitro-module/commit/a5f2dd4de11a999a71b752481454b665fe711b9f)) +- rename generate-nitro-module to nitro-package ([7431ece](https://github.com/patrickkabwe/create-nitro-module/commit/7431ece019983664d2e9759710b5de025c572ea8)) +- simplify artifact naming in GitHub workflows by removing package manager from the name ([1af2d24](https://github.com/patrickkabwe/create-nitro-module/commit/1af2d2497208c9dec6ceee2034d5b1c043ebee83)) +- update artifact naming in GitHub workflows for clarity ([d0222f8](https://github.com/patrickkabwe/create-nitro-module/commit/d0222f815f487ffdec58088420e07287ce523fea)) +- update artifact naming in GitHub workflows for clarity ([fa7b444](https://github.com/patrickkabwe/create-nitro-module/commit/fa7b4445648e331f9135a67546abe7c594c468a0)) +- update artifact naming in GitHub workflows to include package manager in the name ([e8a88b5](https://github.com/patrickkabwe/create-nitro-module/commit/e8a88b5590b11f7ce63df2a444179ea5f74db6e2)) +- update artifact naming in GitHub workflows to remove package manager from the name ([4cb84c6](https://github.com/patrickkabwe/create-nitro-module/commit/4cb84c6a585f3dfa1460d0d3a54ca3e335e82b57)) +- update dependencies and refactor CLI entry points ([9078e13](https://github.com/patrickkabwe/create-nitro-module/commit/9078e13431cf1636dcb24bed4ad31ac98269ec9e)) +- Update dependencies and refactor module creation process ([9b57577](https://github.com/patrickkabwe/create-nitro-module/commit/9b57577bfe3c08c280bb82db4f804402c41400bf)) +- update GitHub workflow and package generation scripts ([683e4f8](https://github.com/patrickkabwe/create-nitro-module/commit/683e4f8cc8f09408ea24fd1aad8d5ae14ee9e54e)) +- update GitHub workflow to support both Debug and Release modes ([a8f808a](https://github.com/patrickkabwe/create-nitro-module/commit/a8f808a895f9de903d3d068cad19152cbbaf3043)) +- update GitHub workflow to support npm alongside bun and yarn ([a702640](https://github.com/patrickkabwe/create-nitro-module/commit/a70264080b1266a258a74476ca29bef3d26c1183)) +- update publishConfig in package.json to set access to public ([ea03bb0](https://github.com/patrickkabwe/create-nitro-module/commit/ea03bb0e7ec62f2fc6ab61b639770680db4f6a7e)) +- update release configuration for additional assets ([0f8bc96](https://github.com/patrickkabwe/create-nitro-module/commit/0f8bc96161c0e851a224b733550f36272bc25c9b)) +- update workflow to conditionally use bun for npm package creation ([dbef309](https://github.com/patrickkabwe/create-nitro-module/commit/dbef3098b85fa0527289c0c9d3888a83989af2c5)) +- use capitalize function ([b6e4e3e](https://github.com/patrickkabwe/create-nitro-module/commit/b6e4e3ed5bae6ec279626f825c501ae2e4fcd8ad)) ## [2.0.0-next.5](https://github.com/patrickkabwe/create-nitro-module/compare/v2.0.0-next.4...v2.0.0-next.5) (2025-06-01) ### ✨ Features -* add author and description placeholders to template files and update spinner messages ([1eba141](https://github.com/patrickkabwe/create-nitro-module/commit/1eba141c2a88995bbd704f4e8a3d28f042f8b944)) -* add badges for version, downloads, and license to README ([ecdba90](https://github.com/patrickkabwe/create-nitro-module/commit/ecdba907064d076b7fb8a8cd85ac50a5369f6f5f)) -* add description and keywords to package generation ([5b9aded](https://github.com/patrickkabwe/create-nitro-module/commit/5b9aded2b3ebdfe01bff85bfec6ed8a386f18eb9)) -* add MIT License file to the project ([235ac28](https://github.com/patrickkabwe/create-nitro-module/commit/235ac286b3a76f19b8f9bb28afed27870c8ae318)) -* add ncli.tape for automated CLI module creation and improve spinner message formatting ([0dd62c4](https://github.com/patrickkabwe/create-nitro-module/commit/0dd62c464844d19d7e686ebef9d07997480fc486)) +- add author and description placeholders to template files and update spinner messages ([1eba141](https://github.com/patrickkabwe/create-nitro-module/commit/1eba141c2a88995bbd704f4e8a3d28f042f8b944)) +- add badges for version, downloads, and license to README ([ecdba90](https://github.com/patrickkabwe/create-nitro-module/commit/ecdba907064d076b7fb8a8cd85ac50a5369f6f5f)) +- add description and keywords to package generation ([5b9aded](https://github.com/patrickkabwe/create-nitro-module/commit/5b9aded2b3ebdfe01bff85bfec6ed8a386f18eb9)) +- add MIT License file to the project ([235ac28](https://github.com/patrickkabwe/create-nitro-module/commit/235ac286b3a76f19b8f9bb28afed27870c8ae318)) +- add ncli.tape for automated CLI module creation and improve spinner message formatting ([0dd62c4](https://github.com/patrickkabwe/create-nitro-module/commit/0dd62c464844d19d7e686ebef9d07997480fc486)) ### 🐛 Bug Fixes -* correct syntax in package generation keywords array ([2d835a1](https://github.com/patrickkabwe/create-nitro-module/commit/2d835a1cec954252dfce9e85ddd4afb35da2d10c)) -* update cache key in GitHub workflows and correct import path in package generation ([07acfc3](https://github.com/patrickkabwe/create-nitro-module/commit/07acfc351c8d39dd296c55cfff03741a8c39d021)) -* update nitro-module-cli.gif to improve visual representation ([79ba089](https://github.com/patrickkabwe/create-nitro-module/commit/79ba089b08eadc3fab00e1618897a78356679c5c)) +- correct syntax in package generation keywords array ([2d835a1](https://github.com/patrickkabwe/create-nitro-module/commit/2d835a1cec954252dfce9e85ddd4afb35da2d10c)) +- update cache key in GitHub workflows and correct import path in package generation ([07acfc3](https://github.com/patrickkabwe/create-nitro-module/commit/07acfc351c8d39dd296c55cfff03741a8c39d021)) +- update nitro-module-cli.gif to improve visual representation ([79ba089](https://github.com/patrickkabwe/create-nitro-module/commit/79ba089b08eadc3fab00e1618897a78356679c5c)) ## [2.0.0-next.4](https://github.com/patrickkabwe/create-nitro-module/compare/v2.0.0-next.3...v2.0.0-next.4) (2025-06-01) ### 🐛 Bug Fixes -* workflow ([d35a0b6](https://github.com/patrickkabwe/create-nitro-module/commit/d35a0b60834deec42262f66db61d2bda8ddcaa0b)) +- workflow ([d35a0b6](https://github.com/patrickkabwe/create-nitro-module/commit/d35a0b60834deec42262f66db61d2bda8ddcaa0b)) ### 🛠️ Other changes -* enhance GitHub workflow for code generation and CocoaPods installation ([b8c6916](https://github.com/patrickkabwe/create-nitro-module/commit/b8c6916608b5c5428b3f70fc01ae8cfecd640659)) -* update GitHub workflow and package generation scripts ([683e4f8](https://github.com/patrickkabwe/create-nitro-module/commit/683e4f8cc8f09408ea24fd1aad8d5ae14ee9e54e)) +- enhance GitHub workflow for code generation and CocoaPods installation ([b8c6916](https://github.com/patrickkabwe/create-nitro-module/commit/b8c6916608b5c5428b3f70fc01ae8cfecd640659)) +- update GitHub workflow and package generation scripts ([683e4f8](https://github.com/patrickkabwe/create-nitro-module/commit/683e4f8cc8f09408ea24fd1aad8d5ae14ee9e54e)) ## [2.0.0-next.3](https://github.com/patrickkabwe/create-nitro-module/compare/v2.0.0-next.2...v2.0.0-next.3) (2025-06-01) ### 🛠️ Other changes -* update GitHub workflow to support both Debug and Release modes ([a8f808a](https://github.com/patrickkabwe/create-nitro-module/commit/a8f808a895f9de903d3d068cad19152cbbaf3043)) -* update release configuration for additional assets ([0f8bc96](https://github.com/patrickkabwe/create-nitro-module/commit/0f8bc96161c0e851a224b733550f36272bc25c9b)) +- update GitHub workflow to support both Debug and Release modes ([a8f808a](https://github.com/patrickkabwe/create-nitro-module/commit/a8f808a895f9de903d3d068cad19152cbbaf3043)) +- update release configuration for additional assets ([0f8bc96](https://github.com/patrickkabwe/create-nitro-module/commit/0f8bc96161c0e851a224b733550f36272bc25c9b)) ## [2.0.0-next.2](https://github.com/patrickkabwe/create-nitro-module/compare/v2.0.0-next.1...v2.0.0-next.2) (2025-05-31) ### 🐛 Bug Fixes -* ensure newline at end of package.json file ([b5d2d47](https://github.com/patrickkabwe/create-nitro-module/commit/b5d2d4761e040e53f34b1c4c7c2e738d14fab589)) +- ensure newline at end of package.json file ([b5d2d47](https://github.com/patrickkabwe/create-nitro-module/commit/b5d2d4761e040e53f34b1c4c7c2e738d14fab589)) ### 🔄 Code Refactors -* standardize naming from moduleName to packageName across the codebase ([8df59bd](https://github.com/patrickkabwe/create-nitro-module/commit/8df59bdcebfff7e717d4e5aabb2636c60e50bf70)) -* update Nitro module creation to use packageName instead of moduleName ([83207f9](https://github.com/patrickkabwe/create-nitro-module/commit/83207f9e368f984665120e1287ef7880767216f2)) +- standardize naming from moduleName to packageName across the codebase ([8df59bd](https://github.com/patrickkabwe/create-nitro-module/commit/8df59bdcebfff7e717d4e5aabb2636c60e50bf70)) +- update Nitro module creation to use packageName instead of moduleName ([83207f9](https://github.com/patrickkabwe/create-nitro-module/commit/83207f9e368f984665120e1287ef7880767216f2)) ### 📚 Documentation -* add Semantic Release mention to README and documentation ([e81ba14](https://github.com/patrickkabwe/create-nitro-module/commit/e81ba14cf74a344dda19280297e51efabb8be986)) +- add Semantic Release mention to README and documentation ([e81ba14](https://github.com/patrickkabwe/create-nitro-module/commit/e81ba14cf74a344dda19280297e51efabb8be986)) ### 🛠️ Other changes -* add Act configuration and update GitHub workflows ([57ffaff](https://github.com/patrickkabwe/create-nitro-module/commit/57ffaff17564446774dcacbe0284c4dd44828021)) -* add Act configuration and update GitHub workflows ([9a0dc4f](https://github.com/patrickkabwe/create-nitro-module/commit/9a0dc4fb7b700bb0963d73f840b465ada8c9d80c)) -* add Act configuration and update GitHub workflows ([d1800ce](https://github.com/patrickkabwe/create-nitro-module/commit/d1800ce807c98f65c0c28a32ebcaafe52b9f8b36)) -* add Act configuration and update GitHub workflows ([9630cb8](https://github.com/patrickkabwe/create-nitro-module/commit/9630cb84ed352292ae38963a7b5e39f7494d514d)) -* add Act configuration and update GitHub workflows ([7b901a5](https://github.com/patrickkabwe/create-nitro-module/commit/7b901a5fadb93e6b849b60fa61ff18e1873367e5)) -* migrate from release-it to semantic-release for version management ([947b75a](https://github.com/patrickkabwe/create-nitro-module/commit/947b75a65bd3a23afd73f7bc4ed1e870ac2b284b)) -* refine artifact naming in GitHub workflows for consistency ([0edc112](https://github.com/patrickkabwe/create-nitro-module/commit/0edc11218ef4246c8998cf015ce30d462ba892f1)) -* remove generate-nitro-module and generate-nitro-views workflows from GitHub Actions ([15f3ad5](https://github.com/patrickkabwe/create-nitro-module/commit/15f3ad554c0ef7375e66c26aa7cae42ccb6e4417)) -* remove npm from package manager matrix in GitHub workflows ([a5f2dd4](https://github.com/patrickkabwe/create-nitro-module/commit/a5f2dd4de11a999a71b752481454b665fe711b9f)) -* rename generate-nitro-module to nitro-package ([7431ece](https://github.com/patrickkabwe/create-nitro-module/commit/7431ece019983664d2e9759710b5de025c572ea8)) -* simplify artifact naming in GitHub workflows by removing package manager from the name ([1af2d24](https://github.com/patrickkabwe/create-nitro-module/commit/1af2d2497208c9dec6ceee2034d5b1c043ebee83)) -* update artifact naming in GitHub workflows for clarity ([d0222f8](https://github.com/patrickkabwe/create-nitro-module/commit/d0222f815f487ffdec58088420e07287ce523fea)) -* update artifact naming in GitHub workflows for clarity ([fa7b444](https://github.com/patrickkabwe/create-nitro-module/commit/fa7b4445648e331f9135a67546abe7c594c468a0)) -* update artifact naming in GitHub workflows to include package manager in the name ([e8a88b5](https://github.com/patrickkabwe/create-nitro-module/commit/e8a88b5590b11f7ce63df2a444179ea5f74db6e2)) -* update artifact naming in GitHub workflows to remove package manager from the name ([4cb84c6](https://github.com/patrickkabwe/create-nitro-module/commit/4cb84c6a585f3dfa1460d0d3a54ca3e335e82b57)) -* update dependencies and refactor CLI entry points ([9078e13](https://github.com/patrickkabwe/create-nitro-module/commit/9078e13431cf1636dcb24bed4ad31ac98269ec9e)) -* update GitHub workflow to support npm alongside bun and yarn ([a702640](https://github.com/patrickkabwe/create-nitro-module/commit/a70264080b1266a258a74476ca29bef3d26c1183)) -* update publishConfig in package.json to set access to public ([ea03bb0](https://github.com/patrickkabwe/create-nitro-module/commit/ea03bb0e7ec62f2fc6ab61b639770680db4f6a7e)) -* update workflow to conditionally use bun for npm package creation ([dbef309](https://github.com/patrickkabwe/create-nitro-module/commit/dbef3098b85fa0527289c0c9d3888a83989af2c5)) -* use capitalize function ([b6e4e3e](https://github.com/patrickkabwe/create-nitro-module/commit/b6e4e3ed5bae6ec279626f825c501ae2e4fcd8ad)) +- add Act configuration and update GitHub workflows ([57ffaff](https://github.com/patrickkabwe/create-nitro-module/commit/57ffaff17564446774dcacbe0284c4dd44828021)) +- add Act configuration and update GitHub workflows ([9a0dc4f](https://github.com/patrickkabwe/create-nitro-module/commit/9a0dc4fb7b700bb0963d73f840b465ada8c9d80c)) +- add Act configuration and update GitHub workflows ([d1800ce](https://github.com/patrickkabwe/create-nitro-module/commit/d1800ce807c98f65c0c28a32ebcaafe52b9f8b36)) +- add Act configuration and update GitHub workflows ([9630cb8](https://github.com/patrickkabwe/create-nitro-module/commit/9630cb84ed352292ae38963a7b5e39f7494d514d)) +- add Act configuration and update GitHub workflows ([7b901a5](https://github.com/patrickkabwe/create-nitro-module/commit/7b901a5fadb93e6b849b60fa61ff18e1873367e5)) +- migrate from release-it to semantic-release for version management ([947b75a](https://github.com/patrickkabwe/create-nitro-module/commit/947b75a65bd3a23afd73f7bc4ed1e870ac2b284b)) +- refine artifact naming in GitHub workflows for consistency ([0edc112](https://github.com/patrickkabwe/create-nitro-module/commit/0edc11218ef4246c8998cf015ce30d462ba892f1)) +- remove generate-nitro-module and generate-nitro-views workflows from GitHub Actions ([15f3ad5](https://github.com/patrickkabwe/create-nitro-module/commit/15f3ad554c0ef7375e66c26aa7cae42ccb6e4417)) +- remove npm from package manager matrix in GitHub workflows ([a5f2dd4](https://github.com/patrickkabwe/create-nitro-module/commit/a5f2dd4de11a999a71b752481454b665fe711b9f)) +- rename generate-nitro-module to nitro-package ([7431ece](https://github.com/patrickkabwe/create-nitro-module/commit/7431ece019983664d2e9759710b5de025c572ea8)) +- simplify artifact naming in GitHub workflows by removing package manager from the name ([1af2d24](https://github.com/patrickkabwe/create-nitro-module/commit/1af2d2497208c9dec6ceee2034d5b1c043ebee83)) +- update artifact naming in GitHub workflows for clarity ([d0222f8](https://github.com/patrickkabwe/create-nitro-module/commit/d0222f815f487ffdec58088420e07287ce523fea)) +- update artifact naming in GitHub workflows for clarity ([fa7b444](https://github.com/patrickkabwe/create-nitro-module/commit/fa7b4445648e331f9135a67546abe7c594c468a0)) +- update artifact naming in GitHub workflows to include package manager in the name ([e8a88b5](https://github.com/patrickkabwe/create-nitro-module/commit/e8a88b5590b11f7ce63df2a444179ea5f74db6e2)) +- update artifact naming in GitHub workflows to remove package manager from the name ([4cb84c6](https://github.com/patrickkabwe/create-nitro-module/commit/4cb84c6a585f3dfa1460d0d3a54ca3e335e82b57)) +- update dependencies and refactor CLI entry points ([9078e13](https://github.com/patrickkabwe/create-nitro-module/commit/9078e13431cf1636dcb24bed4ad31ac98269ec9e)) +- update GitHub workflow to support npm alongside bun and yarn ([a702640](https://github.com/patrickkabwe/create-nitro-module/commit/a70264080b1266a258a74476ca29bef3d26c1183)) +- update publishConfig in package.json to set access to public ([ea03bb0](https://github.com/patrickkabwe/create-nitro-module/commit/ea03bb0e7ec62f2fc6ab61b639770680db4f6a7e)) +- update workflow to conditionally use bun for npm package creation ([dbef309](https://github.com/patrickkabwe/create-nitro-module/commit/dbef3098b85fa0527289c0c9d3888a83989af2c5)) +- use capitalize function ([b6e4e3e](https://github.com/patrickkabwe/create-nitro-module/commit/b6e4e3ed5bae6ec279626f825c501ae2e4fcd8ad)) ## [2.0.0-next.1](https://github.com/patrickkabwe/create-nitro-module/compare/v1.8.11-next.3...v2.0.0-next.1) (2025-05-29) ### ⚠ BREAKING CHANGES -* use `@clack/prompts` to handle prompts +- use `@clack/prompts` to handle prompts ### ✨ Features -* use `@clack/prompts` to handle prompts ([31d414c](https://github.com/patrickkabwe/create-nitro-module/commit/31d414c376084d06afe181e01cff985870340524)) +- use `@clack/prompts` to handle prompts ([31d414c](https://github.com/patrickkabwe/create-nitro-module/commit/31d414c376084d06afe181e01cff985870340524)) ## [1.8.10](https://github.com/patrickkabwe/create-nitro-module/compare/v1.8.9...v1.8.10) (2025-05-29) ### 🛠️ Other changes -* **deps:** bump commander from 13.1.0 to 14.0.0 ([fefc5a7](https://github.com/patrickkabwe/create-nitro-module/commit/fefc5a7ffe2123745f91bb690e6ad6d8e5d89b69)) -* **deps:** bump inquirer from 12.6.1 to 12.6.3 ([3635eb6](https://github.com/patrickkabwe/create-nitro-module/commit/3635eb696f69d3183d6f8625d8e0fe4776fb5aab)) -* **deps:** bump tsup from 8.4.0 to 8.5.0 ([ae53634](https://github.com/patrickkabwe/create-nitro-module/commit/ae53634dd4f68a65299ba10d26027f404cb4855e)) +- **deps:** bump commander from 13.1.0 to 14.0.0 ([fefc5a7](https://github.com/patrickkabwe/create-nitro-module/commit/fefc5a7ffe2123745f91bb690e6ad6d8e5d89b69)) +- **deps:** bump inquirer from 12.6.1 to 12.6.3 ([3635eb6](https://github.com/patrickkabwe/create-nitro-module/commit/3635eb696f69d3183d6f8625d8e0fe4776fb5aab)) +- **deps:** bump tsup from 8.4.0 to 8.5.0 ([ae53634](https://github.com/patrickkabwe/create-nitro-module/commit/ae53634dd4f68a65299ba10d26027f404cb4855e)) ## [1.8.9](https://github.com/patrickkabwe/create-nitro-module/compare/v1.8.8...v1.8.9) (2025-05-29) ### 🛠️ Other changes -* **deps-dev:** bump conventional-changelog-conventionalcommits ([e09671d](https://github.com/patrickkabwe/create-nitro-module/commit/e09671d0ba48809ab67a79b8aa7b17eb89b9bff2)) +- **deps-dev:** bump conventional-changelog-conventionalcommits ([e09671d](https://github.com/patrickkabwe/create-nitro-module/commit/e09671d0ba48809ab67a79b8aa7b17eb89b9bff2)) ## [1.8.8](https://github.com/patrickkabwe/create-nitro-module/compare/v1.8.7...v1.8.8) (2025-05-25) ### 🛠️ Other changes -* **deps-dev:** bump eslint from 9.26.0 to 9.27.0 ([5849ca4](https://github.com/patrickkabwe/create-nitro-module/commit/5849ca45b9539400306968ad6e4b63d69a991604)) -* **deps-dev:** bump semantic-release from 24.2.3 to 24.2.4 ([04db9cc](https://github.com/patrickkabwe/create-nitro-module/commit/04db9cc93df7a860ac25953c4e0b6cd26c1c5a08)) +- **deps-dev:** bump eslint from 9.26.0 to 9.27.0 ([5849ca4](https://github.com/patrickkabwe/create-nitro-module/commit/5849ca45b9539400306968ad6e4b63d69a991604)) +- **deps-dev:** bump semantic-release from 24.2.3 to 24.2.4 ([04db9cc](https://github.com/patrickkabwe/create-nitro-module/commit/04db9cc93df7a860ac25953c4e0b6cd26c1c5a08)) ## [1.8.7](https://github.com/patrickkabwe/create-nitro-module/compare/v1.8.6...v1.8.7) (2025-05-24) ### 🛠️ Other changes -* **deps-dev:** bump @types/node from 22.15.17 to 22.15.21 ([422f1b9](https://github.com/patrickkabwe/create-nitro-module/commit/422f1b9cae7382d9ab5d4c823bb65bfd65b9d52b)) +- **deps-dev:** bump @types/node from 22.15.17 to 22.15.21 ([422f1b9](https://github.com/patrickkabwe/create-nitro-module/commit/422f1b9cae7382d9ab5d4c823bb65bfd65b9d52b)) ## [1.8.6](https://github.com/patrickkabwe/create-nitro-module/compare/v1.8.5...v1.8.6) (2025-05-19) ### 🐛 Bug Fixes -* release workflow ([2f8ddb8](https://github.com/patrickkabwe/create-nitro-module/commit/2f8ddb83c3b556754d704c24c19e8653303c2c53)) -* release workflow ([1d76a6f](https://github.com/patrickkabwe/create-nitro-module/commit/1d76a6faa971c2c490c6484bffe565941917d826)) +- release workflow ([2f8ddb8](https://github.com/patrickkabwe/create-nitro-module/commit/2f8ddb83c3b556754d704c24c19e8653303c2c53)) +- release workflow ([1d76a6f](https://github.com/patrickkabwe/create-nitro-module/commit/1d76a6faa971c2c490c6484bffe565941917d826)) ### 🛠️ Other changes -* update semantic-release configuration and dependencies ([f20c459](https://github.com/patrickkabwe/create-nitro-module/commit/f20c459c1b7db87b543edf28b6ff619b6816fc5d)) +- update semantic-release configuration and dependencies ([f20c459](https://github.com/patrickkabwe/create-nitro-module/commit/f20c459c1b7db87b543edf28b6ff619b6816fc5d)) # create-nitro-module @@ -537,26 +537,21 @@ - 7e2456d: ### Major Changes #### Features - - Added template to assets - Added generate-nitro-module functionality - Added new `--skip-install` flag to skip dependency installation #### Documentation - - Improved documentation #### Refactoring - - Organized code structure - Added file generator for each language #### Bug Fixes - - Fixed ignore paths #### Other - - Removed nitro-schema.json - Updated naming convention to follow nitro standards diff --git a/assets/react-native.config.js b/assets/react-native.config.js index 4f4a36e0..a289f922 100644 --- a/assets/react-native.config.js +++ b/assets/react-native.config.js @@ -5,14 +5,14 @@ const pkg = require('../package.json') * @type {import('@react-native-community/cli-types').Config} */ module.exports = { - project: { - ios: { - automaticPodsInstallation: true, + project: { + ios: { + automaticPodsInstallation: true, + }, }, - }, - dependencies: { - [pkg.name]: { - root: path.join(__dirname, '..'), + dependencies: { + [pkg.name]: { + root: path.join(__dirname, '..'), + }, }, - }, } diff --git a/assets/template/.github/dependabot.yml b/assets/template/.github/dependabot.yml index 9e7f79ac..0a1c94ad 100644 --- a/assets/template/.github/dependabot.yml +++ b/assets/template/.github/dependabot.yml @@ -50,3 +50,7 @@ updates: react-native: patterns: - '@react-native/*' + nitro: + patterns: + - 'nitro-codegen' + - 'react-native-nitro-modules' diff --git a/assets/template/.github/workflows/release.yml b/assets/template/.github/workflows/release.yml index eb87c5c4..d0818340 100644 --- a/assets/template/.github/workflows/release.yml +++ b/assets/template/.github/workflows/release.yml @@ -49,7 +49,7 @@ jobs: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_CONFIG_PROVENANCE: true GIT_AUTHOR_NAME: ${{ github.actor }} - GIT_AUTHOR_EMAIL: "${{ github.actor }}@users.noreply.github.com" + GIT_AUTHOR_EMAIL: '${{ github.actor }}@users.noreply.github.com' GIT_COMMITTER_NAME: ${{ github.actor }} - GIT_COMMITTER_EMAIL: "${{ github.actor }}@users.noreply.github.com" + GIT_COMMITTER_EMAIL: '${{ github.actor }}@users.noreply.github.com' run: bun release diff --git a/assets/template/.watchmanconfig b/assets/template/.watchmanconfig index 9e26dfee..0967ef42 100644 --- a/assets/template/.watchmanconfig +++ b/assets/template/.watchmanconfig @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/assets/template/nitro.json b/assets/template/nitro.json index f4b6d4bf..c5b02c16 100644 --- a/assets/template/nitro.json +++ b/assets/template/nitro.json @@ -1,19 +1,13 @@ { "$schema": "https://nitro.margelo.com/nitro.schema.json", - "cxxNamespace": [ - "$$cxxNamespace$$" - ], + "cxxNamespace": ["$$cxxNamespace$$"], "ios": { "iosModuleName": "$$iosModuleName$$" }, "android": { - "androidNamespace": [ - "$$androidNamespace$$" - ], + "androidNamespace": ["$$androidNamespace$$"], "androidCxxLibName": "$$androidCxxLibName$$" }, "autolinking": {}, - "ignorePaths": [ - "**/node_modules" - ] + "ignorePaths": ["**/node_modules"] } diff --git a/assets/template/release.config.cjs b/assets/template/release.config.cjs index e0ef2241..92d84b80 100644 --- a/assets/template/release.config.cjs +++ b/assets/template/release.config.cjs @@ -1,61 +1,60 @@ const rules = [ - { type: 'feat', release: 'minor', title: '✨ Features' }, - { type: 'fix', release: 'patch', title: '🐛 Bug Fixes' }, - { type: 'perf', release: 'patch', title: '💨 Performance Improvements' }, - { type: 'refactor', release: 'patch', title: '🔄 Code Refactors' }, - { type: 'docs', release: 'patch', title: '📚 Documentation' }, - { type: 'chore', release: 'patch', title: '🛠️ Other changes' }, + { type: 'feat', release: 'minor', title: '✨ Features' }, + { type: 'fix', release: 'patch', title: '🐛 Bug Fixes' }, + { type: 'perf', release: 'patch', title: '💨 Performance Improvements' }, + { type: 'refactor', release: 'patch', title: '🔄 Code Refactors' }, + { type: 'docs', release: 'patch', title: '📚 Documentation' }, + { type: 'chore', release: 'patch', title: '🛠️ Other changes' }, ] const sortMap = Object.fromEntries( - rules.map((rule, index) => [rule.title, index]) + rules.map((rule, index) => [rule.title, index]) ) /** * @type {import('semantic-release').GlobalConfig} */ module.exports = { - branches: ['main', { name: 'next', prerelease: 'next' }], - plugins: [ - [ - '@semantic-release/commit-analyzer', - { - preset: 'conventionalcommits', - releaseRules: [ - { breaking: true, release: 'major' }, - { revert: true, release: 'patch' }, - ].concat(rules.map(({ type, release }) => ({ type, release }))), - }, - ], - [ - '@semantic-release/release-notes-generator', - { - preset: 'conventionalcommits', - presetConfig: { - types: rules.map(({ type, title }) => ({ - type, - section: title, - })), - }, - writerOpts: { - commitGroupsSort: (a, z) => - sortMap[a.title] - sortMap[z.title], - }, - }, - ], - [ - '@semantic-release/changelog', - { - changelogFile: 'CHANGELOG.md', - }, - ], - '@semantic-release/npm', - '@semantic-release/github', - [ - '@semantic-release/git', - { - assets: ['package.json', 'CHANGELOG.md', 'example/package.json'], - }, - ], + branches: ['main', { name: 'next', prerelease: 'next' }], + plugins: [ + [ + '@semantic-release/commit-analyzer', + { + preset: 'conventionalcommits', + releaseRules: [ + { breaking: true, release: 'major' }, + { revert: true, release: 'patch' }, + ].concat(rules.map(({ type, release }) => ({ type, release }))), + }, ], + [ + '@semantic-release/release-notes-generator', + { + preset: 'conventionalcommits', + presetConfig: { + types: rules.map(({ type, title }) => ({ + type, + section: title, + })), + }, + writerOpts: { + commitGroupsSort: (a, z) => sortMap[a.title] - sortMap[z.title], + }, + }, + ], + [ + '@semantic-release/changelog', + { + changelogFile: 'CHANGELOG.md', + }, + ], + '@semantic-release/npm', + '@semantic-release/github', + [ + '@semantic-release/git', + { + assets: ['package.json', 'CHANGELOG.md', 'example/package.json'], + }, + ], + ], } diff --git a/docs/docs/intro.md b/docs/docs/intro.md index 27fa8634..615a246c 100644 --- a/docs/docs/intro.md +++ b/docs/docs/intro.md @@ -40,4 +40,4 @@ A CLI tool that simplifies creating React Native modules powered by Nitro Module │   └── tsconfig.json ├── bun.lockb └── package.json -``` \ No newline at end of file +``` diff --git a/docs/docs/troubleshooting.md b/docs/docs/troubleshooting.md index 9adc3889..01b09862 100644 --- a/docs/docs/troubleshooting.md +++ b/docs/docs/troubleshooting.md @@ -17,7 +17,6 @@ This section provides solutions to common issues you might encounter while using 2. **Missing Header Files** If Xcode reports missing header files, follow these steps: - - Clean the build folder in Xcode (`Product` -> `Clean Build Folder`). - Ensure all native dependencies are properly linked. - Rebuild the project. @@ -37,7 +36,6 @@ This section provides solutions to common issues you might encounter while using 2. **Missing Dependencies** If you encounter missing dependencies, check the following: - - Ensure `build.gradle` contains the correct dependencies. - Sync the project with Gradle files. - Invalidate caches and restart Android Studio. diff --git a/docs/docs/usage/_category_.json b/docs/docs/usage/_category_.json index 801cc358..39ac40fc 100644 --- a/docs/docs/usage/_category_.json +++ b/docs/docs/usage/_category_.json @@ -1,8 +1,8 @@ { - "label": "Usage", - "position": 2, - "link": { - "type": "generated-index", - "description": "Learn how to use the create nitro module in your project." - } -} \ No newline at end of file + "label": "Usage", + "position": 2, + "link": { + "type": "generated-index", + "description": "Learn how to use the create nitro module in your project." + } +} diff --git a/docs/docs/usage/create-an-app-with-nitro-module-setup.md b/docs/docs/usage/create-an-app-with-nitro-module-setup.md index 3b7d56db..5ae01eb9 100644 --- a/docs/docs/usage/create-an-app-with-nitro-module-setup.md +++ b/docs/docs/usage/create-an-app-with-nitro-module-setup.md @@ -40,11 +40,11 @@ MyNitroApp - **ios/**: Contains the iOS-specific code and configuration. - **src/**: Contains the source code of your React Native app. - **packages/**: Contains the JavaScript/TypeScript module packages. - - **my-nitro-module/**: Example of a nitro module. - - **_**_tests_**_/**: Contains test files. - - **android/**: Contains the Android native module implementation. - - **ios/**: Contains the iOS native module implementation. - - **src/**: Contains the native module specs. + - **my-nitro-module/**: Example of a nitro module. + - **\_**_tests_**\_/**: Contains test files. + - **android/**: Contains the Android native module implementation. + - **ios/**: Contains the iOS native module implementation. + - **src/**: Contains the native module specs. - **package.json**: Contains the metadata about the project and its dependencies. - **tsconfig.json**: Contains the TypeScript configuration. - **README.md**: Contains the documentation for your project. diff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.ts index b5627840..81c9abed 100644 --- a/docs/docusaurus.config.ts +++ b/docs/docusaurus.config.ts @@ -1,88 +1,87 @@ -import type * as Preset from '@docusaurus/preset-classic'; -import type { Config } from '@docusaurus/types'; -import { themes as prismThemes } from 'prism-react-renderer'; -import packageJson from '../package.json'; +import type * as Preset from '@docusaurus/preset-classic' +import type { Config } from '@docusaurus/types' +import { themes as prismThemes } from 'prism-react-renderer' +import packageJson from '../package.json' // This runs in Node.js - Don't use client-side code here (browser APIs, JSX...) const config: Config = { - title: 'Create Nitro Module', - tagline: packageJson.description, - favicon: 'img/favicon.ico', + title: 'Create Nitro Module', + tagline: packageJson.description, + favicon: 'img/favicon.ico', - // Set the production url of your site here - url: 'https://patrickkabwe.github.io', - // Set the // pathname under which your site is served - // For GitHub pages deployment, it is often '//' - baseUrl: '/create-nitro-module/', + // Set the production url of your site here + url: 'https://patrickkabwe.github.io', + // Set the // pathname under which your site is served + // For GitHub pages deployment, it is often '//' + baseUrl: '/create-nitro-module/', - // GitHub pages deployment config. - // If you aren't using GitHub pages, you don't need these. - organizationName: 'patrickkabwe', // Usually your GitHub org/user name. - projectName: 'create-nitro-module', // Usually your repo name. - trailingSlash: false, - onBrokenLinks: 'throw', - onBrokenMarkdownLinks: 'warn', + // GitHub pages deployment config. + // If you aren't using GitHub pages, you don't need these. + organizationName: 'patrickkabwe', // Usually your GitHub org/user name. + projectName: 'create-nitro-module', // Usually your repo name. + trailingSlash: false, + onBrokenLinks: 'throw', + onBrokenMarkdownLinks: 'warn', - // Even if you don't use internationalization, you can use this field to set - // useful metadata like html lang. For example, if your site is Chinese, you - // may want to replace "en" with "zh-Hans". - i18n: { - defaultLocale: 'en', - locales: ['en'], - }, + // Even if you don't use internationalization, you can use this field to set + // useful metadata like html lang. For example, if your site is Chinese, you + // may want to replace "en" with "zh-Hans". + i18n: { + defaultLocale: 'en', + locales: ['en'], + }, - presets: [ - [ - 'classic', - { - docs: { - sidebarPath: './sidebars.ts', - // Please change this to your repo. - // Remove this to remove the "edit this page" links. - editUrl: - 'https://github.com/patrickkabwe/create-nitro-module/edit/main/docs/', - }, - theme: { - customCss: './src/css/custom.css', - }, - } satisfies Preset.Options, + presets: [ + [ + 'classic', + { + docs: { + sidebarPath: './sidebars.ts', + // Please change this to your repo. + // Remove this to remove the "edit this page" links. + editUrl: + 'https://github.com/patrickkabwe/create-nitro-module/edit/main/docs/', + }, + theme: { + customCss: './src/css/custom.css', + }, + } satisfies Preset.Options, + ], ], - ], - themeConfig: { - // Replace with your project's social card - image: 'img/docusaurus-social-card.jpg', - navbar: { - title: 'Create Nitro Module', - // logo: { - // alt: 'My Site Logo', - // src: 'img/logo.svg', - // }, - items: [ - { - type: 'docSidebar', - sidebarId: 'tutorialSidebar', - position: 'right', - label: 'Tutorial', + themeConfig: { + // Replace with your project's social card + image: 'img/docusaurus-social-card.jpg', + navbar: { + title: 'Create Nitro Module', + // logo: { + // alt: 'My Site Logo', + // src: 'img/logo.svg', + // }, + items: [ + { + type: 'docSidebar', + sidebarId: 'tutorialSidebar', + position: 'right', + label: 'Tutorial', + }, + { + href: 'https://github.com/patrickkabwe/create-nitro-module', + label: 'GitHub', + position: 'right', + }, + ], }, - { - href: 'https://github.com/patrickkabwe/create-nitro-module', - label: 'GitHub', - position: 'right', + footer: { + style: 'dark', + copyright: `Copyright © ${new Date().getFullYear()} Patrick Kabwe.`, }, + prism: { + theme: prismThemes.github, + darkTheme: prismThemes.dracula, + }, + } satisfies Preset.ThemeConfig, +} - ], - }, - footer: { - style: 'dark', - copyright: `Copyright © ${new Date().getFullYear()} Patrick Kabwe.`, - }, - prism: { - theme: prismThemes.github, - darkTheme: prismThemes.dracula, - }, - } satisfies Preset.ThemeConfig, -}; - -export default config; +export default config diff --git a/docs/package.json b/docs/package.json index e463c6bd..760089bd 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,47 +1,47 @@ { - "name": "docs", - "version": "0.0.0", - "private": true, - "scripts": { - "docusaurus": "docusaurus", - "start": "docusaurus start", - "build": "docusaurus build", - "swizzle": "docusaurus swizzle", - "deploy": "docusaurus deploy", - "clear": "docusaurus clear", - "serve": "docusaurus serve", - "write-translations": "docusaurus write-translations", - "write-heading-ids": "docusaurus write-heading-ids", - "typecheck": "tsc" - }, - "dependencies": { - "@docusaurus/core": "3.6.3", - "@docusaurus/preset-classic": "3.6.3", - "@mdx-js/react": "^3.0.0", - "clsx": "^2.0.0", - "prism-react-renderer": "^2.3.0", - "react": "^18.0.0", - "react-dom": "^18.0.0" - }, - "devDependencies": { - "@docusaurus/module-type-aliases": "3.6.3", - "@docusaurus/tsconfig": "3.6.3", - "@docusaurus/types": "3.6.3", - "typescript": "~5.6.2" - }, - "browserslist": { - "production": [ - ">0.5%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 3 chrome version", - "last 3 firefox version", - "last 5 safari version" - ] - }, - "engines": { - "node": ">=18.0" - } + "name": "docs", + "version": "0.0.0", + "private": true, + "scripts": { + "docusaurus": "docusaurus", + "start": "docusaurus start", + "build": "docusaurus build", + "swizzle": "docusaurus swizzle", + "deploy": "docusaurus deploy", + "clear": "docusaurus clear", + "serve": "docusaurus serve", + "write-translations": "docusaurus write-translations", + "write-heading-ids": "docusaurus write-heading-ids", + "typecheck": "tsc" + }, + "dependencies": { + "@docusaurus/core": "3.6.3", + "@docusaurus/preset-classic": "3.6.3", + "@mdx-js/react": "^3.0.0", + "clsx": "^2.0.0", + "prism-react-renderer": "^2.3.0", + "react": "^18.0.0", + "react-dom": "^18.0.0" + }, + "devDependencies": { + "@docusaurus/module-type-aliases": "3.6.3", + "@docusaurus/tsconfig": "3.6.3", + "@docusaurus/types": "3.6.3", + "typescript": "~5.6.2" + }, + "browserslist": { + "production": [ + ">0.5%", + "not dead", + "not op_mini all" + ], + "development": [ + "last 3 chrome version", + "last 3 firefox version", + "last 5 safari version" + ] + }, + "engines": { + "node": ">=18.0" + } } diff --git a/docs/sidebars.ts b/docs/sidebars.ts index 28971397..201829eb 100644 --- a/docs/sidebars.ts +++ b/docs/sidebars.ts @@ -1,4 +1,4 @@ -import type {SidebarsConfig} from '@docusaurus/plugin-content-docs'; +import type { SidebarsConfig } from '@docusaurus/plugin-content-docs' // This runs in Node.js - Don't use client-side code here (browser APIs, JSX...) @@ -13,11 +13,11 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs'; Create as many sidebars as you want. */ const sidebars: SidebarsConfig = { - // By default, Docusaurus generates a sidebar from the docs folder structure - tutorialSidebar: [{type: 'autogenerated', dirName: '.'}], + // By default, Docusaurus generates a sidebar from the docs folder structure + tutorialSidebar: [{ type: 'autogenerated', dirName: '.' }], - // But you can create a sidebar manually - /* + // But you can create a sidebar manually + /* tutorialSidebar: [ 'intro', 'hello', @@ -28,6 +28,6 @@ const sidebars: SidebarsConfig = { }, ], */ -}; +} -export default sidebars; +export default sidebars diff --git a/docs/src/components/HomepageFeatures/index.tsx b/docs/src/components/HomepageFeatures/index.tsx index 205b7b8a..a9aa74f6 100644 --- a/docs/src/components/HomepageFeatures/index.tsx +++ b/docs/src/components/HomepageFeatures/index.tsx @@ -4,68 +4,68 @@ import { JSX } from 'react' import styles from './styles.module.css' type FeatureItem = { - title: string - Svg: React.ComponentType> - description: JSX.Element + title: string + Svg: React.ComponentType> + description: JSX.Element } const FeatureList: FeatureItem[] = [ - { - title: 'Easy to Use', - Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, - description: ( - <> - Nitro Module CLI was designed to simplify the creation of React Native - modules, making it easy to get started quickly. - - ), - }, - { - title: 'Streamlined Development', - Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default, - description: ( - <> - Nitro Module CLI lets you focus on developing your modules, while it - handles the setup and configuration. - - ), - }, - { - title: 'Powered by Nitro Modules', - Svg: require('@site/static/img/undraw_docusaurus_react.svg').default, - description: ( - <> - A framework to build mindblowingly fast native modules with type-safe - statically compiled JS bindings. - - ), - }, + { + title: 'Easy to Use', + Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, + description: ( + <> + Nitro Module CLI was designed to simplify the creation of React + Native modules, making it easy to get started quickly. + + ), + }, + { + title: 'Streamlined Development', + Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default, + description: ( + <> + Nitro Module CLI lets you focus on developing your modules, + while it handles the setup and configuration. + + ), + }, + { + title: 'Powered by Nitro Modules', + Svg: require('@site/static/img/undraw_docusaurus_react.svg').default, + description: ( + <> + A framework to build mindblowingly fast native modules with + type-safe statically compiled JS bindings. + + ), + }, ] function Feature({ title, Svg, description }: FeatureItem) { - return ( -
-
- -
-
- {title} -

{description}

-
-
- ) + return ( +
+
+ +
+
+ {title} +

{description}

+
+
+ ) } export default function HomepageFeatures(): JSX.Element { - return ( -
-
-
- {FeatureList.map((props, idx) => ( - - ))} -
-
-
- ) + return ( +
+
+
+ {FeatureList.map((props, idx) => ( + + ))} +
+
+
+ ) } diff --git a/docs/src/components/HomepageFeatures/styles.module.css b/docs/src/components/HomepageFeatures/styles.module.css index b248eb2e..509d8c75 100644 --- a/docs/src/components/HomepageFeatures/styles.module.css +++ b/docs/src/components/HomepageFeatures/styles.module.css @@ -1,11 +1,11 @@ .features { - display: flex; - align-items: center; - padding: 2rem 0; - width: 100%; + display: flex; + align-items: center; + padding: 2rem 0; + width: 100%; } .featureSvg { - height: 200px; - width: 200px; + height: 200px; + width: 200px; } diff --git a/docs/src/css/custom.css b/docs/src/css/custom.css index 2bc6a4cf..5a40f229 100644 --- a/docs/src/css/custom.css +++ b/docs/src/css/custom.css @@ -6,25 +6,25 @@ /* You can override the default Infima variables here. */ :root { - --ifm-color-primary: #2e8555; - --ifm-color-primary-dark: #29784c; - --ifm-color-primary-darker: #277148; - --ifm-color-primary-darkest: #205d3b; - --ifm-color-primary-light: #33925d; - --ifm-color-primary-lighter: #359962; - --ifm-color-primary-lightest: #3cad6e; - --ifm-code-font-size: 95%; - --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); + --ifm-color-primary: #2e8555; + --ifm-color-primary-dark: #29784c; + --ifm-color-primary-darker: #277148; + --ifm-color-primary-darkest: #205d3b; + --ifm-color-primary-light: #33925d; + --ifm-color-primary-lighter: #359962; + --ifm-color-primary-lightest: #3cad6e; + --ifm-code-font-size: 95%; + --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); } /* For readability concerns, you should choose a lighter palette in dark mode. */ [data-theme='dark'] { - --ifm-color-primary: #25c2a0; - --ifm-color-primary-dark: #21af90; - --ifm-color-primary-darker: #1fa588; - --ifm-color-primary-darkest: #1a8870; - --ifm-color-primary-light: #29d5b0; - --ifm-color-primary-lighter: #32d8b4; - --ifm-color-primary-lightest: #4fddbf; - --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); + --ifm-color-primary: #25c2a0; + --ifm-color-primary-dark: #21af90; + --ifm-color-primary-darker: #1fa588; + --ifm-color-primary-darkest: #1a8870; + --ifm-color-primary-light: #29d5b0; + --ifm-color-primary-lighter: #32d8b4; + --ifm-color-primary-lightest: #4fddbf; + --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); } diff --git a/docs/src/pages/index.module.css b/docs/src/pages/index.module.css index 9f71a5da..b1fb774d 100644 --- a/docs/src/pages/index.module.css +++ b/docs/src/pages/index.module.css @@ -4,20 +4,20 @@ */ .heroBanner { - padding: 4rem 0; - text-align: center; - position: relative; - overflow: hidden; + padding: 4rem 0; + text-align: center; + position: relative; + overflow: hidden; } @media screen and (max-width: 996px) { - .heroBanner { - padding: 2rem; - } + .heroBanner { + padding: 2rem; + } } .buttons { - display: flex; - align-items: center; - justify-content: center; + display: flex; + align-items: center; + justify-content: center; } diff --git a/docs/src/pages/index.tsx b/docs/src/pages/index.tsx index 1363cfa5..dcccdeea 100644 --- a/docs/src/pages/index.tsx +++ b/docs/src/pages/index.tsx @@ -9,38 +9,38 @@ import { JSX } from 'react' import styles from './index.module.css' function HomepageHeader() { - const { siteConfig } = useDocusaurusContext() - return ( -
-
- - {siteConfig.title} - -

{siteConfig.tagline}

-
- - Get Started - -
-
-
- ) + const { siteConfig } = useDocusaurusContext() + return ( +
+
+ + {siteConfig.title} + +

{siteConfig.tagline}

+
+ + Get Started + +
+
+
+ ) } export default function Home(): JSX.Element { - const { siteConfig } = useDocusaurusContext() - return ( - - -
- -
-
- ) + const { siteConfig } = useDocusaurusContext() + return ( + + +
+ +
+
+ ) } diff --git a/docs/tsconfig.json b/docs/tsconfig.json index 920d7a65..f79b8056 100644 --- a/docs/tsconfig.json +++ b/docs/tsconfig.json @@ -1,8 +1,8 @@ { - // This file is not used in compilation. It is here just for a nice editor experience. - "extends": "@docusaurus/tsconfig", - "compilerOptions": { - "baseUrl": "." - }, - "exclude": [".docusaurus", "build"] + // This file is not used in compilation. It is here just for a nice editor experience. + "extends": "@docusaurus/tsconfig", + "compilerOptions": { + "baseUrl": "." + }, + "exclude": [".docusaurus", "build"] } diff --git a/e2e-tests/view.e2e.yaml b/e2e-tests/view.e2e.yaml index e2606882..b04c66ac 100644 --- a/e2e-tests/view.e2e.yaml +++ b/e2e-tests/view.e2e.yaml @@ -2,4 +2,4 @@ appId: ${APP_ID} --- - launchApp - assertVisible: - id: 'test-view' \ No newline at end of file + id: 'test-view' diff --git a/lefthook.yml b/lefthook.yml index b4cc9981..8af7fa53 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -1,20 +1,20 @@ commit-msg: - commands: - commitlint: - run: bun commitlint {1} - + commands: + commitlint: + run: bun commitlint {1} + pre-commit: - parallel: true - commands: - lint: - glob: - - "*.json" - - "*.ts" - - "*.tsx" - run: bun lint {staged_files} - format: - glob: - - "*.json" - - "*.ts" - - "*.tsx" - run: bun format {staged_files} \ No newline at end of file + parallel: true + commands: + lint: + glob: + - '*.json' + - '*.ts' + - '*.tsx' + run: bun lint {staged_files} + format: + glob: + - '*.json' + - '*.ts' + - '*.tsx' + run: bun format {staged_files} diff --git a/src/generate-nitro-package.ts b/src/generate-nitro-package.ts index b2729827..fa12cfee 100644 --- a/src/generate-nitro-package.ts +++ b/src/generate-nitro-package.ts @@ -193,9 +193,19 @@ export class NitroModuleFactory { newWorkspacePackageJsonFile.devDependencies = { ...newWorkspacePackageJsonFile.devDependencies, 'react-native-nitro-modules': - nitroModulesVersion ?? newWorkspacePackageJsonFile.devDependencies?.['react-native-nitro-modules'] ?? templatePackageJson.devDependencies['react-native-nitro-modules'], + nitroModulesVersion ?? + newWorkspacePackageJsonFile.devDependencies?.[ + 'react-native-nitro-modules' + ] ?? + templatePackageJson.devDependencies[ + 'react-native-nitro-modules' + ], 'nitro-codegen': - nitroCodegenVersion ?? newWorkspacePackageJsonFile.devDependencies?.['nitro-codegen'] ?? templatePackageJson.devDependencies['nitro-codegen'], + nitroCodegenVersion ?? + newWorkspacePackageJsonFile.devDependencies?.[ + 'nitro-codegen' + ] ?? + templatePackageJson.devDependencies['nitro-codegen'], } newWorkspacePackageJsonFile.keywords = [ diff --git a/src/nitro-spinner.ts b/src/nitro-spinner.ts index f602bab0..075174d1 100644 --- a/src/nitro-spinner.ts +++ b/src/nitro-spinner.ts @@ -15,7 +15,7 @@ export class NitroSpinner { private isSpinning: boolean private spinnerInterval: NodeJS.Timeout | null private readonly stdout: NodeJS.WriteStream - public text: string = "" + public text: string = '' constructor(options: LoggerOptions = {}) { this.frames = options.frames ?? [ diff --git a/tsconfig.json b/tsconfig.json index ffe55883..721287a3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,14 +1,14 @@ { - "compilerOptions": { - "target": "es2021", - "module": "ESNext", - "outDir": "lib", - "moduleResolution": "bundler", - "strict": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "skipLibCheck": false - }, - "include": ["src"], - "exclude": ["node_modules", "lib", "docs"] + "compilerOptions": { + "target": "es2021", + "module": "ESNext", + "outDir": "lib", + "moduleResolution": "bundler", + "strict": true, + "resolveJsonModule": true, + "esModuleInterop": true, + "skipLibCheck": false + }, + "include": ["src"], + "exclude": ["node_modules", "lib", "docs"] } diff --git a/tsup.config.ts b/tsup.config.ts index efac8aeb..1502257a 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -1,9 +1,9 @@ import { defineConfig } from 'tsup' export default defineConfig({ - entry: ['src/cli.ts'], - format: ['esm'], - clean: true, - shims: true, - outDir: 'lib', + entry: ['src/cli.ts'], + format: ['esm'], + clean: true, + shims: true, + outDir: 'lib', }) From 41200c781c53947052c983e418e68c6409490a6d Mon Sep 17 00:00:00 2001 From: Patrick Kabwe Date: Sat, 6 Sep 2025 07:55:52 +0200 Subject: [PATCH 3/3] refactor: streamline dependency version resolution for nitro tools --- src/generate-nitro-package.ts | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/src/generate-nitro-package.ts b/src/generate-nitro-package.ts index fa12cfee..e5e9fb3a 100644 --- a/src/generate-nitro-package.ts +++ b/src/generate-nitro-package.ts @@ -185,27 +185,23 @@ export class NitroModuleFactory { } // Resolve and pin latest Nitro tools to concrete versions + const nitroGen = 'nitro-codegen' + const nitroModules = 'react-native-nitro-modules' const [nitroModulesVersion, nitroCodegenVersion] = await Promise.all([ - this.getLatestVersion('react-native-nitro-modules'), - this.getLatestVersion('nitro-codegen'), + this.getLatestVersion(nitroModules), + this.getLatestVersion(nitroGen), ]) this.nitroModulesVersion = nitroModulesVersion newWorkspacePackageJsonFile.devDependencies = { ...newWorkspacePackageJsonFile.devDependencies, - 'react-native-nitro-modules': + [nitroModules]: nitroModulesVersion ?? - newWorkspacePackageJsonFile.devDependencies?.[ - 'react-native-nitro-modules' - ] ?? - templatePackageJson.devDependencies[ - 'react-native-nitro-modules' - ], - 'nitro-codegen': + newWorkspacePackageJsonFile.devDependencies?.[nitroModules] ?? + templatePackageJson.devDependencies[nitroModules], + [nitroGen]: nitroCodegenVersion ?? - newWorkspacePackageJsonFile.devDependencies?.[ - 'nitro-codegen' - ] ?? - templatePackageJson.devDependencies['nitro-codegen'], + newWorkspacePackageJsonFile.devDependencies?.[nitroGen] ?? + templatePackageJson.devDependencies[nitroGen], } newWorkspacePackageJsonFile.keywords = [