Skip to content

chore(examples): cleanup and update examples - #389

Merged
panz3r merged 7 commits into
mainfrom
chore/cleanup-and-update-examples
Sep 10, 2026
Merged

chore(examples): cleanup and update examples#389
panz3r merged 7 commits into
mainfrom
chore/cleanup-and-update-examples

Conversation

@panz3r

@panz3r panz3r commented Sep 10, 2026

Copy link
Copy Markdown
Member

Affected Package(s)

  • @forward-software/react-auth (lib)
  • @forward-software/react-auth-google (packages/google-signin)
  • Examples
  • CI/CD / Repository configuration

Motivation

This pull request updates dependencies and development tools across several example projects to ensure compatibility with newer versions and to incorporate the latest features and bug fixes. The most significant changes are grouped below by theme.

These updates help keep the example projects current, reduce potential security vulnerabilities, and ensure smoother development and testing workflows.

Description of Changes

Dependency Updates:

  • Upgraded @forward-software/react-auth to version 2.1.2 in all example projects for consistency and access to recent improvements. [1] [2] [3] [4] [5]
  • Updated react and react-dom to the latest 19.x versions in all examples, and bumped react-native to 0.81.5 in the Expo example. [1] [2] [3] [4]
  • Upgraded axios to ^1.20.0 where applicable. [1] [2] [3]

Development Tooling Updates:

  • Bumped typescript to ^7.0.2 in most projects (except Expo, which is now at ~5.9.2), and updated related type packages. [1] [2] [3] [4] [5]
  • Upgraded various dev dependencies such as @vitejs/plugin-react, vite, eslint, and testing libraries to their latest versions for improved development experience and compatibility. [1] [2] [3]

Configuration Changes:

  • Removed the baseUrl property from tsconfig.json in the base, refresh-token, and reqres examples to clean up TypeScript configuration.

Breaking Changes

None

How to Test

  1. CI Checks: Verify that all automated tests (Vitest) and build steps pass successfully on this PR.
  2. Local Verification (Optional):
    • Run pnpm install to install dependencies.
    • Run pnpm --filter <affected-package> test to run tests for the affected package.
    • Run pnpm --filter <affected-package> build to verify the build succeeds.
    • Run pnpm --filter <affected-package> lint to check for linting errors.

Checklist

  • My code follows the project's style guidelines
  • I have added or updated tests to cover the changes
  • I have updated relevant documentation
  • All tests are passing locally
  • CI checks are passing
  • I have reviewed my own code and lock file changes
  • I have checked for any potential security implications
  • I have verified the changes work as expected
  • My commit messages follow Conventional Commits format

Notes for Reviewers

Bump @forward-software/react-auth to 2.1.2 and typescript to ^7.0.2.
TypeScript 7 removes the baseUrl option, so it was dropped from
tsconfig.json (paths are already relative, resolution is unaffected).
Bump @forward-software/react-auth to 2.1.2, axios to ^1.20.0, react/
react-dom to ^19.3.0, and typescript to ^7.0.2. TypeScript 7 removes
the baseUrl option, so it was dropped from tsconfig.json (paths are
already relative, resolution is unaffected).
Bump @forward-software/react-auth to 2.1.2, axios to ^1.20.0, react/
react-dom to ^19.3.0, @vitejs/plugin-react to ^6.1.1, vite to ^8.2.2,
and typescript to ^7.0.2. TypeScript 7 removes the baseUrl option, so
it was dropped from tsconfig.json (paths are already relative,
resolution is unaffected).
Bump @forward-software/react-auth to 2.1.2, react/react-dom to
^19.3.0, @testing-library/jest-dom to ^7.0.1, @testing-library/react
to ^16.3.3, @types/react and @types/react-dom to ^19.3.0,
@vitejs/plugin-react to ^6.1.1, jsdom to ^30.0.1, typescript to
^7.0.2, vite to ^8.2.2, and vitest to ^5.0.0. Build and test suite
verified passing with no code changes required.
Bump @forward-software/react-auth to 2.1.2, react/react-dom to
19.1.0 (required by react-native 0.81.5 peer dep), react-native to
0.81.5, @types/react to ~19.1.10, axios to ^1.20.0,
babel-plugin-module-resolver to ^5.0.3, and eslint to ^9.39.5 (kept
on 9.x; eslint-config-expo's bundled plugins do not yet support
eslint 10). typescript downgraded from ^6.0.0 to ~5.9.2 per
'expo install --check' recommendation for SDK 54 compatibility.
eslint-config-expo and @expo/vector-icons left unchanged (already
current for this Expo SDK generation / not flagged by expo tooling).

Verified with 'expo install --check' (all packages aligned),
'expo-doctor' (18/18 checks passed), and 'tsc --noEmit' (no errors).
'expo lint' fails with a pre-existing
EslintPluginImportResolveError unrelated to this change (reproduces
identically on the original, unbumped dependency set).
@panz3r panz3r self-assigned this Sep 10, 2026
Copilot AI lite review requested due to automatic review settings September 10, 2026 14:07
@panz3r panz3r added enhancement New feature or request examples Changes to example projects/packages labels Sep 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Several example tsconfig.json files now use compilerOptions.paths without baseUrl, which will cause TypeScript configuration errors and break the intended local aliasing.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR refreshes the example apps’ dependencies/tooling (React 19.x, Axios, TypeScript, Vite/Vitest, etc.), aligns all examples on @forward-software/react-auth@2.1.2, and performs some config cleanup to keep the examples current and easier to maintain outside the workspace.

Changes:

  • Bumped runtime/dev dependencies across the example projects (React/React DOM, Axios, TypeScript, Vite/Vitest, testing libs).
  • Removed baseUrl from multiple example tsconfig.json files while keeping compilerOptions.paths mappings.
  • Removed the Showcase example’s pnpm-lock.yaml and added repo-level .gitignore rules for examples’ lockfiles/build outputs.
File summaries
File Description
examples/showcase/pnpm-lock.yaml Removed the Showcase example’s pnpm lockfile.
examples/showcase/package.json Updated Showcase example deps/devDeps (React/Auth lib/tooling).
examples/reqres/tsconfig.json Removed baseUrl from TS config while keeping paths mapping.
examples/reqres/package.json Updated ReqRes example deps (auth lib, axios, React) and TS version.
examples/refresh-token/tsconfig.json Removed baseUrl from TS config while keeping paths mapping.
examples/refresh-token/package.json Updated Refresh Token example deps/devDeps (auth lib, axios, tooling).
examples/expo/package.json Updated Expo example deps/devDeps (auth lib, axios, React/RN, lint/TS).
examples/base/tsconfig.json Removed baseUrl from TS config while keeping paths mapping.
examples/base/package.json Updated Base example deps (auth lib) and TS version.
.gitignore Added ignore rules for examples’ lockfiles, node_modules, and dist outputs.
Review details

Files not reviewed (1)

  • examples/showcase/pnpm-lock.yaml: Generated file
  • Files reviewed: 8/10 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread examples/base/tsconfig.json
Comment thread examples/refresh-token/tsconfig.json
Comment thread examples/reqres/tsconfig.json
@panz3r panz3r changed the title Chore/cleanup and update examples chore(examples): cleanup and update examples Sep 10, 2026
@panz3r
panz3r merged commit 68bd2bf into main Sep 10, 2026
17 checks passed
@panz3r
panz3r deleted the chore/cleanup-and-update-examples branch September 10, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request examples Changes to example projects/packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants