@lineai/bluebeam-api
Version:
Your unofficial library for Bluebeam API for human and AI developers. Provides TypeScript support, entity classes, and developer-friendly features. Perfect for AI coders, construction professionals, and document management tasks. Includes comprehensive JS
87 lines (67 loc) • 3.97 kB
Markdown
# Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### 0.0.6 (2025-01-29)
#### Fixed
- **Token persistence**: Fixed critical bug where tokens stored in `tokenStorage` weren't being used by the HTTP client
- HTTP client now loads tokens from storage on initialization
- Tokens from storage take precedence over config tokens
- **Authorization header**: Fixed missing Authorization header in API requests
- HTTP client was using static token from initial config instead of current token from storage
#### Added
- **Automatic token refresh**: Added automatic token refresh on 401 errors (enabled by default)
- Failed requests are automatically retried after token refresh
- Can be disabled with `autoRefresh: false` config option
- Prevents need for manual token management in most cases
#### Changed
- **Simplified token management**: Removed unnecessary token expiration tracking
- Removed `isTokenExpired()` method and `expires_at` tracking
- Now uses reactive approach - only refreshes on 401 errors
- **API version detection**: Removed explicit `apiVersion` parameter
- OAuth endpoints now detected automatically by `/oauth2/` path prefix
- Simplified HTTP client interface
#### Internal
- **Code quality**: Fixed ESLint functional programming violations
- Replaced mutable `let` declarations with immutable patterns
- Used `Map` for in-memory storage instead of mutable object
- **Architecture**: Moved `AuthInterceptor` inline to avoid circular dependencies
- Prevents module resolution errors in consuming applications
### 0.0.5 (2025-01-28)
#### Breaking Changes
⚠️ **BREAKING**: This version contains significant breaking changes. See [MIGRATION.md](./MIGRATION.md) for detailed upgrade instructions.
- **OAuth-only authentication**: Removed `access_token` from configuration - OAuth flow is now required
- **Complete authorization URLs**: `createAuthorizationUrl` now returns complete URLs instead of relative paths
- **Removed `createBluebeamClientWithToken`**: Use OAuth client instead
- **Functional programming approach**: Replaced entity classes with pure transformation functions
#### Added
- **Complete OAuth 2.0 implementation**: Authorization Code + Implicit flows with automatic token refresh
- **Token storage interface**: Pluggable storage system with built-in memory storage
- **Request queuing**: Requests wait during token refresh to prevent failures
- **Dual-client architecture**: Access both raw API responses and parsed entities
- **Automatic token storage**: Tokens are saved to storage during OAuth flows
- **Comprehensive TypeScript support**: Full type safety for all operations
- **Enhanced documentation**: Updated all guides with latest changes
#### Fixed
- **Token storage bug**: OAuth tokens are now properly saved to storage during initial authentication
- **Import order issues**: Fixed ESLint violations and code formatting
- **Authorization URL construction**: URLs now include base URL automatically
#### Migration
- See [MIGRATION.md](./MIGRATION.md) for complete upgrade instructions
- Environment variables have changed - see migration guide for details
- OAuth flow is now required for all authentication
### 0.0.3 (2025-01-09)
#### Fixed
- **CRITICAL**: Fixed OAuth 415 "Media Type Not Supported" error
- Changed content-type to `application/x-www-form-urlencoded` for OAuth requests
- Fixed request body encoding using URLSearchParams instead of FormData
- OAuth token exchange now works correctly
#### Added
- Comprehensive documentation for AI developers (AI-GUIDE.md, API.md, MIGRATION.md)
- OAuth test page for debugging authentication flows
### 0.0.2 (2025-01-08)
#### Added
- Simplified API with single configuration object
- Environment variable support
- Migration guide
### 0.0.1 (2025-01-08)
#### Added
- Initial release