Skip to content

Commit eea07e8

Browse files
ctavanbroofa
authored andcommitted
Remove wzrd.in from README (#323)
* chore(doc): re-generate README * fix(doc): remove wzrd.in instruction from README The service wzrd.in seems to be unmaintained for over a year now, see browserify/wzrd.in@2f7ea69 It currently throws 502 errors on all packages as reported in #302 or https://talk.observablehq.com/t/wzrd-in-alternatives/571 As stated in #293 (comment) there are no plans to support legacy bundlers. Instead, we may consider to go for properly standardized ES6 modules in the future as has been teased in #317 However for the time being let's at least remove these broken instructions from the README. Closes #176, #302
1 parent ab33c8a commit eea07e8

File tree

2 files changed

+40
-84
lines changed

2 files changed

+40
-84
lines changed

README.md

+40-44
Original file line numberDiff line numberDiff line change
@@ -80,46 +80,6 @@ uuidv5('Hello, World!', MY_NAMESPACE); // ⇨ '630eb68f-e0fa-5ecc-887a-7c7a62614
8080

8181
```
8282

83-
## Quickstart - Browser-ready Versions
84-
85-
Browser-ready versions of this module are available via [wzrd.in](https://github.com/jfhbrook/wzrd.in).
86-
87-
For version 1 uuids:
88-
89-
```html
90-
<script src="http://wzrd.in/standalone/uuid%2Fv1@latest"></script>
91-
<script>
92-
uuidv1(); // -> v1 UUID
93-
</script>
94-
```
95-
96-
For version 3 uuids:
97-
98-
```html
99-
<script src="http://wzrd.in/standalone/uuid%2Fv3@latest"></script>
100-
<script>
101-
uuidv3('http://example.com/hello', uuidv3.URL); // -> v3 UUID
102-
</script>
103-
```
104-
105-
For version 4 uuids:
106-
107-
```html
108-
<script src="http://wzrd.in/standalone/uuid%2Fv4@latest"></script>
109-
<script>
110-
uuidv4(); // -> v4 UUID
111-
</script>
112-
```
113-
114-
For version 5 uuids:
115-
116-
```html
117-
<script src="http://wzrd.in/standalone/uuid%2Fv5@latest"></script>
118-
<script>
119-
uuidv5('http://example.com/hello', uuidv5.URL); // -> v5 UUID
120-
</script>
121-
```
122-
12383
## API
12484

12585
### Version 1
@@ -167,8 +127,26 @@ Example: In-place generation of two binary IDs
167127
```javascript
168128
// Generate two ids in an array
169129
const arr = new Array();
170-
uuidv1(null, arr, 0); // ⇨ [ 44, 94, 164, 192, 64, 103, 17, 233, 146, 52, 155, 29, 235, 77, 59, 125 ]
171-
uuidv1(null, arr, 16); // ⇨ [ 44, 94, 164, 192, 64, 103, 17, 233, 146, 52, 155, 29, 235, 77, 59, 125, 44, 94, 164, 193, 64, 103, 17, 233, 146, 52, 155, 29, 235, 77, 59, 125 ]
130+
uuidv1(null, arr, 0); //
131+
// [
132+
// 44, 94, 164,
133+
// 192, 64, 103,
134+
// 17, 233, 146,
135+
// 52, 155, 29,
136+
// 235, 77, 59,
137+
// 125
138+
// ]
139+
uuidv1(null, arr, 16); //
140+
// [
141+
// 44, 94, 164, 192,
142+
// 64, 103, 17, 233,
143+
// 146, 52, 155, 29,
144+
// 235, 77, 59, 125,
145+
// 44, 94, 164, 193,
146+
// 64, 103, 17, 233,
147+
// 146, 52, 155, 29,
148+
// 235, 77, 59, 125
149+
// ]
172150

173151
```
174152

@@ -237,8 +215,26 @@ Example: Generate two IDs in a single buffer
237215

238216
```javascript
239217
const buffer = new Array();
240-
uuidv4(null, buffer, 0); // ⇨ [ 155, 29, 235, 77, 59, 125, 75, 173, 155, 221, 43, 13, 123, 61, 203, 109 ]
241-
uuidv4(null, buffer, 16); // ⇨ [ 155, 29, 235, 77, 59, 125, 75, 173, 155, 221, 43, 13, 123, 61, 203, 109, 27, 157, 107, 205, 187, 253, 75, 45, 155, 93, 171, 141, 251, 189, 75, 237 ]
218+
uuidv4(null, buffer, 0); //
219+
// [
220+
// 155, 29, 235,
221+
// 77, 59, 125,
222+
// 75, 173, 155,
223+
// 221, 43, 13,
224+
// 123, 61, 203,
225+
// 109
226+
// ]
227+
uuidv4(null, buffer, 16); //
228+
// [
229+
// 155, 29, 235, 77,
230+
// 59, 125, 75, 173,
231+
// 155, 221, 43, 13,
232+
// 123, 61, 203, 109,
233+
// 27, 157, 107, 205,
234+
// 187, 253, 75, 45,
235+
// 155, 93, 171, 141,
236+
// 251, 189, 75, 237
237+
// ]
242238

243239
```
244240

README_js.md

-40
Original file line numberDiff line numberDiff line change
@@ -89,46 +89,6 @@ const MY_NAMESPACE = '1b671a64-40d5-491e-99b0-da01ff1f3341';
8989
uuidv5('Hello, World!', MY_NAMESPACE); // RESULT
9090
```
9191

92-
## Quickstart - Browser-ready Versions
93-
94-
Browser-ready versions of this module are available via [wzrd.in](https://github.com/jfhbrook/wzrd.in).
95-
96-
For version 1 uuids:
97-
98-
```html
99-
<script src="http://wzrd.in/standalone/uuid%2Fv1@latest"></script>
100-
<script>
101-
uuidv1(); // -> v1 UUID
102-
</script>
103-
```
104-
105-
For version 3 uuids:
106-
107-
```html
108-
<script src="http://wzrd.in/standalone/uuid%2Fv3@latest"></script>
109-
<script>
110-
uuidv3('http://example.com/hello', uuidv3.URL); // -> v3 UUID
111-
</script>
112-
```
113-
114-
For version 4 uuids:
115-
116-
```html
117-
<script src="http://wzrd.in/standalone/uuid%2Fv4@latest"></script>
118-
<script>
119-
uuidv4(); // -> v4 UUID
120-
</script>
121-
```
122-
123-
For version 5 uuids:
124-
125-
```html
126-
<script src="http://wzrd.in/standalone/uuid%2Fv5@latest"></script>
127-
<script>
128-
uuidv5('http://example.com/hello', uuidv5.URL); // -> v5 UUID
129-
</script>
130-
```
131-
13292
## API
13393

13494
### Version 1

0 commit comments

Comments
 (0)