tamedevil 0.0.0-alpha.4 → 0.0.0-beta.2
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/CHANGELOG.md +39 -15
- package/README.md +4 -3
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,40 @@
|
|
|
1
1
|
# tamedevil
|
|
2
2
|
|
|
3
|
+
## 0.0.0-beta.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#496](https://github.com/benjie/crystal/pull/496)
|
|
8
|
+
[`c9bfd9892`](https://github.com/benjie/crystal/commit/c9bfd989247f9433fb5b18c5175c9d8d64cd21a1)
|
|
9
|
+
Thanks [@benjie](https://github.com/benjie)! - Update dependencies (sometimes
|
|
10
|
+
through major versions).
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
[[`c9bfd9892`](https://github.com/benjie/crystal/commit/c9bfd989247f9433fb5b18c5175c9d8d64cd21a1)]:
|
|
14
|
+
- @graphile/lru@5.0.0-beta.2
|
|
15
|
+
|
|
16
|
+
## 0.0.0-beta.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [`cbd987385`](https://github.com/benjie/crystal/commit/cbd987385f99bd1248bc093ac507cc2f641ba3e8)
|
|
21
|
+
Thanks [@benjie](https://github.com/benjie)! - Bump all packages to beta
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
[[`cbd987385`](https://github.com/benjie/crystal/commit/cbd987385f99bd1248bc093ac507cc2f641ba3e8)]:
|
|
25
|
+
- @graphile/lru@5.0.0-beta.1
|
|
26
|
+
|
|
3
27
|
## 0.0.0-alpha.4
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
6
30
|
|
|
7
|
-
- [#408](https://github.com/benjie/
|
|
8
|
-
[`f5dd38aa3`](https://github.com/benjie/
|
|
31
|
+
- [#408](https://github.com/benjie/crystal/pull/408)
|
|
32
|
+
[`f5dd38aa3`](https://github.com/benjie/crystal/commit/f5dd38aa34c10f5ef0e0fa8fa48b70534ac3c294)
|
|
9
33
|
Thanks [@benjie](https://github.com/benjie)! - 'toJSON' export is now named
|
|
10
34
|
'stringifyJSON'
|
|
11
35
|
|
|
12
|
-
- [#408](https://github.com/benjie/
|
|
13
|
-
[`088d83b1d`](https://github.com/benjie/
|
|
36
|
+
- [#408](https://github.com/benjie/crystal/pull/408)
|
|
37
|
+
[`088d83b1d`](https://github.com/benjie/crystal/commit/088d83b1de2782a1a37a5998747b202a6c2b27a2)
|
|
14
38
|
Thanks [@benjie](https://github.com/benjie)! - Rename `dangerousKey` to
|
|
15
39
|
`safeKeyOrThrow` for clarity.
|
|
16
40
|
|
|
@@ -18,8 +42,8 @@
|
|
|
18
42
|
|
|
19
43
|
### Patch Changes
|
|
20
44
|
|
|
21
|
-
- [#370](https://github.com/benjie/
|
|
22
|
-
[`339fe20d0`](https://github.com/benjie/
|
|
45
|
+
- [#370](https://github.com/benjie/crystal/pull/370)
|
|
46
|
+
[`339fe20d0`](https://github.com/benjie/crystal/commit/339fe20d0c6e8600d263ce8093cd85a6ea8adbbf)
|
|
23
47
|
Thanks [@benjie](https://github.com/benjie)! - Allow multiple instances of
|
|
24
48
|
pg-sql2 and tamedevil to help handle package manager shenanigans.
|
|
25
49
|
|
|
@@ -27,41 +51,41 @@
|
|
|
27
51
|
|
|
28
52
|
### Patch Changes
|
|
29
53
|
|
|
30
|
-
- [`87e6c65a7`](https://github.com/benjie/
|
|
54
|
+
- [`87e6c65a7`](https://github.com/benjie/crystal/commit/87e6c65a7a687044895b3b6c9f131384984e7674)
|
|
31
55
|
Thanks [@benjie](https://github.com/benjie)! - Performance overhaul and new
|
|
32
56
|
caching functionality.
|
|
33
57
|
|
|
34
|
-
- [`7f857950a`](https://github.com/benjie/
|
|
58
|
+
- [`7f857950a`](https://github.com/benjie/crystal/commit/7f857950a7e4ec763c936eb6bd1fb77824041d71)
|
|
35
59
|
Thanks [@benjie](https://github.com/benjie)! - Upgrade to the latest
|
|
36
60
|
TypeScript/tslib
|
|
37
61
|
|
|
38
62
|
- Updated dependencies
|
|
39
|
-
[[`98ae00f59`](https://github.com/benjie/
|
|
40
|
-
[`7f857950a`](https://github.com/benjie/
|
|
63
|
+
[[`98ae00f59`](https://github.com/benjie/crystal/commit/98ae00f59a8ab3edc5718ad8437a0dab734a7d69),
|
|
64
|
+
[`7f857950a`](https://github.com/benjie/crystal/commit/7f857950a7e4ec763c936eb6bd1fb77824041d71)]:
|
|
41
65
|
- @graphile/lru@5.0.0-alpha.2
|
|
42
66
|
|
|
43
67
|
## 0.0.0-alpha.1
|
|
44
68
|
|
|
45
69
|
### Patch Changes
|
|
46
70
|
|
|
47
|
-
- [`759ad403d`](https://github.com/benjie/
|
|
71
|
+
- [`759ad403d`](https://github.com/benjie/crystal/commit/759ad403d71363312c5225c165873ae84b8a098c)
|
|
48
72
|
Thanks [@benjie](https://github.com/benjie)! - Alpha release - see
|
|
49
73
|
https://postgraphile.org/news/2023-04-26-version-5-alpha
|
|
50
74
|
|
|
51
75
|
- Updated dependencies
|
|
52
|
-
[[`759ad403d`](https://github.com/benjie/
|
|
76
|
+
[[`759ad403d`](https://github.com/benjie/crystal/commit/759ad403d71363312c5225c165873ae84b8a098c)]:
|
|
53
77
|
- @graphile/lru@5.0.0-alpha.1
|
|
54
78
|
|
|
55
79
|
## 0.0.0-1.1
|
|
56
80
|
|
|
57
81
|
### Patch Changes
|
|
58
82
|
|
|
59
|
-
- [#260](https://github.com/benjie/
|
|
60
|
-
[`d5312e6b9`](https://github.com/benjie/
|
|
83
|
+
- [#260](https://github.com/benjie/crystal/pull/260)
|
|
84
|
+
[`d5312e6b9`](https://github.com/benjie/crystal/commit/d5312e6b968fbeb46d074b82a41b4bdbc166598c)
|
|
61
85
|
Thanks [@benjie](https://github.com/benjie)! - TypeScript v5 is now required
|
|
62
86
|
|
|
63
87
|
- Updated dependencies
|
|
64
|
-
[[`d5312e6b9`](https://github.com/benjie/
|
|
88
|
+
[[`d5312e6b9`](https://github.com/benjie/crystal/commit/d5312e6b968fbeb46d074b82a41b4bdbc166598c)]:
|
|
65
89
|
- @graphile/lru@5.0.0-1.1
|
|
66
90
|
|
|
67
91
|
## 0.0.0-0.4
|
package/README.md
CHANGED
|
@@ -59,6 +59,7 @@ And please give some love to our featured sponsors 🤩:
|
|
|
59
59
|
</tr><tr>
|
|
60
60
|
<td align="center"><a href=""><img src="https://graphile.org/images/sponsors/chadf.png" width="90" height="90" alt="Chad Furman" /><br />Chad Furman</a> *</td>
|
|
61
61
|
<td align="center"><a href="https://stellate.co/"><img src="https://graphile.org/images/sponsors/Stellate.png" width="90" height="90" alt="Stellate" /><br />Stellate</a> *</td>
|
|
62
|
+
<td align="center"><a href="https://www.accenture.com/"><img src="https://graphile.org/images/sponsors/accenture.svg" width="90" height="90" alt="Accenture" /><br />Accenture</a> *</td>
|
|
62
63
|
</tr></table>
|
|
63
64
|
|
|
64
65
|
<em>\* Sponsors the entire Graphile suite</em>
|
|
@@ -68,13 +69,13 @@ And please give some love to our featured sponsors 🤩:
|
|
|
68
69
|
## Installation
|
|
69
70
|
|
|
70
71
|
```
|
|
71
|
-
yarn add tamedevil
|
|
72
|
+
yarn add tamedevil@beta
|
|
72
73
|
```
|
|
73
74
|
|
|
74
75
|
or
|
|
75
76
|
|
|
76
77
|
```
|
|
77
|
-
npm install --save tamedevil
|
|
78
|
+
npm install --save tamedevil@beta
|
|
78
79
|
```
|
|
79
80
|
|
|
80
81
|
## Importing
|
|
@@ -321,7 +322,7 @@ If `obj` is potentially expensive code and you need to reference it multiple
|
|
|
321
322
|
times (e.g. `` te`(${obj}.foo === 3 ? ${obj}.bar : ${obj}.baz)` ``) then you can
|
|
322
323
|
use `tmp` to create a temporary variable that stores reference to it and return
|
|
323
324
|
the result of calling `callback` passing this temporary reference. E.g.
|
|
324
|
-
``
|
|
325
|
+
``te.tmp(obj, tmp => te`(${tmp}.foo === 3 ? ${tmp}.bar : ${tmp}.baz)`)`` means
|
|
325
326
|
that the potentially expensive expression in the original `obj` variable only
|
|
326
327
|
need to be evaluated once, not 3 times.
|
|
327
328
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tamedevil",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-beta.2",
|
|
4
4
|
"description": "Build and evaluate JavaScript strings safely via tagged template literals",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -35,17 +35,17 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/graphile/heart/tree/main/utils/tamedevil",
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@types/debug": "4.1.
|
|
39
|
-
"@types/jest": "^
|
|
40
|
-
"@types/node": "
|
|
41
|
-
"jest": "^
|
|
38
|
+
"@types/debug": "4.1.8",
|
|
39
|
+
"@types/jest": "^29.5.4",
|
|
40
|
+
"@types/node": "20.5.7",
|
|
41
|
+
"jest": "^29.6.4",
|
|
42
42
|
"markdown-doctest": "^1.1.0",
|
|
43
43
|
"ts-node": "^10.9.1",
|
|
44
|
-
"typescript": "^5.
|
|
44
|
+
"typescript": "^5.2.2"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@graphile/lru": "^5.0.0-
|
|
48
|
-
"tslib": "^2.
|
|
47
|
+
"@graphile/lru": "^5.0.0-beta.2",
|
|
48
|
+
"tslib": "^2.6.2"
|
|
49
49
|
},
|
|
50
50
|
"files": [
|
|
51
51
|
"dist"
|