-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(config): update config package #82
base: main
Are you sure you want to change the base?
Conversation
This commit updates the `config` package with the following changes: - Renamed `#src/config` to `#src/config-content` - Updated imports in `config.cjs.ts` and `config.esm.ts` - Added a new file, `config.ts`, which exports a class called `Config` - Added a new file, `index.ts`, which exports an instance of the `Config` class - Added new files for different configurations: json, jsonp, proxy, query, server and subdomain. - Each configuration has its own schema and constructor function.
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 923e128. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch
✅ Successfully ran 2 targetsSent with 💌 from NxCloud. |
Codecov Report
@@ Coverage Diff @@
## main #82 +/- ##
==========================================
+ Coverage 84.67% 93.59% +8.91%
==========================================
Files 47 63 +16
Lines 1684 6558 +4874
Branches 401 567 +166
==========================================
+ Hits 1426 6138 +4712
- Misses 242 410 +168
+ Partials 16 10 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 38 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
This change moves the `etag` property from `Config` to `ServerConfig` class.
This commit adds an event emitter to the config module that emits a `change` event whenever a configuration value is modified. The event includes the name of the modified property, the new value, and the old value. This allows other parts of the application to listen for these events and react accordingly.
- Added `RouterConfig` class to handle router configuration. - Updated `Config` class to include `router` property. - Updated `index.ts` to export `Config` type. - Updated `JsonpConfig` class to fix the type of the `callback` property from number to string. - Updated `ProxyConfig` class to fix the type of the `trust` property and added validation for different types of values. - Updated `QueryConfig` class to fix the type of the `parser` property and added validation for different types of values. - Updated `ServerConfig` class to add support for ETag generation and HTTP2/HTTPS certificates.
Signed-off-by: Ardalan Amini <[email protected]>
This commit adds support for configuring views in the Foxify framework. It introduces a new `ViewConfig` class that allows users to specify the directory containing view templates, the view template file extension, and a custom renderer function. The `Foxify` class now has methods to enable/disable view rendering and set the view engine. The changes also include updates to the `Server` class to pass the view configuration settings when creating instances of `Request` and `Response`.
No description provided.