Skip to content

Commit

Permalink
chore(release): 1.4.0 [skip ci]
Browse files Browse the repository at this point in the history
## [1.4.0](v1.3.0...v1.4.0) (2022-08-26)

### 📝 Documentation

* **note:** add ([6a9656d](6a9656d))

### 🐛 Fixes

* **docs:** typo fixes ([3ef096c](3ef096c))

### 🔁 Chore

* **deps-dev:** bump @commitlint/cli from 16.2.3 to 16.2.4 ([e942da6](e942da6))
* **deps-dev:** bump @rollup/plugin-node-resolve from 13.2.1 to 13.3.0 ([7174261](7174261))
* **deps-dev:** bump @types/node from 17.0.25 to 17.0.27 ([6f397e5](6f397e5))
* **deps-dev:** bump @types/node from 17.0.27 to 17.0.28 ([79c75af](79c75af))
* **deps-dev:** bump @types/node from 17.0.28 to 17.0.29 ([a5998a1](a5998a1))
* **deps-dev:** bump @types/node from 17.0.29 to 17.0.30 ([45e32c7](45e32c7))
* **deps-dev:** bump @types/node from 17.0.30 to 17.0.31 ([3591be5](3591be5))
* **deps-dev:** bump eslint from 8.13.0 to 8.14.0 ([628bb11](628bb11))
* **deps-dev:** bump eslint from 8.14.0 to 8.22.0 ([aa6df20](aa6df20))
* **deps-dev:** bump eslint-config-airlight-node from 3.0.2 to 3.0.3 ([dae9946](dae9946))
* **deps-dev:** bump lint-staged from 12.3.8 to 12.4.0 ([6e2557f](6e2557f))
* **deps-dev:** bump lint-staged from 12.4.0 to 12.4.1 ([1358097](1358097))
* **deps-dev:** bump lint-staged from 12.4.1 to 12.5.0 ([8191b94](8191b94))
* **deps-dev:** bump lint-staged-config-airlight from 3.0.1 to 3.0.2 ([26b7f1d](26b7f1d))
* **deps-dev:** bump prettier from 2.6.2 to 2.7.1 ([b1cb221](b1cb221))
* **deps-dev:** bump rollup from 2.70.2 to 2.71.1 ([507d6e4](507d6e4))
* **deps-dev:** bump rollup-plugin-typescript2 from 0.31.2 to 0.33.0 ([6bf4f48](6bf4f48))
* **deps-dev:** bump typescript from 4.6.3 to 4.6.4 ([bbbcd9c](bbbcd9c))
* **vscode:** fix launch task npm script ([9c6e49d](9c6e49d))

### ✨ Features

* **dependencies:** Upgrade `uWebSockets.js` to v20.10 ([3ab03e6](3ab03e6))
  • Loading branch information
semantic-release-bot committed Aug 26, 2022
1 parent 3ab03e6 commit 562ec8c
Show file tree
Hide file tree
Showing 49 changed files with 2,057 additions and 1 deletion.
1,582 changes: 1,582 additions & 0 deletions esm/nanoexpress.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions esm/nanoexpress.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nanoexpress/ultimate",
"type": "module",
"version": "1.3.0",
"version": "1.4.0",
"description": "Ultimate solution based on nanoexpress and best-practices",
"main": "cjs/nanoexpress.js",
"module": "esm/nanoexpress.js",
Expand Down
41 changes: 41 additions & 0 deletions typings/app.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/// <reference types="node" />
import { RecognizedString, TemplatedApp, us_listen_socket, WebSocketBehavior } from 'uWebSockets.js';
import { HttpHandler, RequestSchema } from '../types/find-route';
import { HttpMethod, INanoexpressOptions, IWebsocketRoute } from '../types/nanoexpress';
import { HttpRequest, HttpResponse } from './polyfills';
import RouteEngine from './route-engine';
import RouterTemplate from './router';
declare class App extends RouterTemplate {
get https(): boolean;
get _console(): Console;
get raw(): TemplatedApp;
protected _app: TemplatedApp;
protected _options: INanoexpressOptions;
protected _engine: RouteEngine;
protected _ws: IWebsocketRoute[];
protected _requestPools: HttpRequest[];
protected _responsePools: HttpResponse[];
protected _poolsSize: number;
protected time: [number, number];
protected _separateServed: boolean;
protected _ran: boolean;
protected _instance: Record<string, us_listen_socket | null>;
protected defaultRoute: HttpHandler<HttpMethod, any> | null;
protected errorRoute: ((err: Error, req: HttpRequest, res: HttpResponse) => void) | null;
constructor(options: INanoexpressOptions, app: TemplatedApp);
setNotFoundHandler(handler: HttpHandler<HttpMethod, RequestSchema>): this;
setErrorHandler(handler: (err: Error, req: HttpRequest, res: HttpResponse) => void): this;
handleError(error: Error, req: HttpRequest, res: HttpResponse): this;
ws(path: RecognizedString, options: WebSocketBehavior): this;
publish(topic: RecognizedString, message: RecognizedString, isBinary?: boolean, compress?: boolean): boolean;
run(): this;
listenSocket(port: number, host?: string, is_ssl?: boolean, handler?: () => void): Promise<us_listen_socket>;
listen(...args: Array<number | string | boolean | (() => void)>): Promise<us_listen_socket>;
close(port: number, host?: string): boolean;
protected _appApplyListen(host: string, port: number, is_ssl?: boolean, handler?: () => void): Promise<us_listen_socket>;
_close(token: us_listen_socket | null, id: string): boolean;
disable(tag: string): this;
set(key: keyof INanoexpressOptions, value: string | number): this;
}
export default App;
//# sourceMappingURL=app.d.ts.map
1 change: 1 addition & 0 deletions typings/app.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions typings/constants.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export declare const request: unique symbol;
export declare const response: unique symbol;
export declare const reqConfig: unique symbol;
export declare const reqEvents: unique symbol;
export declare const reqRequest: unique symbol;
export declare const reqRawResponse: unique symbol;
export declare const resHeaders: unique symbol;
export declare const resConfig: unique symbol;
export declare const resEvents: unique symbol;
export declare const resAbortHandler: unique symbol;
export declare const resAbortHandlerExpose: unique symbol;
export declare const appInstance: unique symbol;
export declare const routerInstances: unique symbol;
export declare const wsInstances: unique symbol;
//# sourceMappingURL=constants.d.ts.map
1 change: 1 addition & 0 deletions typings/constants.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions typings/exposes/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import exposeWebsocket from './websocket';
export { exposeWebsocket };
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions typings/exposes/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions typings/exposes/websocket.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { HttpRequest, HttpResponse, WebSocketBehavior } from 'uWebSockets.js';
export default function exposeWebsocket(handler: (req: HttpRequest, res: HttpResponse) => void | Promise<void>, options?: {}): WebSocketBehavior;
//# sourceMappingURL=websocket.d.ts.map
1 change: 1 addition & 0 deletions typings/exposes/websocket.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions typings/helpers/gc.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export default function _gc(): boolean;
//# sourceMappingURL=gc.d.ts.map
1 change: 1 addition & 0 deletions typings/helpers/gc.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions typings/helpers/http-codes.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare const httpCodes: Record<number, string>;
export default httpCodes;
//# sourceMappingURL=http-codes.d.ts.map
1 change: 1 addition & 0 deletions typings/helpers/http-codes.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions typings/helpers/http-methods.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { HttpMethod } from '../../types/nanoexpress';
declare const _default: HttpMethod[];
export default _default;
//# sourceMappingURL=http-methods.d.ts.map
1 change: 1 addition & 0 deletions typings/helpers/http-methods.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions typings/helpers/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import _gc from './gc';
import httpCodes from './http-codes';
import httpMethods from './http-methods';
import invalid from './invalid';
import iterateBlocks from './iterate-blocks';
import { getMime, mimes } from './mime';
import slashify from './slashify';
import noop from './noop';
export * from './loggy';
export { _gc, httpMethods, httpCodes, invalid, iterateBlocks, mimes, getMime, slashify, noop };
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions typings/helpers/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions typings/helpers/invalid.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export default function invalid(message: string): void;
//# sourceMappingURL=invalid.d.ts.map
1 change: 1 addition & 0 deletions typings/helpers/invalid.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions typings/helpers/iterate-blocks.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { BlockMode, IBlock } from '@nanoexpress/route-syntax-parser/types/interfaces';
declare const _default: (blocks: IBlock[]) => BlockMode[];
export default _default;
//# sourceMappingURL=iterate-blocks.d.ts.map
1 change: 1 addition & 0 deletions typings/helpers/iterate-blocks.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions typings/helpers/loggy.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import debugLog from 'debug';
export declare const debug: debugLog.Debugger;
export declare const error: debugLog.Debugger;
export declare const warn: debugLog.Debugger;
//# sourceMappingURL=loggy.d.ts.map
1 change: 1 addition & 0 deletions typings/helpers/loggy.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

173 changes: 173 additions & 0 deletions typings/helpers/mime.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
declare const mimes: {
'3gp': string;
a: string;
ai: string;
aif: string;
aiff: string;
asc: string;
asf: string;
asm: string;
asx: string;
atom: string;
au: string;
avi: string;
bat: string;
bin: string;
bmp: string;
bz2: string;
c: string;
cab: string;
cc: string;
chm: string;
class: string;
com: string;
conf: string;
cpp: string;
crt: string;
css: string;
csv: string;
cxx: string;
deb: string;
der: string;
diff: string;
djv: string;
djvu: string;
dll: string;
dmg: string;
doc: string;
dot: string;
dtd: string;
dvi: string;
ear: string;
eml: string;
eps: string;
exe: string;
f: string;
f77: string;
f90: string;
flv: string;
for: string;
gem: string;
gemspec: string;
gif: string;
gz: string;
h: string;
hh: string;
htm: string;
html: string;
ico: string;
ics: string;
ifb: string;
iso: string;
jar: string;
java: string;
jnlp: string;
jpeg: string;
jpg: string;
js: string;
json: string;
log: string;
m3u: string;
m4v: string;
man: string;
mathml: string;
mbox: string;
mdoc: string;
me: string;
mid: string;
midi: string;
mime: string;
mjs: string;
mml: string;
mng: string;
mov: string;
mp3: string;
mp4: string;
mp4v: string;
mpeg: string;
mpg: string;
ms: string;
msi: string;
odp: string;
ods: string;
odt: string;
ogg: string;
p: string;
pas: string;
pbm: string;
pdf: string;
pem: string;
pgm: string;
pgp: string;
pkg: string;
pl: string;
pm: string;
png: string;
pnm: string;
ppm: string;
pps: string;
ppt: string;
ps: string;
psd: string;
py: string;
qt: string;
ra: string;
rake: string;
ram: string;
rar: string;
rb: string;
rdf: string;
roff: string;
rpm: string;
rss: string;
rtf: string;
ru: string;
s: string;
sgm: string;
sgml: string;
sh: string;
sig: string;
snd: string;
so: string;
svg: string;
svgz: string;
swf: string;
t: string;
tar: string;
tbz: string;
tcl: string;
tex: string;
texi: string;
texinfo: string;
text: string;
tif: string;
tiff: string;
torrent: string;
tr: string;
txt: string;
vcf: string;
vcs: string;
vrml: string;
war: string;
wav: string;
wma: string;
wmv: string;
wmx: string;
wrl: string;
wsdl: string;
xbm: string;
xhtml: string;
xls: string;
xml: string;
xpm: string;
xsl: string;
xslt: string;
yaml: string;
yml: string;
zip: string;
default: string;
};
declare type valueof<T> = T[keyof T];
declare const getMime: (path: string) => valueof<typeof mimes> | undefined;
export { getMime, mimes };
//# sourceMappingURL=mime.d.ts.map
1 change: 1 addition & 0 deletions typings/helpers/mime.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions typings/helpers/noop.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare const _default: () => void;
export default _default;
//# sourceMappingURL=noop.d.ts.map
1 change: 1 addition & 0 deletions typings/helpers/noop.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions typings/helpers/slashify.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare const _default: (path: string) => string;
export default _default;
//# sourceMappingURL=slashify.d.ts.map
1 change: 1 addition & 0 deletions typings/helpers/slashify.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions typings/hooks/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Dependencies } from './manager';
export declare const useCallback: (callback: (...args: any[]) => any, dependencies: Dependencies) => any;
export declare const useEffect: (callback: (...args: any[]) => any, dependencies: Dependencies) => any;
export declare const useMemo: (callback: (...args: any[]) => any, dependencies: Dependencies) => any;
export declare const useState: <T>(initialValue: T) => [T, (value: T) => void];
export declare const useRef: <T>(ref: T | null, dependencies: Dependencies) => T;
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions typings/hooks/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions typings/hooks/manager.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export declare type Dependencies = Array<string | number | boolean>;
declare const register: (runValue?: boolean, returnValue?: boolean) => (callback: (...args: any[]) => any, dependencies: Dependencies) => (() => any) | any;
declare const unregister: () => void;
export { register, unregister };
//# sourceMappingURL=manager.d.ts.map
1 change: 1 addition & 0 deletions typings/hooks/manager.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions typings/nanoexpress.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { INanoexpressOptions } from '../types/nanoexpress';
import App from './app';
import { exposeWebsocket } from './exposes/index';
import { useCallback, useEffect, useMemo, useRef, useState } from './hooks';
import Router from './router';
declare const nanoexpress: {
(options?: INanoexpressOptions): App;
Router: typeof Router;
App: typeof App;
exposeWebsocket: typeof exposeWebsocket;
};
export { nanoexpress as default, useCallback, useEffect, useMemo, useRef, useState };
//# sourceMappingURL=nanoexpress.d.ts.map
1 change: 1 addition & 0 deletions typings/nanoexpress.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 562ec8c

Please sign in to comment.