gruber 0.4.0 → 0.5.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/CHANGELOG.md +30 -0
- package/README.md +342 -328
- package/core/configuration.d.ts +35 -23
- package/core/configuration.js +88 -33
- package/core/configuration.test.js +102 -11
- package/core/fetch-router.d.ts +3 -3
- package/core/http.d.ts +1 -1
- package/core/migrator.d.ts +6 -0
- package/core/migrator.js +23 -0
- package/core/postgres.d.ts +1 -1
- package/core/structures.d.ts +30 -20
- package/core/structures.js +79 -2
- package/core/structures.test.js +163 -2
- package/core/types.d.ts +1 -2
- package/core/types.ts +2 -1
- package/core/utilities.d.ts +12 -0
- package/core/utilities.js +45 -1
- package/core/utilities.test.js +63 -5
- package/package.json +1 -1
- package/source/configuration.d.ts +6 -9
- package/source/configuration.js +6 -3
- package/source/express-router.js +1 -1
- package/source/koa-router.d.ts +1 -1
- package/source/koa-router.js +1 -1
- package/source/mod.js +0 -2
- package/source/node-router.d.ts +1 -2
- package/source/postgres.d.ts +1 -1
- package/source/postgres.js +2 -17
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
This file documents notable changes to the project
|
|
4
4
|
|
|
5
|
+
## 0.5.0
|
|
6
|
+
|
|
7
|
+
**new**
|
|
8
|
+
|
|
9
|
+
- Add the second argument to `config.getUsage(struct, currentValue)` so that is also documents the current configuration value after the default one
|
|
10
|
+
- `ConfigurationOptions#readTextField` accepts URLs and strings
|
|
11
|
+
- Allow HTTP `OPTIONS` method
|
|
12
|
+
- Experimental `Structure.union` type
|
|
13
|
+
- Experimental `Configuration.array` type
|
|
14
|
+
- Non `[Configuration.spec]` types are allowed in configuration (and ignored)
|
|
15
|
+
- Added `trimIndentation` utility
|
|
16
|
+
|
|
17
|
+
**fixes**
|
|
18
|
+
|
|
19
|
+
- Fix `formatMarkdownTable` to generate a valid markdown table
|
|
20
|
+
- `ExpressRouter` & `KoaRouter` are processing routes again
|
|
21
|
+
- Update deno postgres type-only dependency from `3.4.3` to `3.4.4`
|
|
22
|
+
- `Structure.url` handles bad URLs better
|
|
23
|
+
- Ignore `$schema` field when parsing configuration
|
|
24
|
+
|
|
25
|
+
## 0.4.1
|
|
26
|
+
|
|
27
|
+
**fixes**
|
|
28
|
+
|
|
29
|
+
- `getDenoConfigOptions`, `getDenoConfiguration`, `getNodeConfigOptions` and `getNodeConfiguration` all have a default options of `{}`
|
|
30
|
+
- The Configuration markdown tables calculates the width properly when there are non-strings (URLs) in there
|
|
31
|
+
- The `Structure.boolean` method correctly types the optional fallback argument.
|
|
32
|
+
- Add experimental `Structure.literal` construct
|
|
33
|
+
- `Structure.object` fails if there are additional fields or the value is an instance of a class
|
|
34
|
+
|
|
5
35
|
## 0.4.0
|
|
6
36
|
|
|
7
37
|
**new**
|