Skip to content

Commit a5072bf

Browse files
authored
fix: failing tests on windows (#163)
1 parent fd602be commit a5072bf

File tree

12 files changed

+76
-42
lines changed

12 files changed

+76
-42
lines changed

.github/API/application.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `app` object conventionally denotes the Opine application. Create it by
88
calling the top-level `opine()` function exported by the Opine module:
99

1010
```ts
11-
import opine from "https://deno.land/x/[email protected].3/mod.ts";
11+
import opine from "https://deno.land/x/[email protected].4/mod.ts";
1212

1313
const app = opine();
1414

@@ -69,7 +69,7 @@ sub-app was mounted.
6969
> to a route.
7070
7171
```ts
72-
import opine from "https://deno.land/x/[email protected].3/mod.ts";
72+
import opine from "https://deno.land/x/[email protected].4/mod.ts";
7373

7474
const app = opine(); // the main app
7575
const admin = opine(); // the sub app
@@ -487,7 +487,7 @@ starts listening for requests - this is provided for legacy reasons to aid in
487487
transitions from Express on Node.
488488

489489
```ts
490-
import opine from "https://deno.land/x/[email protected].3/mod.ts";
490+
import opine from "https://deno.land/x/[email protected].4/mod.ts";
491491

492492
const app = opine();
493493

@@ -523,7 +523,7 @@ This method is supported for legacy reasons to aid in transitions from Express
523523
on Node.
524524

525525
```ts
526-
import opine from "https://deno.land/x/[email protected].3/mod.ts";
526+
import opine from "https://deno.land/x/[email protected].4/mod.ts";
527527

528528
const app = opine();
529529
const PORT = 3000;
@@ -542,7 +542,7 @@ starts listening for requests - this is provided for legacy reasons to aid in
542542
transitions from Express on Node.
543543

544544
```ts
545-
import opine from "https://deno.land/x/[email protected].3/mod.ts";
545+
import opine from "https://deno.land/x/[email protected].4/mod.ts";
546546

547547
const app = opine();
548548

@@ -560,7 +560,7 @@ starts listening for requests - this is provided for legacy reasons to aid in
560560
transitions from Express on Node.
561561

562562
```ts
563-
import opine from "https://deno.land/x/[email protected].3/mod.ts";
563+
import opine from "https://deno.land/x/[email protected].4/mod.ts";
564564

565565
const app = opine();
566566

.github/API/middlewares.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ reasons.
2828
> `toString` may not be a function and instead a string or other user-input.
2929
3030
```ts
31-
import { json, opine } from "https://deno.land/x/[email protected].3/mod.ts";
31+
import { json, opine } from "https://deno.land/x/[email protected].4/mod.ts";
3232

3333
const app = opine();
3434

@@ -77,7 +77,7 @@ reasons.
7777
> recommended.
7878
7979
```ts
80-
import { opine, raw } from "https://deno.land/x/[email protected].3/mod.ts";
80+
import { opine, raw } from "https://deno.land/x/[email protected].4/mod.ts";
8181

8282
const app = opine();
8383

@@ -230,7 +230,7 @@ reasons.
230230
> recommended.
231231
232232
```ts
233-
import { opine, text } from "https://deno.land/x/[email protected].3/mod.ts";
233+
import { opine, text } from "https://deno.land/x/[email protected].4/mod.ts";
234234

235235
const app = opine();
236236

@@ -277,7 +277,7 @@ reasons.
277277
> `toString` may not be a function and instead a string or other user-input.
278278
279279
```ts
280-
import { opine, urlencoded } from "https://deno.land/x/[email protected].3/mod.ts";
280+
import { opine, urlencoded } from "https://deno.land/x/[email protected].4/mod.ts";
281281

282282
const app = opine();
283283

.github/API/opine.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ Creates an Opine application. The `opine()` function is a top-level function
88
exported by the Opine module:
99

1010
```ts
11-
import opine from "https://deno.land/x/[email protected].3/mod.ts";
11+
import opine from "https://deno.land/x/[email protected].4/mod.ts";
1212

1313
const app = opine();
1414
```
1515

1616
The `opine()` function is also exported as a named export:
1717

1818
```ts
19-
import { opine } from "https://deno.land/x/[email protected].3/mod.ts";
19+
import { opine } from "https://deno.land/x/[email protected].4/mod.ts";
2020

2121
const app = opine();
2222
```

.github/API/request.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ import {
101101
json,
102102
opine,
103103
urlencoded,
104-
} from "https://deno.land/x/[email protected].3/mod.ts";
104+
} from "https://deno.land/x/[email protected].4/mod.ts";
105105

106106
const app = opine();
107107

@@ -118,7 +118,7 @@ The following example shows how to implement your own simple body-parsing
118118
middleware to transform `req.body` into a raw string:
119119

120120
```ts
121-
import opine from "https://deno.land/x/[email protected].3/mod.ts";
121+
import opine from "https://deno.land/x/[email protected].4/mod.ts";
122122

123123
import { readAll } from "https://deno.land/[email protected]/streams/conversion.ts";
124124

.github/API/router.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Opine has a top-level named function export `Router()` that creates a new
1616
`router` object.
1717

1818
```ts
19-
import { Router } from "https://deno.land/x/[email protected].3/mod.ts";
19+
import { Router } from "https://deno.land/x/[email protected].4/mod.ts";
2020

2121
const router = Router(options);
2222
```
@@ -260,7 +260,7 @@ function defined and work their way "down" the middleware stack processing for
260260
each path they match.
261261

262262
```ts
263-
import opine, { Router } from "https://deno.land/x/[email protected].3/mod.ts";
263+
import opine, { Router } from "https://deno.land/x/[email protected].4/mod.ts";
264264

265265
const app = opine();
266266
const router = Router();

.github/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# ChangeLog
22

3+
## [2.1.4] - 12-03-2022
4+
5+
- fix: handle new OS error thrown for long filenames on windows
6+
- test: compensate for WebSocket messages fired after close resulting in leaking timer ops
7+
38
## [2.1.3] - 12-03-2022
49

510
- deps: support Deno `1.19.3`, std `0.129.0`, and other minor dep upgrades.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Fast, minimalist web framework for <a href="https://deno.land/">Deno</a> ported
4141
## Getting Started
4242

4343
```ts
44-
import { opine } from "https://deno.land/x/[email protected].3/mod.ts";
44+
import { opine } from "https://deno.land/x/[email protected].4/mod.ts";
4545

4646
const app = opine();
4747

@@ -65,14 +65,14 @@ Before importing, [download and install Deno](https://deno.land/#installation).
6565
You can then import Opine straight into your project:
6666

6767
```ts
68-
import { opine } from "https://deno.land/x/[email protected].3/mod.ts";
68+
import { opine } from "https://deno.land/x/[email protected].4/mod.ts";
6969
```
7070

7171
Opine is also available on [nest.land](https://nest.land/package/opine), a
7272
package registry for Deno on the Blockchain.
7373

7474
```ts
75-
import { opine } from "https://x.nest.land/[email protected].3/mod.ts";
75+
import { opine } from "https://x.nest.land/[email protected].4/mod.ts";
7676
```
7777

7878
## Features

docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ <h2>Table of Contents</h2>
105105
<a href="#getting-started" id="getting-started" style="color: inherit; text-decoration: none;">
106106
<h2>Getting Started</h2>
107107
</a>
108-
<pre><code class="language-ts"><span class="hljs-keyword">import</span> { opine } <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;https://deno.land/x/[email protected].3/mod.ts&quot;</span>;
108+
<pre><code class="language-ts"><span class="hljs-keyword">import</span> { opine } <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;https://deno.land/x/[email protected].4/mod.ts&quot;</span>;
109109

110110
<span class="hljs-keyword">const</span> app = opine();
111111

@@ -125,11 +125,11 @@ <h2>Installation</h2>
125125
repo and via the <a href="https://deno.land/x">Deno Registry</a>.</p>
126126
<p>Before importing, <a href="https://deno.land/#installation">download and install Deno</a>.</p>
127127
<p>You can then import Opine straight into your project:</p>
128-
<pre><code class="language-ts"><span class="hljs-keyword">import</span> { opine } <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;https://deno.land/x/[email protected].3/mod.ts&quot;</span>;
128+
<pre><code class="language-ts"><span class="hljs-keyword">import</span> { opine } <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;https://deno.land/x/[email protected].4/mod.ts&quot;</span>;
129129
</code></pre>
130130
<p>Opine is also available on <a href="https://nest.land/package/opine">nest.land</a>, a
131131
package registry for Deno on the Blockchain.</p>
132-
<pre><code class="language-ts"><span class="hljs-keyword">import</span> { opine } <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;https://x.nest.land/[email protected].3/mod.ts&quot;</span>;
132+
<pre><code class="language-ts"><span class="hljs-keyword">import</span> { opine } <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;https://x.nest.land/[email protected].4/mod.ts&quot;</span>;
133133
</code></pre>
134134
<a href="#features" id="features" style="color: inherit; text-decoration: none;">
135135
<h2>Features</h2>

egg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "opine",
33
"description": "Fast, minimalist web framework for Deno ported from ExpressJS.",
4-
"version": "2.1.3",
4+
"version": "2.1.4",
55
"repository": "https://github.com/cmorten/opine",
66
"stable": true,
77
"checkFormat": false,

src/utils/send.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const MAX_MAXAGE = 60 * 60 * 24 * 365 * 1000; // 1 year
5959
const UP_PATH_REGEXP = /(?:^|[\\/])\.\.(?:[\\/]|$)/;
6060

6161
const ENOENT_REGEXP = /\(os error 2\)/;
62-
const ENAMETOOLONG_REGEXP = /\(os error 63\)|\(os error 36\)/;
62+
const ENAMETOOLONG_REGEXP = /\(os error 63\)|\(os error 36\)|\(os error 123\)/;
6363

6464
/**
6565
* Normalize the index option into an array.

0 commit comments

Comments
 (0)