@pirxpilot/router 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/HISTORY.md ADDED
@@ -0,0 +1,206 @@
1
+
2
+ 1.0.0 / 2024-12-31
3
+ ==================
4
+
5
+ * rename to @pirxpilot/router
6
+ * relax dependecies
7
+ * remove outdated and dependencies
8
+ * replace `mocha` and `nyc` with built-in `node:test`
9
+
10
+ 2.0.0-beta.2 / 2024-03-20
11
+ =========================
12
+
13
+ This incorporates all changes after 1.3.5 up to 1.3.8.
14
+
15
+ * Add support for returned, rejected Promises to `router.param`
16
+
17
+ 2.0.0-beta.1 / 2020-03-29
18
+ =========================
19
+
20
+ This incorporates all changes after 1.3.3 up to 1.3.5.
21
+
22
+ * Internalize private `router.process_params` method
23
+ * Remove `debug` dependency
24
+ * deps: array-flatten@3.0.0
25
+ * deps: parseurl@~1.3.3
26
+ * deps: path-to-regexp@3.2.0
27
+ - Add new `?`, `*`, and `+` parameter modifiers.
28
+ - Matching group expressions are only RegExp syntax.
29
+ `(*)` is no longer valid and must be written as `(.*)`, for example.
30
+ - Named matching groups no longer available by position in `req.params`.
31
+ `/:foo(.*)` only captures as `req.params.foo` and not available as
32
+ `req.params[0]`.
33
+ - Regular expressions can only be used in a matching group.
34
+ `/\\d+` is no longer valid and must be written as `/(\\d+)`.
35
+ - Matching groups are now literal regular expressions.
36
+ `:foo` named captures can no longer be included inside a capture group.
37
+ - Special `*` path segment behavior removed.
38
+ `/foo/*/bar` will match a literal `*` as the middle segment.
39
+ * deps: setprototypeof@1.2.0
40
+
41
+ 2.0.0-alpha.1 / 2018-07-27
42
+ ==========================
43
+
44
+ * Add basic support for returned, rejected Promises
45
+ - Rejected Promises from middleware functions `next(error)`
46
+ * Drop support for Node.js below 0.10
47
+ * deps: debug@3.1.0
48
+ - Add `DEBUG_HIDE_DATE` environment variable
49
+ - Change timer to per-namespace instead of global
50
+ - Change non-TTY date format
51
+ - Remove `DEBUG_FD` environment variable support
52
+ - Support 256 namespace colors
53
+
54
+ 1.3.8 / 2023-02-24
55
+ ==================
56
+
57
+ * Fix routing requests without method
58
+
59
+ 1.3.7 / 2022-04-28
60
+ ==================
61
+
62
+ * Fix hanging on large stack of sync routes
63
+
64
+ 1.3.6 / 2021-11-15
65
+ ==================
66
+
67
+ * Fix handling very large stacks of sync middleware
68
+ * deps: safe-buffer@5.2.1
69
+
70
+ 1.3.5 / 2020-03-24
71
+ ==================
72
+
73
+ * Fix incorrect middleware execution with unanchored `RegExp`s
74
+ * perf: use plain object for internal method map
75
+
76
+ 1.3.4 / 2020-01-24
77
+ ==================
78
+
79
+ * deps: array-flatten@3.0.0
80
+ * deps: parseurl@~1.3.3
81
+ * deps: setprototypeof@1.2.0
82
+
83
+ 1.3.3 / 2018-07-06
84
+ ==================
85
+
86
+ * Fix JSDoc for `Router` constructor
87
+
88
+ 1.3.2 / 2017-09-24
89
+ ==================
90
+
91
+ * deps: debug@2.6.9
92
+ * deps: parseurl@~1.3.2
93
+ - perf: reduce overhead for full URLs
94
+ - perf: unroll the "fast-path" `RegExp`
95
+ * deps: setprototypeof@1.1.0
96
+ * deps: utils-merge@1.0.1
97
+
98
+ 1.3.1 / 2017-05-19
99
+ ==================
100
+
101
+ * deps: debug@2.6.8
102
+ - Fix `DEBUG_MAX_ARRAY_LENGTH`
103
+ - deps: ms@2.0.0
104
+
105
+ 1.3.0 / 2017-02-25
106
+ ==================
107
+
108
+ * Add `next("router")` to exit from router
109
+ * Fix case where `router.use` skipped requests routes did not
110
+ * Use `%o` in path debug to tell types apart
111
+ * deps: setprototypeof@1.0.3
112
+ * perf: add fast match path for `*` route
113
+
114
+ 1.2.0 / 2017-02-17
115
+ ==================
116
+
117
+ * Skip routing when `req.url` is not set
118
+ * deps: debug@2.6.1
119
+ - Allow colors in workers
120
+ - Deprecated `DEBUG_FD` environment variable set to `3` or higher
121
+ - Fix error when running under React Native
122
+ - Use same color for same namespace
123
+ - deps: ms@0.7.2
124
+
125
+ 1.1.5 / 2017-01-28
126
+ ==================
127
+
128
+ * deps: array-flatten@2.1.1
129
+ * deps: setprototypeof@1.0.2
130
+ - Fix using fallback even when native method exists
131
+
132
+ 1.1.4 / 2016-01-21
133
+ ==================
134
+
135
+ * deps: array-flatten@2.0.0
136
+ * deps: methods@~1.1.2
137
+ - perf: enable strict mode
138
+ * deps: parseurl@~1.3.1
139
+ - perf: enable strict mode
140
+
141
+ 1.1.3 / 2015-08-02
142
+ ==================
143
+
144
+ * Fix infinite loop condition using `mergeParams: true`
145
+ * Fix inner numeric indices incorrectly altering parent `req.params`
146
+ * deps: array-flatten@1.1.1
147
+ - perf: enable strict mode
148
+ * deps: path-to-regexp@0.1.7
149
+ - Fix regression with escaped round brackets and matching groups
150
+
151
+ 1.1.2 / 2015-07-06
152
+ ==================
153
+
154
+ * Fix hiding platform issues with `decodeURIComponent`
155
+ - Only `URIError`s are a 400
156
+ * Fix using `*` before params in routes
157
+ * Fix using capture groups before params in routes
158
+ * deps: path-to-regexp@0.1.6
159
+ * perf: enable strict mode
160
+ * perf: remove argument reassignments in routing
161
+ * perf: skip attempting to decode zero length string
162
+ * perf: use plain for loops
163
+
164
+ 1.1.1 / 2015-05-25
165
+ ==================
166
+
167
+ * Fix issue where `next('route')` in `router.param` would incorrectly skip values
168
+ * deps: array-flatten@1.1.0
169
+ * deps: debug@~2.2.0
170
+ - deps: ms@0.7.1
171
+
172
+ 1.1.0 / 2015-04-22
173
+ ==================
174
+
175
+ * Use `setprototypeof` instead of `__proto__`
176
+ * deps: debug@~2.1.3
177
+ - Fix high intensity foreground color for bold
178
+ - deps: ms@0.7.0
179
+
180
+ 1.0.0 / 2015-01-13
181
+ ==================
182
+
183
+ * Fix crash from error within `OPTIONS` response handler
184
+ * deps: array-flatten@1.0.2
185
+ - Remove redundant code path
186
+
187
+ 1.0.0-beta.3 / 2015-01-11
188
+ =========================
189
+
190
+ * Fix duplicate methods appearing in OPTIONS responses
191
+ * Fix OPTIONS responses to include the HEAD method properly
192
+ * Remove support for leading colon in `router.param(name, fn)`
193
+ * Use `array-flatten` for flattening arrays
194
+ * deps: debug@~2.1.1
195
+ * deps: methods@~1.1.1
196
+
197
+ 1.0.0-beta.2 / 2014-11-19
198
+ =========================
199
+
200
+ * Match routes iteratively to prevent stack overflows
201
+
202
+ 1.0.0-beta.1 / 2014-11-16
203
+ =========================
204
+
205
+ * Initial release ported from Express 4.x
206
+ - Altered to work without Express
package/LICENSE ADDED
@@ -0,0 +1,23 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2013 Roman Shtylman
4
+ Copyright (c) 2014-2022 Douglas Christopher Wilson
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining
7
+ a copy of this software and associated documentation files (the
8
+ 'Software'), to deal in the Software without restriction, including
9
+ without limitation the rights to use, copy, modify, merge, publish,
10
+ distribute, sublicense, and/or sell copies of the Software, and to
11
+ permit persons to whom the Software is furnished to do so, subject to
12
+ the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
21
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ [![NPM Version][npm-image]][npm-url]
2
+ [![Build Status][build-image]][build-url]
3
+
4
+ # @pirxpilot/router
5
+
6
+ This is a simplified fork of [router] with some dependencies removed.
7
+
8
+ ## License
9
+
10
+ [MIT](LICENSE)
11
+
12
+ [router]: https://github.com/pillarjs/router
13
+ [npm-image]: https://img.shields.io/npm/v/@pirxpilot/router
14
+ [npm-url]: https://npmjs.org/package/@pirxpilot/router
15
+ [build-image]: https://img.shields.io/github/actions/workflow/status/pirxpilot/router/check.yaml?branch=main
16
+ [build-url]: https://github.com/pirxpilot/router/actions/workflows/check.yaml
17
+
package/SECURITY.md ADDED
@@ -0,0 +1,24 @@
1
+ # Security Policies and Procedures
2
+
3
+ ## Reporting a Bug
4
+
5
+ The `router` team and community take all security bugs seriously. Thank you
6
+ for improving the security of the project. We appreciate your efforts and
7
+ responsible disclosure and will make every effort to acknowledge your
8
+ contributions.
9
+
10
+ Report security bugs by emailing the current owner(s) of `router`. This information
11
+ can be found in the npm registry using the command `npm owner ls router`.
12
+ If unsure or unable to get the information from the above, open an issue
13
+ in the [project issue tracker](https://github.com/pillarjs/router/issues)
14
+ asking for the current contact information.
15
+
16
+ To ensure the timely response to your report, please ensure that the entirety
17
+ of the report is contained within the email body and not solely behind a web
18
+ link or an attachment.
19
+
20
+ At least one owner will acknowledge your email within 48 hours, and will send a
21
+ more detailed response within 48 hours indicating the next steps in handling
22
+ your report. After the initial reply to your report, the owners will
23
+ endeavor to keep you informed of the progress towards a fix and full
24
+ announcement, and may ask for additional information or guidance.