Skip to content

Conversation

@angelozdev
Copy link
Contributor

No description provided.

feat: Implement comprehensive type definitions for Ubidots HTML Canvas library

test: Add unit tests for EventBus functionality

test: Create unit tests for Ubidots class and its methods

refactor: Migrate Widget tests from JavaScript to TypeScript

test: Set up Vitest configuration and global mocks for testing

chore: Add TypeScript configuration for strict type checking

build: Configure tsup for building the library with multiple formats

docs: Add TypeDoc configuration for generating documentation

chore: Remove Webpack configuration in favor of tsup
…er and Logger

- Deleted Widget class from src/Widget.ts and its associated types.
- Added EventEmitter class for event handling in src/libs/event-emitter.ts.
- Introduced Logger class for logging functionality in src/libs/logger.ts.
- Updated index exports to include new EventEmitter and Logger.
- Removed global type declarations and API types from src/types.
- Added noop utility function in src/utils/noop.ts.
- Enhanced tsup configuration for better build management and versioning.
- Implemented unit tests for the logger module, covering singleton pattern, level setting, and various logging methods (debug, info, error).
- Added tests for edge cases and performance considerations in the logger.
- Created tests for the noop function to ensure it behaves as expected in various scenarios.
- Removed outdated tests for EventBus, Ubidots, and Widget modules to streamline the test suite.
- Updated Vitest configuration to include new test paths and improved setup for global variables.
…format validation

- Introduced isValidEventFormat function to validate event names.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants