Skip to content

Commit 10e1196

Browse files
chore: addition of changelog and manifest upgrade (#59)
* feat: introducing 31 new react sdk samples (#58) * feat: introducing 31 react sdk samples * fix: removed old references of mock-data * chore: bump version 1.1.2 to ul-context-inspector, workflow unbuntu * chore: stable version acul sdk integration * chore: package upgrade and ubuntu fix * refactor: move mocks to screen-specific extra_files
1 parent beff1ea commit 10e1196

File tree

4 files changed

+382
-39
lines changed

4 files changed

+382
-39
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ lerna-debug.log*
2727
coverage/
2828
*.lcov
2929

30-
# Documentation
31-
docs/
32-
3330
# Operating system files
3431
.DS_Store
3532
.DS_Store?

CHANGELOG.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
---
8+
9+
## [v2.0.0] - 2025-11-24
10+
11+
### Added
12+
13+
- **Monorepo structure** with framework-specific samples:
14+
- `react/` - Auth0 ACUL React SDK sample
15+
- `react-js/` - Auth0 ACUL JS/TS SDK sample
16+
- Centralized documentation in `/docs/` folder
17+
- Migration guide for upgrading from v1.x to v2.0.0
18+
- Per-sample `package.json` and build scripts
19+
- Standardized setup and configuration across samples
20+
21+
### Changed
22+
23+
- Repository restructured from single-sample to monorepo layout
24+
- Each sample now has its own dependencies and scripts
25+
- Updated documentation to reflect new folder structure
26+
- Improved CI/CD pipeline for multi-sample validation
27+
28+
### Breaking Changes
29+
30+
- **Folder structure**: Sample code moved into framework-specific folders (`/react/`, `/react-js/`)
31+
- **Scripts**: Each sample has its own `package.json` - run commands from the respective sample directory
32+
- **Dependencies**: Version bumps and reorganized modules - check each sample's `package.json`
33+
- **Documentation**: Moved into `/docs/` folder
34+
35+
### Migration
36+
37+
See [Migration Guide](./docs/migration-plan.md) for detailed upgrade instructions from v1.x to v2.0.0.
38+
39+
---
40+
41+
## [v1.0.0] - 2025-10-27
42+
43+
### Added
44+
45+
- Initial release of the Auth0 ACUL sample app
46+
- Single auth0-acul-js SDK integration example
47+
- Basic documentation and setup instructions
48+
49+
### Deprecated
50+
51+
- This version is now superseded by **v2.0.0 (monorepo)** release
52+
- v1.0.0 remains available for legacy projects via `git checkout v1.0.0`
53+
54+
---
55+
56+
## How to Use This Changelog
57+
58+
- **[Unreleased]** - Changes that are in development but not yet released
59+
- **[vX.Y.Z]** - Released versions with date
60+
- **Added** - New features
61+
- **Changed** - Changes in existing functionality
62+
- **Deprecated** - Soon-to-be removed features
63+
- **Removed** - Removed features
64+
- **Fixed** - Bug fixes
65+
- **Security** - Security fixes

docs/migration-plan.md

Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
# Migration Guide — v1.x → v2.0.0 (Monorepo)
2+
3+
## Overview
4+
5+
Starting from **v2.0.0**, this repository has been restructured into a **monorepo**.
6+
Each framework-specific sample now lives under its own folder at the repository root.
7+
8+
```
9+
/react/ → React SDK sample
10+
/react-js/ → JS/TS SDK sample
11+
/docs/ → Documentation and migration guides
12+
```
13+
14+
---
15+
16+
## Why This Change?
17+
18+
- To simplify maintaining multiple samples in one repository
19+
- To reduce duplication and standardize setup/configuration
20+
- To enable automated releases and changelogs
21+
- To support CI/CD pipelines for sample validation
22+
23+
---
24+
25+
## How to Stay on the Old Version
26+
27+
If your existing projects depend on the old structure:
28+
29+
```bash
30+
git checkout v1.0.0
31+
```
32+
33+
That version will remain available indefinitely as the last **v1.x (legacy)** release.
34+
35+
---
36+
37+
## Breaking Changes
38+
39+
| Area | Change | Notes |
40+
| ---------------- | ------------------------------------------------------ | --------------------------------------------- |
41+
| Folder structure | Sample code moved into framework-specific folders | Adjust your paths and setup steps accordingly |
42+
| Scripts | Each sample now has its own `package.json` and scripts | Run commands per sample directory |
43+
| Dependencies | Version bumps and reorganized modules | Check each sample's `package.json` |
44+
| Documentation | Moved into `/docs/` | Updated setup and run instructions |
45+
46+
---
47+
48+
## Migration Steps
49+
50+
### 1. Update Your Local Repository
51+
52+
```bash
53+
# Fetch the latest changes
54+
git fetch origin
55+
56+
# Switch to v2.0.0
57+
git checkout v2.0.0
58+
# or
59+
git checkout feat/monorepo-conversion-samples
60+
```
61+
62+
### 2. Choose Your Sample
63+
64+
Navigate to the appropriate sample directory:
65+
66+
```bash
67+
# For React SDK sample
68+
cd react/
69+
70+
# OR for JS/TS SDK sample
71+
cd react-js/
72+
```
73+
74+
### 3. Install Dependencies
75+
76+
Each sample has its own dependencies:
77+
78+
```bash
79+
npm install
80+
```
81+
82+
### 4. Update Your Scripts
83+
84+
Old v1.x commands:
85+
86+
```bash
87+
npm run dev
88+
npm run build
89+
npm test
90+
```
91+
92+
New v2.0.0 commands (run from sample directory):
93+
94+
```bash
95+
# Development
96+
npm run dev
97+
98+
# Build
99+
npm run build
100+
101+
# Test
102+
npm test
103+
104+
# Lint
105+
npm run lint
106+
```
107+
108+
### 5. Review Documentation
109+
110+
- Check the sample's local `README.md` for specific setup instructions
111+
- Refer to `/docs/` for additional guides and documentation
112+
- Review [CHANGELOG.md](../CHANGELOG.md) for detailed updates
113+
114+
---
115+
116+
## What Changed Per Sample
117+
118+
### React SDK Sample (`/react/`)
119+
120+
- Uses `@auth0/auth0-acul-react` SDK
121+
- 31 screens implemented
122+
- Full React 19 + TypeScript + Vite setup
123+
- Tailwind CSS v4 styling
124+
125+
### JS/TS SDK Sample (`/react-js/`)
126+
127+
- Uses `@auth0/auth0-acul-js` SDK
128+
- 3 screens implemented (production-ready)
129+
- React 19 + TypeScript + Vite
130+
- Tailwind CSS v4 styling
131+
132+
---
133+
134+
## Common Issues
135+
136+
### Issue: Cannot find module after upgrade
137+
138+
**Solution**: Make sure you're in the correct sample directory and have run `npm install`:
139+
140+
```bash
141+
cd react/ # or react-js/
142+
npm install
143+
```
144+
145+
### Issue: Scripts not found
146+
147+
**Solution**: Each sample has its own scripts. Run commands from the sample directory, not the repository root:
148+
149+
```bash
150+
cd react/
151+
npm run dev # ✅ Correct
152+
```
153+
154+
Not from root:
155+
156+
```bash
157+
npm run dev # ❌ Won't work from root
158+
```
159+
160+
### Issue: Old imports or paths not working
161+
162+
**Solution**: Update any custom code to reference the new monorepo structure. Check the sample's `package.json` for current dependencies and versions.
163+
164+
---
165+
166+
## Next Steps
167+
168+
- Explore the new monorepo structure (`v2.0.0+`)
169+
- Read each sample's local `README.md` for setup
170+
- Refer to the root [CHANGELOG.md](../CHANGELOG.md) for detailed updates
171+
- Open issues or PRs if you encounter migration problems
172+
173+
---
174+
175+
## Support
176+
177+
For questions or issues:
178+
179+
- Open an issue on [GitHub](https://github.com/auth0-samples/auth0-acul-samples/issues)
180+
- Check existing documentation in `/docs/`
181+
- Review sample-specific README files

0 commit comments

Comments
 (0)