Skip to content

Conversation

@sciborrudnicki
Copy link
Contributor

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces the initial release (v0.0.1) of @typescript-package/middleware, a lightweight TypeScript library for implementing middleware chains with support for both synchronous and asynchronous execution.

Key Changes:

  • Implementation of a Middleware class with methods for adding and executing middleware functions
  • Support for both sync (execute) and async (executeAsync) middleware execution patterns
  • Configuration files for TypeScript compilation and Angular packaging

Reviewed changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 33 comments.

Show a summary per file
File Description
src/lib/middleware.class.ts Core middleware class implementation with chain execution logic
src/type/middleware-function.type.ts TypeScript type definition for middleware functions
src/test/middleware.spec.ts Basic test suite for the Middleware class
src/public-api.ts Public API surface exporting the Middleware class
src/lib/index.ts Re-export of the Middleware class from the lib directory
src/type/index.ts Re-export of the MiddlewareFunction type
package.json NPM package configuration and metadata
tsconfig.spec.json TypeScript configuration for test files
tsconfig.lib.json TypeScript configuration for library compilation
tsconfig.lib.prod.json Production-specific TypeScript configuration
ng-package.json Angular packaging configuration
README.md Documentation with usage examples and project information
.gitignore Git ignore rules for build artifacts and dependencies
.github/FUNDING.yml GitHub funding configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@sciborrudnicki sciborrudnicki merged commit c05cd60 into main Dec 1, 2025
6 checks passed
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