- Automatically turn headers lowercase
- Add
<Server>.$channel
- Add
<WsOpenContext>.printRaw
- Add
<WsOpenContext>.printRawChannel
- Add
<WsOpenContext>.removeRawChannel
- Add
<WsOpenContext>.$channel
- Add
<WsOpenContext>.server
- Add
<WsMessageContext>.printRaw
- Add
<WsMessageContext>.printRawChannel
- Add
<WsMessageContext>.removeRawChannel
- Add
<WsMessageContext>.$channel
- Add
<WsMessageContext>.server
- Add
<WsCloseContext>.$channel
- Add
<WsCloseContext>.server
- Add
<HttpRequestContext>.$channel
- Add
<HttpRequestContext>.server
- Fix Websocket Json Parsing Issue
- Fix windows route file importing
- Cache empty arraybuffers
- Add
<HttpRequestContext>.$body
- Add
<WsMessageContext>.$message
- Allow setting http finish handlers in more places
- Add Routing with unions using template literals
- Expose
<Server>.finish()
callbacks properly
- Set
this.body.awaiting
tofalse
when consuming body
- Fix
<HttpRequestContext>.client.proxied
not being updated - Fix
<HttpRequestContext>.client.internal
not being updated
- Add back
<WsMessageContext>.getRateLimit
- Add back
<WsMessageContext>.clearRateLimit
- Add back
<WsMessageContext>.skipRateLimit
- Fix
HEAD
Support breaking some route paths
- Add
options.methods.head
- Add
options.methods.trace
- Handle
HEAD
Requests automatically unless overridden - Handle
TRACE
Requests automatically if enabled - Add
<HttpRequestContext>.client.origin
- Add
<HttpRequestContext>.client.referrer
- Properly allow all headers in cors
- Make sure middlewares also run on 404
- Add
<RequestContext>.findRoute()
- Fix Cors Middleware issues
- Reverse Cors prefer order
- Remove instanceof to check for IPAddress in proxy ip validation
- Fix Cors origin issue
- Properly support multiple origins in cors middleware
- Add
<HttpRequestContext>.vary()
to easily modify vary header
- Fix issues when merging middleware classes with outdated properties
- Set default ratelimits to null to prevent identifier overlapping
- Allow calling
<Ratelimit>.identifier()
without arguments to generate new identifier - Fix some jsdocs
- Fix broken ratelimit ip addresses
- Add
<Server>.fetch
to run internal fetch calls - Allow more inputs in
<ValueCollection>.import()
- Add
<ValueCollection>.search()
- Add
<ValueCollection>.json()
- Add
<ValueCollection>.values()
- Add
<ValueCollection>.keys()
- Add
<ValueCollection>.size()
- Deprecate
<ValueCollection>.objectCount
- Deprecate
<ValueCollection>.toArray()
- Deprecate
<ValueCollection>.toJSON()
- Fix OpenAPi merging spreading up using validators
- Do not allow duplicate openapi parameters
- Fix some ratelimit issues when loading route files
- Fix OpenAPI Merging issues
- Fix validator extending issue
- Make sure validator callbacks are not ran twice when extending
- Fix some Context Issues
- Make
<HttpRequestContext>.rawContext
protected instead of private - Make
<HttpRequestContext>.abort
protected instead of private - Make
<WsOpenContext>.abort
protected instead of private
- Fix class merging breaking some methods
- Improve yielding logic
- Fix etag status message
- More typescript middleware fixes
- Fix Typescript Middleware issues
- Add
ctr.yield
to skip route handlers - Fix some bad code in TSDocs
- Add Ratelimit cleanup interval
- Fix typo in readme
- fix some tabs
- Do not include prefix in route files directly
- Fix File Routing issues
- Make sure to always add date header
- Add
options.download
andoptions.name
to<HttpRequestContext>.printFile()
- Fix OpenAPI not merging when loading routes
- Fix
<HttpRequestContext>.bindBody
- Improve performance of
<HttpRequestContext>.wwwAuth
- Fix some typescript issues on the
WsMessageContext
- Export
RuntimeError
- Fix issues in templates
- Add back
<HttpRequestContext>.wwwAuth
- Add back
<HttpRequestContext>.getRateLimit
- Add back
<HttpRequestContext>.clearRateLimit
- Add back
<HttpRequestContext>.skipRateLimit
- Allow Validators to dynamically add openapi using provided options
- Do not call finish handler on aborts
- Apply
FileLoader
validators properly
- Properly handle global context
- Split and trim the proxy header
- Properly handle
index
on route loading
- Rewrote everything
- Support for multiple runtimes
- Added Validators
- Added FileLoaders
- Added ability for middlewares to listen to callback ends
- Better Performance, less chunked encoding by default
- Better Proxy Support with IP Whitelisting
- More Compression Control with
minSize
,maxSize
andpreferOrder
- Global Middlewares
- Smaller Package Size, not including uws anymore
- More Templates
- Proper SSE and custom chunking support
- Abort Handlers on all requests
- Names and versions for middlewares
- Removed Dashboard
- Removed Traffic, Requests, ... Stats
- Better Context Support for route files
- Replaced
Reference
withChannel
- Added
Cookie
Class - Added
RuntimeError
Class to more easily find the cause of errors - Internal Routing revamp
- Added
Throttler
Class to limit chunking speed (for example) - Removed
ctr.printPart
- Less unnecessary promises
- Allow sending binary and text in websockets
- Dont read request body until requested, improving memory usage when never read
- Typedocs are now all Docs
- New Typedocs (Docs) Style
- Allow setting routepath as array for multiple paths that point to same callback
- Fix some validation issues
- Allow adding
.redirect
in routeFiles
- Allow
null
asJSONValue
- Improve Content Type
- Allow 0 penalty for ratelimits
- Use
ctx.handleError()
instead of manual code - Fix some issues with
mergeClasses()
- Fix Ratelimit Penalty not being able to be 0
- Add Option to validate parseContent input
- Fix
.bindBody
&.bindMessage
not returning correct data
- Validate Method Inputs
- Allow setting redirect type in router
- Remove Body Intellisense for 'GET' requests
- Allow Body & Message Binding with Zod
- Fix Compression duplicating data sometimes
- Add
html
function - Fix Route File Rate Limits being overridden
- Fix some JSDocs
- Added better JSDocs
- Removed Old Code
- Added
<Server>.getListeningPort()
- Fix WebSocket Message Rate Limits not counting up
- Fix Websocket Class Merging
- Fix more Typescript related issues
- Fix validations not including middleware types
- Added Ratelimit Cleanups every 30 seconds
- Fix some
@default
's not being correct
- Fix ratelimits spreading up
- Fix X-Ratelimit-Remaining not showing if value is 0
- Fix some Typescript bugs
- Add built in rate limiting
- Fix non file based routing adding invalid prefixes
- Fix Crash when passing invalid URIs
- Fix some typescript related issues
- Add basic ability to document Endpoints
- Fix Multipart not parsing correctly
- Dont match 0 length params
- Correctly Match Routes ending with a param
- Allow validating
.printStream()
and.printRef()
messages
- Respect File Prefixes when loading Routes
- Fix Static Files randomizing
- Remove accidentally included debug logs
- Allow putting parameters anywhere (e.g.
/@{username}/{file}-{version}/download
) - Use
<Array>.find()
instead of a for .. break loop for searching routes - Remove Warn Messages relating to old parameters (<...>)
- Update README
- Add a Check for negative Indexes when removing reference listeners
- Fix Empty web socket messages
- Update Templates
- Use
setImmediate()
to schedule instant tasks for web sockets - Change Dashboard Toast Style
- Scrap custom execution functions for web sockets
- Change Dashboard Color Scheme
- Fix Dashboard Scroll Bars on Browsers with Sidebars
- Clean up some internal code
- Update Github Links
- Implement
ctr.cookies.delete
andctr.cookies.clear
- Correctly Support Custom Status Messages everywhere
- Add
ctr.cookies.set
Support
- Remove Funky
Reserved
Type
- Upgrade Dependencies
- Correctly Cork Responses
- Add
.printPart()
for partial printing - Add better JSDoc explainations for request contexts & handler classes
- Stop executing more validations if one fails
- Fix Default Proxy Header being uppercase
- Fix Typescript errors related to generics
- Parse Default Headers dynamically on requests to allow dynamic data (when using functions)
- Allow defining globalContext in 3rd server constructor argument
- Correctly assign cached params
- Make ctx and ctg public on the base context
- Correctly handle .context() method on http and ws definitions
- Add .rawBufferBytes and .rawMessageBytes properties to get Buffers easily
- Fix broken Routes when validation is async
- Fix BASIC www-authentication
- Make sure validations & middleware execute BEFORE actual code
- Change Parameters to {param} to be more like the OpenAPI Specification
- Fix some generateOpenAPI Param Issues
- Listen for http response event early
- Start recieving Body before Middlewares & http request run
- Include GlobalContext on .validate() methods
- Fix normal route loading (without fileBased loading)
- Fix some path Parser Edge Cases
- Fix KV Parser Edge Cases
- Correctly parse Accept-Encoding header according to RFC
- Automatically decide which compression to use based on browser
- Add Option for limiting compression on big files
- Add size() helper to easily define byte sizes
- Split body Option into body & message
- Add .httpCompression & .wsCompression options
- Add an export for rjutils-collection
- Allow excluding compression algorithms from automatically chosen ones
- Add more proxy options
- Only return port from .start()
- replace .setHeader() with headers.set()
- Add .wwwAuth() function to easily check for www-authentication
- Use Promise.all() for header parsing
- Dont require an initial value for references
- Add real read-only valueCollections
- Add .delete() to valueCollections
- Send Correct Range Headers
- Check Cache outside of cork
- Correctly calculate content-length when using ranges
- Fix Backpressure Problems with .printFile()
- Send Content-Length on uncompressed printFile requests
- Allow manually toggling compression on printFile() calls
- Add ParseStream class to parse content in a streamed manner
- Allow printing files over 1GB (seems to only work correctly uncompressed as of now)
- Make URLObject properties readonly
- Add internal Log count to dashboard
- Add more efficient url parser
- Do not free() arraybuffers on requests finishing
- Fix ValueCollection.has()
- Write correct headers on uncomressed requests
- Use all lowercase Header Keys
- Check some Range Header edge cases
- Add cacheLimit Option to limit the number of cached items
- Add Middleware Count to Dashboard
- Fix References not being removed correctly
- Handle x-gzip as gzip for compatibility
- Support byte ranges for .printFile()
- Provide Fallback for invalid middleware class extensions
- Add Internal AnyClass Type
- Fix class merging (hopefully)
- Begin routeCollection Class (UNFINISHED!)
- Add Waterfalling Param Intellisense (not for files though)
- Allow passing a function to .status() that gives a status enum to decide from (NOT ASYNC)
- Allow checking how a http body or ws message was parsed as using .bodyType and .messageType
- Export JSONParsed, URLEncodedParsed & MultiPartParsed Types
- Add automatic path parameter intellisense for .params.get()
- Improve JSDocs
- export parseContentType
- Automatically free() memory at the end of a request
- Show correct memory usage in Dashboard
- Add more JSDocs
- Prefer Defined Paths over Static Paths
- Correctly handle invalid multipart
- Remove ability to disable body parsing because .rawBody exists
- Automatically parse multipart/form-data
- Use Switch Statement instead of else if for body parsing checks
- Automatically parse application/x-www-form-urlencoded into jsons
- export parseKV
- Only search for static files on GET Requests
- Fix some npm ignore issues
- Rewrite Dashboard in React
- Add native Iterator to ValueCollections
- Correctly parse promised content
- Use Logger for default error messages
- Use Mini Event Emitter for http requests
- Add Icon to every TypeDoc Page
- Remove unnecessary Variables
- Fix WebSocket Events not working properly
- Rename wSClose Event to wsClose (Fix Typo)
- Normalize Posix Paths correctly
- Use Posix Paths for FFR
- Fix File Based Routing on Windows
- Allow getting OpenAPI 3.1 Definitions from the Server with .getOpenAPI3Def()
- Fix Some Typescript Check Lib Errors
- Fix Errors around Compression
- Fix some Errors relating to using socket after aborted
- Fix ?undefined query on requests without query
- Fix Content Parsing for Promisified Content
- Add File based Routing
- Added prettify to more methods
- Added Logging Options
- Allow recursion for promisified content
- General Code & Performance Improvements
- Add #/s count to dashboard
- Rework Internal Structure to remove Queue
- Add LocalContext to Middleware Class extendor
- Correctly count WebSocket Stats
- Decode Cookie and Query Parameters Correctly
- Add Case to parseKV tests
- Remove more 'as any's
- Dont Cork on WebSocket printStream's
- Fix some JSDoc Comments
- Remove endRequest Option on Websocket printStream's
- Use Object.assign instead of spreading for default headers in routers
- Add Headers on WebSocket Upgrade requests
- Allow Reference Setters to be callbacks
- Add Reference System
- Use less 'as any's
- Correctly handle printing Promises
- Make printHTML work correctly on 404 routes
- Fix printHTML with regex routes
- Update Templates
- Improve Readme
- Switch to custom uWS version
- Remove uwebsockets header
- Improve Readme
- Add Logo / Icon
- Update Examples
- Fix Reduce on empty arrays
- Fix Readme
- Fix Typescript Lib Checks
- Added some Basic Unit Tests
- Added a new, custom query & cookie parser thats 10x faster than before
- Added a more optimized path parser
- Switched Request Contexts to Classes to save memory & cpu
- Added ability to predefine contexts for routes and make them permanent
- Added ability to manually control the request body as its coming in
- Allow Route Paths to be regular expressions
- Dont Check Cache on every Route iteration
- Renamed Hashes to Fragments to match proper naming conventions
- Define Middlewares in the Server Constructor to allow automatic middleware intellisense
- Rework general Middleware definition system for Typescript
- Renamed .init() on middlewares to .config()
- Require a config for Middlewares to always be passed in
- Added Global Context to Server that applies to everything, including events
- Rework Route Files to support Middleware & Global Context Intellisense
- Upgrade uWebsockets to v20.24.0
- Use rjbuild-typescript for building
- Fix broken Attribute parsing
- Fix some JSDocs
- Add HTMLComponents
- Upgrade Dependencies
- Improve JSDocs
- Added more CLI examples to README
- Add .escaped() method to html builder for escaping user input to prevent xss
- Automatically escape direct content to tags
- Fix HTML Function parsing
- Fix some JSDocs
- Automatically turn native arrow functions into normal functions for HTML
- Add .if() method to html builder for easy conditional html
- Added built-in HTML Builder
- Upgrade uWebsockets to v20.23.0
- Fix some @default tags being incorrect
- Ignore yarn.lock in cli
- Automatically detect package managers in cli
- Automatically Install dependencies in cli
- Add NodeJS 20 Support and remove NodeJS 19 support
- Upgrade uWebsockets to v20.22.0
- Add Typedocs
- Fix Invalid Path in Downloaded File Message
- Fixed some Typos
- Add [ Variant ] to cli replace path
- Renamed Examples to Templates
- Rework Template System with CLI Support
- Addded more Templates
- Instantly show Stats after Websocket connection is established
- Added Performance Options
- eTag
- lastModified
- decompressBodies
- Added Custom Dashboard Update Interval
- Use getFilesRecursively from rjutils-collection instead of own method
- Use predefined Paths for internal Dashboard Routes
- Require NodeJS 16, 18 or 19
- Require specific npm, yarn and pnpm versions
- Use rjutils-collection for deep option parsing
- Update Typescript to v5
- Move Typings to seperate folder
- Add ability to prettify parsed jsons
- Serve correct port to start & reload callback
- Improve some general Syntax
- Improve some for-loops
- Export Options Type
- Make .validate() method generic like .http() and .ws()
- Upgrade Dependencies
- Fix Typos in README
- Allow Passing Types into .http() and .ws() functions for context and body / message properties
- Improve Returntype of .map() on valuecollections to match the returnType of the callback function
- Clean up some code and remove unnecessary imports
- Add more JSDocs to Value Collections
- Add .entries() to Value Collections
- Fix some outdated JSDocs
- Add Validations to RouteFiles
- Fix Router not applying Prefixes to HTTP Routes
- Made Internal Router Logic Typesafe
- Turn Router into a Typed EventEmitter
- Add end() functions to all events that would benefit from it
- Upgrade Dependencies
- Make sure all Files use Tabs for identation
- Add defaultHeaders() to the router so it can be applied to specific routes
- Make contentTypes() and defaultHeaders() use callbacks
- Added Last-Modified header to every request that has to do with the file system for better caching
- Added ETag Header to every request using SHA1 to allow better caching (can be disabled using options.cache)
- Improved Event Names
- runtimeError -> httpError
- http404 -> route404
- Add dhparams and ca file to ssl options
- Add Extra Class for Route Files to clean up the process of making ones
- Make HTTP Definitions work similar to websockets
- Add file:/// on win32 systems for dynamic imports
- Use Relative Paths instead of Absolute ones for ESM Loading to work correctly on Windows
- Make sure to actually reresolve win32 paths to posix
- Always use POSIX Paths for route loading, even on Windows
- Dont Check for Content-Type header when parsing websocket messages
- Use Lowercase File Extensions for Readmes
- Add Changelog link to Readme
- Add Middleware Cache (ctg.cache.middlewares)
- Add Ability to control the upgrade event of a WebSocket (.onUpgrade)
- Show a minimum of 10 in the requests and all websocket boxes in the dashboard
- Add Custom Status Messages to HTTP
- Dont call .toString() on the raw body minimum 2 times every parse
- Allow strings & Buffers for Headers since sometimes Strings are more performant
- If available, directly check the content-length header to decide early if the request should be cancelled
- Correctly handle parsed Body Cache
- Clean up some Code
- Add domain property to ctr
- Add ctx.isAborted for easy aborted check for middleware
- Dont instantly parse messages in wsClose Events
- Only Search for Static Files on GET requests
- Fix Detached ArrayBuffer Errors when POSTing large files
- Add Version Deprecation Infos to README
- Make Bodies & Messages getters to safe memory
- Use allocUnsafe for creating empty Buffers
- Make sure Content-Length exists because uWebsockets v20.20.0 doesnt support chunked encoding
- Error when Content-Length doesnt match the actual length of the Content
- Upgrade npm Dependencies
- Change ca to key for SSL
- Add another Space to CLI Prefix
- Bump uWebsockets
- Improve External Routers
- Skip spreading results when their length is 0
- Add Link to new Documentation in Readme
- Add CONNECT & TRACE HTTP Methods
- Dont activate anything by default in the CLI
- Make handleEvent slightly more Typesafe
- Encode URI Password for Dashboard
- Export parseContent & Content Type
- Fix .npmignore
- Rework CLI with yargs
- Export Router, pathParser & URLObject to allow for more options
- Type exported Version const as string instead of any
- Fix Dashboard Websocket not working on ports other than 80 / 443
- Allow Dashboard to use ws:// and wss://
- Add Optional Password to Dashboard
- Remove License Year
- Update examples in Readme
- Add C++ Info to Readme
- Fix Pathparser breaking on index routes
- Automatically Decompress HTTP Bodies
- Use more Buffers Internally
- Add more JSDocs
- Add URL Hashes Support
- Parse URL Hashes correctly in URLObjects
- Fix Dashboard Websocket 404
- Set ctx.executeCode every time a websocket runs anything
- Return Values Correctly
- Add more isAborted Checks
- Remove EventListener Leak
- Add more JSDocs to Options
- Fix Websocket related Crashes
- Fix Websocket Messages Sending Twice
- Add wsRequest Event
- Add missing isAborted check @ CORS Headers
- Add missing isAborted check
- Fix Definition Files
- Update Middleware Example
- Add an Enum based of RFC Docs for HTTP Statuses
- Add an Enum based on HTTP Request Methods
- Add a native Middleware Builder
- Add dedicated Stop Function to Middlewares
- Add Init Event to Middlewares
- Add Custom Contexts to Middlewares
- Add Websocket Support to Middlewares
- Always make sure request isnt aborted before sending data
- Dont handle CORS headers on WebSockets since it wont affect anything
- Remove Debug Logs
- Fix Default 404 Page displaying undefined
- Dont continue parsing path if Path is undefined
- Use Array.isArray for more safety when path parsing
- Fix Options Parser not following nested Objects correctly
- Switch Typescript to strict mode
- Allow undefined for ctr.print()
- Fix errors when using ctr.close() on websockets
- Add Custom URL Object to improve Typescript happiness
- Use DeepRequired for Internal Server Options
- Moved pathParser to URLObject
- Add ctr.rawBody and ctr.rawMessage to always allow getting unparsed messages
- Update Basic Chat App Example to add Chat History
- Clean up Dashboard Socket Interval when Closing
- Clear Cache correctly when reloading
- Use newer Syntax in some places
- Add Websocket Message Count to Dashboard
- Use Websockets for Dashboard Stats
- Allow ctr.print() to be called multiple times in a websocket
- Remove Request ms from Dashboard since it now uses websockets
- Check if Request is aborted before upgrading
- Use Internal Header Store for upgrading
- Fix Sending Normal & Empty Messages in WebSockets
- Add WebSocket Support 🎉
- Fix Broken Caching for Normal Routes
- Fix Issues with Routes Duplicating when reloading
- Cork Correctly on CORS OPTIONS Requests
- Fix Invalid Prefixes when using nested paths
- Export ValueCollection
- Add Chat Website example
- Add ability to toggle caching in the Config
- Clean up Type Files
- Add .map() to Value Collections
- Rename Interfaces Folder to Types
- Removed headers and contentTypes from Config
- Addded defaultHeaders and contentTypes routers to replace config
- Handle too large HTTP POST Bodies correctly
- Support Sets for print()
- Added more JSDocs to the HTTPRequestContext
- Dont leak Headers from the OPTIONS Handler on Requests
- Write Headers on OPTIONS Request
- Rewrote the entire HTTP Handler to have increased performance & mainstream the queue worker
- All Old Middleware that are using noWaiting will not work properly
- Add an Async Queue worker to the Webserver in order to improve async tasks
- Middleware if used should switch from the manual noWaiting to the queue
- Fix Problem with the Path parser & the always attached query string
- Switch to Uwebsockets for HTTP and HTTPS to allow websockets down the line
- Added a Changelog
- Revamped the Router using callbacks
- Stopped waiting for state if it wasnt required
- Added a Global Parsing Function
- Automatically parse Maps to JSON
- Removed Rate Limiting (will be implemented in an external package)
- Improved Event Names
- error -> runtimeError
- request -> httpRequest
- notfound -> http404
- Renamed .add to .http in the Router
- Renamed .prefix to .path in the Router
- Fixed Validations merging to the top
- Improved General Performance
- Removed Error Property from the HTTPRequestContext
- Removed STATIC & STATICDIR from the allowed HTTP Methods (old code)
- Fixed a null error when handling Compression externally