standard-log 13.3.1 → 13.3.3
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 +989 -0
- package/cjs/log_store.d.ts.map +1 -1
- package/cjs/log_store.js +7 -7
- package/cjs/log_store.js.map +1 -1
- package/cjs/memory.d.ts.map +1 -1
- package/cjs/memory.js +1 -2
- package/cjs/memory.js.map +1 -1
- package/cjs/platform.browser.js +2 -2
- package/cjs/platform.browser.js.map +1 -1
- package/cjs/platform.js +2 -2
- package/cjs/platform.js.map +1 -1
- package/cjs/record.d.ts +9 -0
- package/cjs/record.d.ts.map +1 -0
- package/cjs/record.js +15 -0
- package/cjs/record.js.map +1 -0
- package/cjs/standard_log.ctx.js +1 -1
- package/cjs/standard_log.ctx.js.map +1 -1
- package/cjs/standard_log.d.ts.map +1 -1
- package/cjs/standard_log.js +4 -3
- package/cjs/standard_log.js.map +1 -1
- package/cjs/types.d.ts +5 -2
- package/cjs/types.d.ts.map +1 -1
- package/dist/standard-log.esm.js +22 -97
- package/dist/standard-log.esm.js.map +1 -1
- package/dist/standard-log.iife.js +22 -97
- package/dist/standard-log.iife.js.map +1 -1
- package/esm/log_store.d.ts.map +1 -1
- package/esm/log_store.js +4 -4
- package/esm/log_store.js.map +1 -1
- package/esm/memory.d.ts.map +1 -1
- package/esm/memory.js +1 -2
- package/esm/memory.js.map +1 -1
- package/esm/platform.browser.js +1 -1
- package/esm/platform.browser.js.map +1 -1
- package/esm/platform.js +1 -1
- package/esm/platform.js.map +1 -1
- package/esm/record.d.ts +9 -0
- package/esm/record.d.ts.map +1 -0
- package/esm/record.js +14 -0
- package/esm/record.js.map +1 -0
- package/esm/standard_log.ctx.js +1 -1
- package/esm/standard_log.ctx.js.map +1 -1
- package/esm/standard_log.d.ts.map +1 -1
- package/esm/standard_log.js +2 -1
- package/esm/standard_log.js.map +1 -1
- package/esm/types.d.ts +5 -2
- package/esm/types.d.ts.map +1 -1
- package/package.json +7 -7
- package/ts/log_store.ts +4 -6
- package/ts/memory.ts +1 -2
- package/ts/platform.browser.ts +1 -1
- package/ts/platform.ts +1 -1
- package/ts/record.ts +9 -0
- package/ts/standard_log.ctx.ts +1 -1
- package/ts/standard_log.ts +2 -1
- package/ts/types.ts +5 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,989 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
## 13.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 96bd5be: Include `CHANGELOG.md` in the published package.
|
|
8
|
+
|
|
9
|
+
## 13.3.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- f8750f1: Inline the `type-plus` helpers and the `StackTraceMeta` type so the CommonJS build no longer depends on the ESM-only `type-plus` and `@just-func/types`.
|
|
14
|
+
Both packages are removed from `dependencies`.
|
|
15
|
+
|
|
16
|
+
## 13.3.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 654cdb4: Update `type-plus` to `8.0.0-beta.12` and `@just-func/types` to `^0.6.1`.
|
|
21
|
+
|
|
22
|
+
`type-plus` 8.0.0-beta.12 no longer exports `unpartial` or `reduceKey`, so `standard-log` now depends on `unpartial` directly and uses `reduceByKey`.
|
|
23
|
+
|
|
24
|
+
## 13.3.0
|
|
25
|
+
|
|
26
|
+
### Minor Changes
|
|
27
|
+
|
|
28
|
+
- b95eeeb: Bump `iso-error` from `^6.0.5` to `^7.0.0`.
|
|
29
|
+
|
|
30
|
+
`iso-error@7.0.0`'s major came from raising `engines.node` to `>= 20` (needed for
|
|
31
|
+
`type-plus@8`'s `unpartial@^1.0.7` dependency) and pinning `type-plus` as a
|
|
32
|
+
devDependency — not from an API change. `IsoError` and `ModuleError`, the types
|
|
33
|
+
`standard-log` re-exports from `iso-error` in `errors.ts` (and which leak into the
|
|
34
|
+
emitted `.d.ts`), are unchanged in shape between `6.0.5` and `7.0.0`, so this ships
|
|
35
|
+
as `minor` rather than `major` here, matching the same reasoning used for the
|
|
36
|
+
identical bump in `cyberuni/assertron#359`.
|
|
37
|
+
|
|
38
|
+
This lets consumers of `standard-log` drop a duplicate `iso-error@6` from their
|
|
39
|
+
dependency tree now that `iso-error@7` is the only version other parts of the graph
|
|
40
|
+
(e.g. `@unional/fixture`) resolve.
|
|
41
|
+
|
|
42
|
+
## 13.2.0
|
|
43
|
+
|
|
44
|
+
### Minor Changes
|
|
45
|
+
|
|
46
|
+
- 6b69b99: Widen `@just-func/types` from `^0.5.0` to `^0.6.0`, and pin `type-plus` to `8.0.0-beta.10`, exactly.
|
|
47
|
+
|
|
48
|
+
**The unblock: `@just-func/types`.** The published `@just-func/types@0.5.1` still depends
|
|
49
|
+
on `type-plus@^5.0.0`, so every consumer of `standard-log` dragged `type-plus@5.6.0` into
|
|
50
|
+
its tree regardless of what else was pinned. `@just-func/types@0.6.0` is already on
|
|
51
|
+
`type-plus@8.0.0-beta.10`, but `^0.5.0` does not admit a `0.x` minor bump, so the widen to
|
|
52
|
+
`^0.6.0` is required to let it resolve. This removes a transitive `type-plus@5.6.0` from
|
|
53
|
+
every consumer's tree — that is the user-visible benefit of this release.
|
|
54
|
+
|
|
55
|
+
This is not a major bump: `standard-log@13.1.0`, the last published version, already
|
|
56
|
+
declared `type-plus: ^8.0.0-beta.10`, so the `typescript >= 5.6.0` peer it carries already
|
|
57
|
+
reached consumers in that release. Tightening the range to an exact version does not add
|
|
58
|
+
a new peer requirement, and building the package confirms no `type-plus` types leak into
|
|
59
|
+
the emitted `.d.ts`. The `@just-func/types` widening does change the resolved runtime
|
|
60
|
+
dependency tree for consumers (a `minor`-worthy change on its own), so this release is a
|
|
61
|
+
`minor` overall.
|
|
62
|
+
|
|
63
|
+
**Why pin instead of caret-range `type-plus`.** `^8.0.0-beta.10` resolves to
|
|
64
|
+
`>=8.0.0-beta.10 <9.0.0-0`, which admits every later 8.0.0 prerelease plus `8.0.0` and
|
|
65
|
+
`8.1.0`. 8 is a prerelease line where breaking changes land between betas — beta.10 to
|
|
66
|
+
beta.11 changed `Equal`'s signature and removed `isType.f`. An exact version makes each
|
|
67
|
+
bump a reviewable PR rather than something a lockfile refresh can do silently. Move back
|
|
68
|
+
to a caret once 8.0.0 is stable.
|
|
69
|
+
|
|
70
|
+
No source changes were needed for either move: this package's `type-plus` and
|
|
71
|
+
`@just-func/types` usage is unaffected by the 7 -> 8 and 0.5 -> 0.6 type surface changes.
|
|
72
|
+
|
|
73
|
+
## 13.1.0
|
|
74
|
+
|
|
75
|
+
### Minor Changes
|
|
76
|
+
|
|
77
|
+
- bd1b2e8: Move `type-plus` from `^7.0.0` to `^8.0.0-beta.10`.
|
|
78
|
+
|
|
79
|
+
`type-plus` 7 depends on `tersify` ^3, and because `type-plus` is a runtime dependency of
|
|
80
|
+
`standard-log`, that pulled `tersify` 3.x into every downstream consumer's tree — including
|
|
81
|
+
`@just-web/log`, which ends up with two majors of `tersify` installed side by side.
|
|
82
|
+
`type-plus` 8 depends on `tersify` ^4, so this deduplicates that for consumers.
|
|
83
|
+
|
|
84
|
+
The range is a caret on the beta so it resolves forward to `8.0.0` once that ships.
|
|
85
|
+
|
|
86
|
+
Bumped as a minor rather than a patch: no public type or runtime API of `standard-log`
|
|
87
|
+
changes (the built `.d.ts` files reference no `type-plus` types, and all four packages
|
|
88
|
+
build, typecheck, and test unchanged), but consumers do get a different major of a
|
|
89
|
+
runtime dependency, which is more than a bug fix.
|
|
90
|
+
|
|
91
|
+
## 13.0.2
|
|
92
|
+
|
|
93
|
+
## 13.0.1
|
|
94
|
+
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- f41485e: Build with tsdown instead of webpack and multi-config `tsc`.
|
|
98
|
+
|
|
99
|
+
No API changes. `cjs/`, `esm/`, `ts/` and their `.d.ts`, `.d.ts.map` and `.js.map` files keep the
|
|
100
|
+
same paths and the same per-module shape, so every import — deep imports included — resolves as
|
|
101
|
+
before. What changes in the tarball:
|
|
102
|
+
|
|
103
|
+
- `dist/*.es5.js` (and `standard-log-color`'s `dist/*.nodenext.js`) are replaced by
|
|
104
|
+
`dist/*.iife.js`, the same global-variable browser bundle built at ES2015. ES5 output is no longer
|
|
105
|
+
producible: TypeScript 7 removed `target: ES5`, and rolldown supports ES2015 and later only. These
|
|
106
|
+
bundles are not referenced by `exports`, `main`, `module`, `browser`, or the README.
|
|
107
|
+
- `dist/*.gz` copies are no longer published. Compressing on the wire is the server's job.
|
|
108
|
+
- `dist/*.esm.js` keeps its path.
|
|
109
|
+
|
|
110
|
+
## 13.0.0
|
|
111
|
+
|
|
112
|
+
### Patch Changes
|
|
113
|
+
|
|
114
|
+
- f79033b: Point package metadata (`repository`, `homepage`, `bugs`) at the `cyberuni` organization following the repository transfer.
|
|
115
|
+
|
|
116
|
+
## 12.1.2
|
|
117
|
+
|
|
118
|
+
### Patch Changes
|
|
119
|
+
|
|
120
|
+
- b15d65c: Fix JSDoc typo
|
|
121
|
+
|
|
122
|
+
## 12.1.1
|
|
123
|
+
|
|
124
|
+
### Patch Changes
|
|
125
|
+
|
|
126
|
+
- 0c0e0ce: Add `emitLog` support for test
|
|
127
|
+
|
|
128
|
+
## 12.1.0
|
|
129
|
+
|
|
130
|
+
### Minor Changes
|
|
131
|
+
|
|
132
|
+
- 8bb6167: Add `memoryReporter.getMessagesWithLevel()` method.
|
|
133
|
+
|
|
134
|
+
### Patch Changes
|
|
135
|
+
|
|
136
|
+
- 760e33d: fix example doc
|
|
137
|
+
|
|
138
|
+
## 12.0.5
|
|
139
|
+
|
|
140
|
+
### Patch Changes
|
|
141
|
+
|
|
142
|
+
- 9729992: Adjust jsdoc.
|
|
143
|
+
|
|
144
|
+
Remove the `import { ... } from 'standard-log'` from the examples.
|
|
145
|
+
This allows the type and docs to be reused when other packages exports the types or instances.
|
|
146
|
+
|
|
147
|
+
## 12.0.4
|
|
148
|
+
|
|
149
|
+
### Patch Changes
|
|
150
|
+
|
|
151
|
+
- 6446396: Add JSDocs to the standard log instance.
|
|
152
|
+
|
|
153
|
+
## 12.0.3
|
|
154
|
+
|
|
155
|
+
### Patch Changes
|
|
156
|
+
|
|
157
|
+
- f14baff: Expose MemroyLogReporter in `/testing`
|
|
158
|
+
|
|
159
|
+
## 12.0.2
|
|
160
|
+
|
|
161
|
+
### Patch Changes
|
|
162
|
+
|
|
163
|
+
- Add `testing` folder to `exports` field.
|
|
164
|
+
|
|
165
|
+
## 12.0.1
|
|
166
|
+
|
|
167
|
+
### Patch Changes
|
|
168
|
+
|
|
169
|
+
- 4d4e7b3: Include testing folder
|
|
170
|
+
|
|
171
|
+
## 12.0.0
|
|
172
|
+
|
|
173
|
+
### Major Changes
|
|
174
|
+
|
|
175
|
+
- 35bcd49: `createStandardLogForTest()` now takes in `options` instead of just `level`.
|
|
176
|
+
|
|
177
|
+
This allows the creation of the memory log reporter to be externalized.
|
|
178
|
+
|
|
179
|
+
- ae4651e: Move `createStandardLogForTest()` to `standard-log/testing`.
|
|
180
|
+
|
|
181
|
+
## 11.5.2
|
|
182
|
+
|
|
183
|
+
### Patch Changes
|
|
184
|
+
|
|
185
|
+
- 4f549d3: add `module` field back and adjust `exports` field.
|
|
186
|
+
|
|
187
|
+
Having `module` field allows the package to be used by Webpack 4.
|
|
188
|
+
|
|
189
|
+
## 11.5.1
|
|
190
|
+
|
|
191
|
+
### Patch Changes
|
|
192
|
+
|
|
193
|
+
- c7229b2: Update `type-plus`
|
|
194
|
+
|
|
195
|
+
## 11.5.0
|
|
196
|
+
|
|
197
|
+
### Minor Changes
|
|
198
|
+
|
|
199
|
+
- e275270: Supply `logLevel` to `log.on()` handler.
|
|
200
|
+
|
|
201
|
+
## 11.4.1
|
|
202
|
+
|
|
203
|
+
### Patch Changes
|
|
204
|
+
|
|
205
|
+
- bf28064: Export `GetLogger`.
|
|
206
|
+
|
|
207
|
+
## 11.4.0
|
|
208
|
+
|
|
209
|
+
### Minor Changes
|
|
210
|
+
|
|
211
|
+
- 278afbf: Add `GetLogger` type
|
|
212
|
+
|
|
213
|
+
## 11.3.0
|
|
214
|
+
|
|
215
|
+
## 11.2.3
|
|
216
|
+
|
|
217
|
+
### Patch Changes
|
|
218
|
+
|
|
219
|
+
- 41be820: Clean up distribution.
|
|
220
|
+
|
|
221
|
+
Remove extra files.
|
|
222
|
+
|
|
223
|
+
- cd7e183: Update deps
|
|
224
|
+
|
|
225
|
+
## 11.2.2
|
|
226
|
+
|
|
227
|
+
### Patch Changes
|
|
228
|
+
|
|
229
|
+
- 5b25a2d: Update homepage url
|
|
230
|
+
|
|
231
|
+
## 11.2.1
|
|
232
|
+
|
|
233
|
+
### Patch Changes
|
|
234
|
+
|
|
235
|
+
- affd50f: improve `toLogLevel()` return type to `number | undefined`
|
|
236
|
+
|
|
237
|
+
## 11.2.0
|
|
238
|
+
|
|
239
|
+
### Minor Changes
|
|
240
|
+
|
|
241
|
+
- b1d77c7: Instead of throwing `InvalidId`, now ID with invalid characters are replaced with `-`.
|
|
242
|
+
This make it easier to use when the ID are generated or contain some macro or formatting characters.
|
|
243
|
+
|
|
244
|
+
The errors are **deprecated** as a result.
|
|
245
|
+
They will be removed in the future.
|
|
246
|
+
|
|
247
|
+
## 11.1.0
|
|
248
|
+
|
|
249
|
+
### Patch Changes
|
|
250
|
+
|
|
251
|
+
- fdeddda: Add `getNonConsoleLogger()`.
|
|
252
|
+
|
|
253
|
+
This is useful for specific cases where you want to write a log to the reporters but do not want to show it in the console.
|
|
254
|
+
For example, log errors within catch block or `window.onerror`.
|
|
255
|
+
|
|
256
|
+
Because of this, all reporters now must have a non-empty `id`.
|
|
257
|
+
It should be the case but was not enforced before.
|
|
258
|
+
|
|
259
|
+
Fixing `createStandardLogForTest()` to not set itself as the global instance anymore.
|
|
260
|
+
|
|
261
|
+
Adjust some records to use `record()/Object.create(null)`.
|
|
262
|
+
|
|
263
|
+
## 11.0.1
|
|
264
|
+
|
|
265
|
+
### Patch Changes
|
|
266
|
+
|
|
267
|
+
- 2dd09cd: The `logLevels` values are now typed `as const` to make it easier to check when using IDE.
|
|
268
|
+
|
|
269
|
+
## 11.0.0
|
|
270
|
+
|
|
271
|
+
### Minor Changes
|
|
272
|
+
|
|
273
|
+
- 00ffb1d: Add `memoryReporter.emit()`.
|
|
274
|
+
|
|
275
|
+
This make it a lot easier to inspect the logs in the console when needed.
|
|
276
|
+
|
|
277
|
+
## 10.3.0
|
|
278
|
+
|
|
279
|
+
### Minor Changes
|
|
280
|
+
|
|
281
|
+
- 0500d1e: Add `memory.getLogMessagesWithIdAndLevel()` for easier testing
|
|
282
|
+
|
|
283
|
+
## 10.2.1
|
|
284
|
+
|
|
285
|
+
### Patch Changes
|
|
286
|
+
|
|
287
|
+
- e9cf556: Loosen `DEFAULT_LOG_METHOD_NAMES` type to `string[]`.
|
|
288
|
+
|
|
289
|
+
## 10.2.0
|
|
290
|
+
|
|
291
|
+
### Minor Changes
|
|
292
|
+
|
|
293
|
+
- Add `DEFAULT_LOG_METHOD_NAMES`.
|
|
294
|
+
|
|
295
|
+
This is useful if you want to manipulate the method names.
|
|
296
|
+
|
|
297
|
+
## 10.1.0
|
|
298
|
+
|
|
299
|
+
### Minor Changes
|
|
300
|
+
|
|
301
|
+
- db2cc1c: Add `createMemoryLogReporter().getLogMessages()`.
|
|
302
|
+
|
|
303
|
+
This is easier to use during tests compare to `getLogMessage()`
|
|
304
|
+
|
|
305
|
+
## 10.0.0
|
|
306
|
+
|
|
307
|
+
### Major Changes
|
|
308
|
+
|
|
309
|
+
- 19dbee6: Add `consoleFormatter`.
|
|
310
|
+
It will be used as the default formatter instead of `plainLogFormatter`,
|
|
311
|
+
so that the default log output will be the same as vanilla `console.log`.
|
|
312
|
+
|
|
313
|
+
## 9.1.8
|
|
314
|
+
|
|
315
|
+
### Patch Changes
|
|
316
|
+
|
|
317
|
+
- 1cf4cef: Fix an issue when formatter is set to `undefined`.
|
|
318
|
+
|
|
319
|
+
updated `unpartial` and `type-plus`.
|
|
320
|
+
|
|
321
|
+
## 9.1.7
|
|
322
|
+
|
|
323
|
+
### Patch Changes
|
|
324
|
+
|
|
325
|
+
- bbeca2f: Fix log methods props in generic environment
|
|
326
|
+
|
|
327
|
+
## 9.1.6
|
|
328
|
+
|
|
329
|
+
### Patch Changes
|
|
330
|
+
|
|
331
|
+
- 5050737: Export `StandardLogForTest` types at top level
|
|
332
|
+
|
|
333
|
+
## 9.1.5
|
|
334
|
+
|
|
335
|
+
### Patch Changes
|
|
336
|
+
|
|
337
|
+
- d186055: Add `StandardLogForTest` type
|
|
338
|
+
- c7bfa46: Update type-plus
|
|
339
|
+
|
|
340
|
+
## 9.1.4
|
|
341
|
+
|
|
342
|
+
### Patch Changes
|
|
343
|
+
|
|
344
|
+
- 69d60ce: Downgrade output to ES2019
|
|
345
|
+
- 023ba01: Default `StardardLogOptions<N = LogMethodNames>`
|
|
346
|
+
|
|
347
|
+
## 9.1.3
|
|
348
|
+
|
|
349
|
+
### Patch Changes
|
|
350
|
+
|
|
351
|
+
- 93f42fd: Adjust `getLogger()` signature back to `(id: string, options?: LoggerOptions)`.
|
|
352
|
+
|
|
353
|
+
Will need some utility functions to be in-place before pushing the `just-func` paradigm to JS/TS.
|
|
354
|
+
|
|
355
|
+
Currently, JS/TS is not ready for `const [,{ error }] = getLogger()` way to do things.
|
|
356
|
+
|
|
357
|
+
It is possible, but should investigate to see if there is a better way to make the transition seamless.
|
|
358
|
+
|
|
359
|
+
Likely some transformation WebAssembly runtime written in rust would be needed.
|
|
360
|
+
|
|
361
|
+
## 9.1.2
|
|
362
|
+
|
|
363
|
+
### Patch Changes
|
|
364
|
+
|
|
365
|
+
- c427571: Exports `suppressLogs()`.
|
|
366
|
+
|
|
367
|
+
The global instance will be configured when `createStandardLog()` is called,
|
|
368
|
+
if `configGlobal()` is not called before.
|
|
369
|
+
|
|
370
|
+
## 9.1.1
|
|
371
|
+
|
|
372
|
+
### Patch Changes
|
|
373
|
+
|
|
374
|
+
- a7b47b6: Add warning when `configGlobal()` is called more than once.
|
|
375
|
+
|
|
376
|
+
## 9.1.0
|
|
377
|
+
|
|
378
|
+
### Minor Changes
|
|
379
|
+
|
|
380
|
+
- 6ed55c4: Adjust the `StandardLog` and `StandardLogOptions` types.
|
|
381
|
+
|
|
382
|
+
Add back `getLogger()`.
|
|
383
|
+
Add `configGlobal()`.
|
|
384
|
+
|
|
385
|
+
Remove the `console.debug` check that is only useful for NodeJS 9.3 or below.
|
|
386
|
+
|
|
387
|
+
## 9.0.1
|
|
388
|
+
|
|
389
|
+
### Patch Changes
|
|
390
|
+
|
|
391
|
+
- e04eac6: `getLogger()` provides default log method names in generic environment.
|
|
392
|
+
|
|
393
|
+
## 9.0.0
|
|
394
|
+
|
|
395
|
+
### Major Changes
|
|
396
|
+
|
|
397
|
+
`standard-log` 9.0 is a significant update from 8.0.
|
|
398
|
+
|
|
399
|
+
How to use the library is greatly changed,
|
|
400
|
+
so that it can be used in micro-app environment.
|
|
401
|
+
|
|
402
|
+
Now, instead of calling `config()` which configure `standard-log` globally (with the help of `global-store`),
|
|
403
|
+
calling `createStandardLog()` returns an isolated log system which can be used within an application.
|
|
404
|
+
|
|
405
|
+
The following functions/features are removed and replaced:
|
|
406
|
+
|
|
407
|
+
- `config()` -> `createStandardLog()`
|
|
408
|
+
- `configForTest()` -> `createStandardLogForTest()`
|
|
409
|
+
- `getLogger()` -> `createStandardLog().getLogger()`
|
|
410
|
+
- `captureLogs()` -> removed
|
|
411
|
+
- `addCustomLogLeve()` -> `createStandardLog({ customLevels: { ... } })`
|
|
412
|
+
- `clearCustomLogLevel()` -> removed
|
|
413
|
+
- `getCustomLevel()` -> removed
|
|
414
|
+
- `getCustomLevelName()` -> `createStandardLog().toLogLevel()`
|
|
415
|
+
- `getCustomLevels()` -> removed
|
|
416
|
+
- `ProhibitedDuringProduction` -> removed
|
|
417
|
+
- `InvalidEnvVar` -> removed
|
|
418
|
+
- `getLogLevel()` -> `createStandardLog().toLogLevel()`
|
|
419
|
+
- `setLogLevel()` -> removed
|
|
420
|
+
- `setLogLevels()` -> removed
|
|
421
|
+
- `getAllLogLevels()` -> removed
|
|
422
|
+
- `addLogReporter()` -> `createStandardLog({ reporters: [...] })`
|
|
423
|
+
- `getLogReporter()` -> removed
|
|
424
|
+
- `hasConsoleReporter()` -> removed
|
|
425
|
+
- `getConsoleReporter()` -> removed
|
|
426
|
+
- `clearLogReporters()` -> removed
|
|
427
|
+
- `shouldLog()` -> removed
|
|
428
|
+
- `assertLogModeIsNotProduction()` -> removed
|
|
429
|
+
|
|
430
|
+
- 8c86135: Adding a logger specific custom console report will not reuse the existing console reporter.
|
|
431
|
+
|
|
432
|
+
Originally it will adjust the `filter` of the existing console reporter.
|
|
433
|
+
|
|
434
|
+
But this ability can disable all console logs easily.
|
|
435
|
+
Meaning important console log messages will be hidden from the user.
|
|
436
|
+
|
|
437
|
+
- ecda388: Remove `captureLogs()` support.
|
|
438
|
+
|
|
439
|
+
While normal usage of `captureLogs()` is fine,
|
|
440
|
+
it is possible that the application may accidentally leak mutable code.
|
|
441
|
+
|
|
442
|
+
When that happens, hacker can override functions and capture the logs within,
|
|
443
|
+
and send it somewhere else.
|
|
444
|
+
|
|
445
|
+
Although the leak is likely break everything already,
|
|
446
|
+
having `captureLogs()` increase exposures.
|
|
447
|
+
|
|
448
|
+
- f2a038e: Remove log reporters functions.
|
|
449
|
+
|
|
450
|
+
The log reporters should not be changed during runtime.
|
|
451
|
+
|
|
452
|
+
Should only be configured during `config()`.
|
|
453
|
+
|
|
454
|
+
The same when during test, use `configForTest()`.
|
|
455
|
+
|
|
456
|
+
`standard-log-color` is no longer load by default.
|
|
457
|
+
|
|
458
|
+
To use `standard-log-color`, you should create the reporter manually:
|
|
459
|
+
|
|
460
|
+
```ts
|
|
461
|
+
import { createStandardLog } from 'standard-log'
|
|
462
|
+
import { createColorLogReporter } from 'standard-log-color'
|
|
463
|
+
|
|
464
|
+
const standardLog = createStandardLog({
|
|
465
|
+
reporters: [createColorLogReporter()]
|
|
466
|
+
})
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
This ability is removed because in ESM, `require()` is no-longer available,
|
|
470
|
+
and `import()` is dynamic import and not synchronous.
|
|
471
|
+
|
|
472
|
+
### Patch Changes
|
|
473
|
+
|
|
474
|
+
- eca8627: Remove `ramda` optional dependency.
|
|
475
|
+
|
|
476
|
+
It is only used in `testUtil` and that is not exposed or used in package.
|
|
477
|
+
|
|
478
|
+
## 8.0.1
|
|
479
|
+
|
|
480
|
+
### Patch Changes
|
|
481
|
+
|
|
482
|
+
- ebf3153: Adjust errors ssf to call site
|
|
483
|
+
|
|
484
|
+
## 8.0.0
|
|
485
|
+
|
|
486
|
+
### Major Changes
|
|
487
|
+
|
|
488
|
+
- 61fd031: Update `global-store` `peerDependencies` requirement.
|
|
489
|
+
|
|
490
|
+
Move `global-store` to `devDependencies`.
|
|
491
|
+
|
|
492
|
+
Update other dependencies.
|
|
493
|
+
|
|
494
|
+
### Minor Changes
|
|
495
|
+
|
|
496
|
+
- 8f78cae: Add ESM support
|
|
497
|
+
|
|
498
|
+
### Patch Changes
|
|
499
|
+
|
|
500
|
+
- fe1b4bf: Add sideEffects flag
|
|
501
|
+
- f072cf1: Update dependencies
|
|
502
|
+
|
|
503
|
+
All notable changes to this project will be documented in this file.
|
|
504
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
505
|
+
|
|
506
|
+
# [7.1.0](https://github.com/unional/standard-log/compare/standard-log@7.0.3...standard-log@7.1.0) (2022-04-18)
|
|
507
|
+
|
|
508
|
+
### Features
|
|
509
|
+
|
|
510
|
+
- **log:** add suppressLogs ([#138](https://github.com/unional/standard-log/issues/138)) ([a87382e](https://github.com/unional/standard-log/commit/a87382eb03837e21fe8ceecc600b6e974352f76a))
|
|
511
|
+
|
|
512
|
+
## [7.0.3](https://github.com/unional/standard-log/compare/standard-log@7.0.2...standard-log@7.0.3) (2022-04-17)
|
|
513
|
+
|
|
514
|
+
### Bug Fixes
|
|
515
|
+
|
|
516
|
+
- skip warning for config in test again ([#137](https://github.com/unional/standard-log/issues/137)) ([649bb07](https://github.com/unional/standard-log/commit/649bb074541d5c818b35f7d71f965150b4883e28))
|
|
517
|
+
|
|
518
|
+
## [7.0.2](https://github.com/unional/standard-log/compare/standard-log@7.0.1...standard-log@7.0.2) (2022-04-04)
|
|
519
|
+
|
|
520
|
+
### Bug Fixes
|
|
521
|
+
|
|
522
|
+
- ignore production warning during test v2 ([#133](https://github.com/unional/standard-log/issues/133)) ([75f9912](https://github.com/unional/standard-log/commit/75f991257c09142dd1dfa482af8365d581a018a8))
|
|
523
|
+
|
|
524
|
+
## [7.0.1](https://github.com/unional/standard-log/compare/standard-log@7.0.0...standard-log@7.0.1) (2022-04-04)
|
|
525
|
+
|
|
526
|
+
### Bug Fixes
|
|
527
|
+
|
|
528
|
+
- remove config warning during test ([#132](https://github.com/unional/standard-log/issues/132)) ([a2aa477](https://github.com/unional/standard-log/commit/a2aa477c53e8653f112feab10efe02f3572cd5fe))
|
|
529
|
+
|
|
530
|
+
# [7.0.0](https://github.com/unional/standard-log/compare/standard-log@6.3.1...standard-log@7.0.0) (2022-04-04)
|
|
531
|
+
|
|
532
|
+
### Bug Fixes
|
|
533
|
+
|
|
534
|
+
- allow making `config()` call during tests ([#131](https://github.com/unional/standard-log/issues/131)) ([52c97dd](https://github.com/unional/standard-log/commit/52c97dde55167f8f34fba09b64e84733f9668f33))
|
|
535
|
+
|
|
536
|
+
### BREAKING CHANGES
|
|
537
|
+
|
|
538
|
+
- config behavior changed
|
|
539
|
+
|
|
540
|
+
while this shouldn't be an issue,
|
|
541
|
+
marking this as a breaking change in case this causes any suprises.
|
|
542
|
+
|
|
543
|
+
## [6.3.1](https://github.com/unional/standard-log/compare/standard-log@6.3.0...standard-log@6.3.1) (2022-04-04)
|
|
544
|
+
|
|
545
|
+
**Note:** Version bump only for package standard-log
|
|
546
|
+
|
|
547
|
+
# [6.3.0](https://github.com/unional/standard-log/compare/standard-log@6.2.6...standard-log@6.3.0) (2022-04-04)
|
|
548
|
+
|
|
549
|
+
### Features
|
|
550
|
+
|
|
551
|
+
- expose toMessageWithLevel() ([#130](https://github.com/unional/standard-log/issues/130)) ([ca1a4c1](https://github.com/unional/standard-log/commit/ca1a4c1d3254fc12d9aad9d42fbeccc3021ce710))
|
|
552
|
+
|
|
553
|
+
## [6.2.6](https://github.com/unional/standard-log/compare/standard-log@6.2.5...standard-log@6.2.6) (2022-01-05)
|
|
554
|
+
|
|
555
|
+
### Bug Fixes
|
|
556
|
+
|
|
557
|
+
- **deps:** update dependency type-plus to v4 ([#123](https://github.com/unional/standard-log/issues/123)) ([1abf2de](https://github.com/unional/standard-log/commit/1abf2dec8a8e1360053a20849996b9483eb425ae))
|
|
558
|
+
|
|
559
|
+
## [6.2.5](https://github.com/unional/standard-log/compare/standard-log@6.2.4...standard-log@6.2.5) (2022-01-02)
|
|
560
|
+
|
|
561
|
+
### Bug Fixes
|
|
562
|
+
|
|
563
|
+
- update to iso-error 4 ([#121](https://github.com/unional/standard-log/issues/121)) ([7b007e3](https://github.com/unional/standard-log/commit/7b007e38286925f0305076de03ddacc007d30998))
|
|
564
|
+
|
|
565
|
+
## 6.2.4 (2022-01-02)
|
|
566
|
+
|
|
567
|
+
**Note:** Version bump only for package standard-log
|
|
568
|
+
|
|
569
|
+
## 6.2.3 (2022-01-02)
|
|
570
|
+
|
|
571
|
+
**Note:** Version bump only for package standard-log
|
|
572
|
+
|
|
573
|
+
## 6.2.2 (2022-01-02)
|
|
574
|
+
|
|
575
|
+
**Note:** Version bump only for package standard-log
|
|
576
|
+
|
|
577
|
+
## 6.2.1 (2021-05-21)
|
|
578
|
+
|
|
579
|
+
### Bug Fixes
|
|
580
|
+
|
|
581
|
+
- update tslib ([#110](https://github.com/unional/standard-log/issues/110)) ([2d7a0d2](https://github.com/unional/standard-log/commit/2d7a0d200d442794d7152aa284a65c00e0840bd7))
|
|
582
|
+
|
|
583
|
+
# 6.2.0 (2021-05-12)
|
|
584
|
+
|
|
585
|
+
### Features
|
|
586
|
+
|
|
587
|
+
- add configForTest() ([#109](https://github.com/unional/standard-log/issues/109)) ([9170b29](https://github.com/unional/standard-log/commit/9170b2976896b5f0bf577480ee72ec3d9b64a836))
|
|
588
|
+
|
|
589
|
+
## 6.1.3 (2021-04-30)
|
|
590
|
+
|
|
591
|
+
### Bug Fixes
|
|
592
|
+
|
|
593
|
+
- diable destructuring ([#108](https://github.com/unional/standard-log/issues/108)) ([664d33a](https://github.com/unional/standard-log/commit/664d33ae3e499b5cde2c1a9d409730a8e38b261f))
|
|
594
|
+
|
|
595
|
+
## 6.1.2 (2021-04-30)
|
|
596
|
+
|
|
597
|
+
### Bug Fixes
|
|
598
|
+
|
|
599
|
+
- support old phantomjs ([#107](https://github.com/unional/standard-log/issues/107)) ([5fee141](https://github.com/unional/standard-log/commit/5fee14132ec3c220f7447c2347223dfee0a0b2b7))
|
|
600
|
+
|
|
601
|
+
## 6.1.1 (2021-04-29)
|
|
602
|
+
|
|
603
|
+
### Bug Fixes
|
|
604
|
+
|
|
605
|
+
- remove arrow function from bundle ([#106](https://github.com/unional/standard-log/issues/106)) ([cc36f64](https://github.com/unional/standard-log/commit/cc36f646b6d2d24ba0a104e9b8861df5c4dc40a4))
|
|
606
|
+
|
|
607
|
+
# 6.1.0 (2021-04-18)
|
|
608
|
+
|
|
609
|
+
### Features
|
|
610
|
+
|
|
611
|
+
- add MemoryReporter.getLogMessageWithLevel() ([5c923d9](https://github.com/unional/standard-log/commit/5c923d971d22aff015d47c0a9317004717ce96a2))
|
|
612
|
+
|
|
613
|
+
## 6.0.1 (2021-04-17)
|
|
614
|
+
|
|
615
|
+
**Note:** Version bump only for package standard-log
|
|
616
|
+
|
|
617
|
+
# [6.0.0](https://github.com/unional/standard-log/compare/standard-log@5.3.0...standard-log@6.0.0) (2021-04-17)
|
|
618
|
+
|
|
619
|
+
### Bug Fixes
|
|
620
|
+
|
|
621
|
+
- print log message with pretty object ([#104](https://github.com/unional/standard-log/issues/104)) ([3b6709b](https://github.com/unional/standard-log/commit/3b6709b9dea152989b662755cf41c1503895dd8c))
|
|
622
|
+
|
|
623
|
+
### BREAKING CHANGES
|
|
624
|
+
|
|
625
|
+
- elasped -> elapsed
|
|
626
|
+
|
|
627
|
+
The `TimestampFormat` has fixed the typo from `elasped` to `elapsed`.
|
|
628
|
+
|
|
629
|
+
# 5.3.0 (2021-03-31)
|
|
630
|
+
|
|
631
|
+
### Features
|
|
632
|
+
|
|
633
|
+
- adding getLogMessage() for MemoryLogReporter ([19e08d5](https://github.com/unional/standard-log/commit/19e08d536e46258e7d151f40659f502062696c43))
|
|
634
|
+
|
|
635
|
+
## 5.2.2 (2021-03-19)
|
|
636
|
+
|
|
637
|
+
**Note:** Version bump only for package standard-log
|
|
638
|
+
|
|
639
|
+
## 5.2.1 (2021-03-19)
|
|
640
|
+
|
|
641
|
+
### Bug Fixes
|
|
642
|
+
|
|
643
|
+
- support case when adding first console reporter ([fda7209](https://github.com/unional/standard-log/commit/fda7209a8f72ea6cf2f8d942ed8c1dd29d3cff69))
|
|
644
|
+
|
|
645
|
+
# 5.2.0 (2021-03-19)
|
|
646
|
+
|
|
647
|
+
### Features
|
|
648
|
+
|
|
649
|
+
- getLogger can specify a custom reporter ([1ba85e5](https://github.com/unional/standard-log/commit/1ba85e51c639de8147a82386473c25b2fcf861ca))
|
|
650
|
+
|
|
651
|
+
## 5.1.2 (2021-03-19)
|
|
652
|
+
|
|
653
|
+
### Bug Fixes
|
|
654
|
+
|
|
655
|
+
- filter should be optional ([#100](https://github.com/unional/standard-log/issues/100)) ([6fa73c2](https://github.com/unional/standard-log/commit/6fa73c24d979061c4b390aab4597688d29953fd8))
|
|
656
|
+
|
|
657
|
+
## 5.1.1 (2021-03-13)
|
|
658
|
+
|
|
659
|
+
**Note:** Version bump only for package standard-log
|
|
660
|
+
|
|
661
|
+
# 5.1.0 (2021-02-24)
|
|
662
|
+
|
|
663
|
+
### Features
|
|
664
|
+
|
|
665
|
+
- add logger.write(entry) ([28fe6c9](https://github.com/unional/standard-log/commit/28fe6c955b7c5dd3a13bef5f3276b7f4641b2d1f))
|
|
666
|
+
|
|
667
|
+
# 5.0.0 (2021-02-24)
|
|
668
|
+
|
|
669
|
+
### Features
|
|
670
|
+
|
|
671
|
+
- return result in captureLogs() ([#97](https://github.com/unional/standard-log/issues/97)) ([3f457c3](https://github.com/unional/standard-log/commit/3f457c37a685435a0d20802bb0be33565e58ba20))
|
|
672
|
+
|
|
673
|
+
### BREAKING CHANGES
|
|
674
|
+
|
|
675
|
+
- return signagure of captureLogs changed
|
|
676
|
+
|
|
677
|
+
- chore: update deps
|
|
678
|
+
|
|
679
|
+
## 4.1.8 (2020-12-19)
|
|
680
|
+
|
|
681
|
+
### Bug Fixes
|
|
682
|
+
|
|
683
|
+
- **color:** remove isBrowser and use browser field ([9a468e8](https://github.com/unional/standard-log/commit/9a468e8fb696be680138e707b050b38b4bbb2344))
|
|
684
|
+
|
|
685
|
+
## 4.1.7 (2020-12-16)
|
|
686
|
+
|
|
687
|
+
### Bug Fixes
|
|
688
|
+
|
|
689
|
+
- **syslog:** distribute src to fix source map ([65d1a83](https://github.com/unional/standard-log/commit/65d1a83098bb7c590a88899a828698c661485572))
|
|
690
|
+
|
|
691
|
+
## 4.1.6 (2020-10-28)
|
|
692
|
+
|
|
693
|
+
### Bug Fixes
|
|
694
|
+
|
|
695
|
+
- allow @ \ / in id ([#94](https://github.com/unional/standard-log/issues/94)) ([5684a0e](https://github.com/unional/standard-log/commit/5684a0e43d7dbb5956b3652d87fccee0e638da06))
|
|
696
|
+
|
|
697
|
+
## 4.1.5 (2020-10-28)
|
|
698
|
+
|
|
699
|
+
### Bug Fixes
|
|
700
|
+
|
|
701
|
+
- upgrade dependencies ([#93](https://github.com/unional/standard-log/issues/93)) ([0afc399](https://github.com/unional/standard-log/commit/0afc39942b74e1b2dd551e25b74cdd00739e0416))
|
|
702
|
+
|
|
703
|
+
## 4.1.4 (2020-08-30)
|
|
704
|
+
|
|
705
|
+
**Note:** Version bump only for package standard-log
|
|
706
|
+
|
|
707
|
+
## 4.1.3 (2020-08-30)
|
|
708
|
+
|
|
709
|
+
### Bug Fixes
|
|
710
|
+
|
|
711
|
+
- store initializer ([#92](https://github.com/unional/standard-log/issues/92)) ([aedefd3](https://github.com/unional/standard-log/commit/aedefd37ab90baddd540e728fb3d60be7d539abf))
|
|
712
|
+
|
|
713
|
+
## 4.1.2 (2020-03-07)
|
|
714
|
+
|
|
715
|
+
**Note:** Version bump only for package standard-log
|
|
716
|
+
|
|
717
|
+
## 4.1.1 (2020-03-07)
|
|
718
|
+
|
|
719
|
+
**Note:** Version bump only for package standard-log
|
|
720
|
+
|
|
721
|
+
# [4.1.0](https://github.com/unional/standard-log/compare/standard-log@4.0.3...standard-log@4.1.0) (2020-03-01)
|
|
722
|
+
|
|
723
|
+
### Bug Fixes
|
|
724
|
+
|
|
725
|
+
- default log level to warn ([fe03b18](https://github.com/unional/standard-log/commit/fe03b18788181fc5269dd64250baa6e0ac24a24a))
|
|
726
|
+
- default logLevel to info ([391b973](https://github.com/unional/standard-log/commit/391b973d504742232786c5266e80fa51bcba7f27))
|
|
727
|
+
|
|
728
|
+
### Features
|
|
729
|
+
|
|
730
|
+
- add captureLogs() ([154afe9](https://github.com/unional/standard-log/commit/154afe9efd6a85eefe0d9c3e416e75990fb8c920))
|
|
731
|
+
|
|
732
|
+
## [4.0.3](https://github.com/unional/standard-log/compare/standard-log@4.0.2...standard-log@4.0.3) (2020-01-08)
|
|
733
|
+
|
|
734
|
+
### Bug Fixes
|
|
735
|
+
|
|
736
|
+
- **color:** add tslib ([ac594d5](https://github.com/unional/standard-log/commit/ac594d54d9a5e12752cd18ff4e7a4f77d9e6188d))
|
|
737
|
+
- add sideEffects flag ([95ae4dc](https://github.com/unional/standard-log/commit/95ae4dc056bfbf552a645b681182d08cf56ca0b1))
|
|
738
|
+
|
|
739
|
+
## [4.0.2](https://github.com/unional/standard-log/compare/standard-log@4.0.1...standard-log@4.0.2) (2019-12-29)
|
|
740
|
+
|
|
741
|
+
### Bug Fixes
|
|
742
|
+
|
|
743
|
+
- **package:** update iso-error to version 3.1.3 ([26cf5a8](https://github.com/unional/standard-log/commit/26cf5a8)), closes [#58](https://github.com/unional/standard-log/issues/58)
|
|
744
|
+
|
|
745
|
+
## [4.0.1](https://github.com/unional/standard-log/compare/standard-log@4.0.0...standard-log@4.0.1) (2019-12-26)
|
|
746
|
+
|
|
747
|
+
### Bug Fixes
|
|
748
|
+
|
|
749
|
+
- bump store version ([b8a547f](https://github.com/unional/standard-log/commit/b8a547f))
|
|
750
|
+
|
|
751
|
+
# [4.0.0](https://github.com/unional/standard-log/compare/standard-log@3.4.0...standard-log@4.0.0) (2019-11-16)
|
|
752
|
+
|
|
753
|
+
### Bug Fixes
|
|
754
|
+
|
|
755
|
+
- make logger id and methods readonly ([4171946](https://github.com/unional/standard-log/commit/4171946))
|
|
756
|
+
|
|
757
|
+
### Features
|
|
758
|
+
|
|
759
|
+
- **log:** add writeTo option ([d57ee46](https://github.com/unional/standard-log/commit/d57ee46))
|
|
760
|
+
|
|
761
|
+
### BREAKING CHANGES
|
|
762
|
+
|
|
763
|
+
- **log:** `getLogger()` signature changed
|
|
764
|
+
|
|
765
|
+
`getLogger(id, level?)` is changed to `getLogger(id, options?)`.
|
|
766
|
+
|
|
767
|
+
# [3.4.0](https://github.com/unional/standard-log/compare/standard-log@3.3.0...standard-log@3.4.0) (2019-10-24)
|
|
768
|
+
|
|
769
|
+
### Bug Fixes
|
|
770
|
+
|
|
771
|
+
- change isLocked() to getter ([3e24898](https://github.com/unional/standard-log/commit/3e24898))
|
|
772
|
+
|
|
773
|
+
### Features
|
|
774
|
+
|
|
775
|
+
- add config.isLocked() ([c9f7a90](https://github.com/unional/standard-log/commit/c9f7a90))
|
|
776
|
+
|
|
777
|
+
# [3.3.0](https://github.com/unional/standard-log/compare/standard-log@3.2.2...standard-log@3.3.0) (2019-10-24)
|
|
778
|
+
|
|
779
|
+
### Features
|
|
780
|
+
|
|
781
|
+
- add logLevels ([2fdba1a](https://github.com/unional/standard-log/commit/2fdba1a))
|
|
782
|
+
|
|
783
|
+
## [3.2.2](https://github.com/unional/standard-log/compare/standard-log@3.2.1...standard-log@3.2.2) (2019-10-24)
|
|
784
|
+
|
|
785
|
+
### Bug Fixes
|
|
786
|
+
|
|
787
|
+
- use setImmediate over setTimeout when available ([63b0795](https://github.com/unional/standard-log/commit/63b0795))
|
|
788
|
+
|
|
789
|
+
## [3.2.1](https://github.com/unional/standard-log/compare/standard-log@3.2.0...standard-log@3.2.1) (2019-10-24)
|
|
790
|
+
|
|
791
|
+
### Bug Fixes
|
|
792
|
+
|
|
793
|
+
- add hasConsoleReporter() ([f696878](https://github.com/unional/standard-log/commit/f696878))
|
|
794
|
+
|
|
795
|
+
# [3.2.0](https://github.com/unional/standard-log/compare/standard-log@3.1.3...standard-log@3.2.0) (2019-10-24)
|
|
796
|
+
|
|
797
|
+
### Features
|
|
798
|
+
|
|
799
|
+
- only use one console reporter ([7427dba](https://github.com/unional/standard-log/commit/7427dba))
|
|
800
|
+
|
|
801
|
+
## [3.1.3](https://github.com/unional/standard-log/compare/standard-log@3.1.2...standard-log@3.1.3) (2019-08-21)
|
|
802
|
+
|
|
803
|
+
**Note:** Version bump only for package standard-log
|
|
804
|
+
|
|
805
|
+
## [3.1.2](https://github.com/unional/standard-log/compare/standard-log@3.1.1...standard-log@3.1.2) (2019-08-10)
|
|
806
|
+
|
|
807
|
+
### Bug Fixes
|
|
808
|
+
|
|
809
|
+
- expose shouldLog again ([777d257](https://github.com/unional/standard-log/commit/777d257))
|
|
810
|
+
|
|
811
|
+
## [3.1.1](https://github.com/unional/standard-log/compare/standard-log@3.1.0...standard-log@3.1.1) (2019-08-10)
|
|
812
|
+
|
|
813
|
+
### Bug Fixes
|
|
814
|
+
|
|
815
|
+
- remove spec files from package ([cae7eb7](https://github.com/unional/standard-log/commit/cae7eb7))
|
|
816
|
+
|
|
817
|
+
# [3.1.0](https://github.com/unional/standard-log/compare/standard-log@3.0.0...standard-log@3.1.0) (2019-08-09)
|
|
818
|
+
|
|
819
|
+
### Features
|
|
820
|
+
|
|
821
|
+
- **log:** remove setimmediate to reduce size ([9f54f58](https://github.com/unional/standard-log/commit/9f54f58))
|
|
822
|
+
|
|
823
|
+
# [3.0.0](https://github.com/unional/standard-log/compare/standard-log@2.1.0...standard-log@3.0.0) (2019-08-09)
|
|
824
|
+
|
|
825
|
+
### Bug Fixes
|
|
826
|
+
|
|
827
|
+
- **log:** add global-store as peerDeps ([c49da80](https://github.com/unional/standard-log/commit/c49da80))
|
|
828
|
+
- **log:** set bundle target to es5 ([bab5359](https://github.com/unional/standard-log/commit/bab5359))
|
|
829
|
+
|
|
830
|
+
### Features
|
|
831
|
+
|
|
832
|
+
- add addLogReporter and co. back ([4f4df6f](https://github.com/unional/standard-log/commit/4f4df6f))
|
|
833
|
+
- add formatter and filter for console and memory ([0bc4800](https://github.com/unional/standard-log/commit/0bc4800))
|
|
834
|
+
- make configOptions optional ([88b8372](https://github.com/unional/standard-log/commit/88b8372))
|
|
835
|
+
- rename modes ([0133d9f](https://github.com/unional/standard-log/commit/0133d9f))
|
|
836
|
+
|
|
837
|
+
### BREAKING CHANGES
|
|
838
|
+
|
|
839
|
+
- modes are renamed
|
|
840
|
+
|
|
841
|
+
`prod` => `production`
|
|
842
|
+
'devel`=>`development`
|
|
843
|
+
|
|
844
|
+
# [2.1.0](https://github.com/unional/standard-log/compare/standard-log@2.0.3...standard-log@2.1.0) (2019-08-08)
|
|
845
|
+
|
|
846
|
+
### Bug Fixes
|
|
847
|
+
|
|
848
|
+
- getDefaultReporter supports browser ([bd5bf0c](https://github.com/unional/standard-log/commit/bd5bf0c))
|
|
849
|
+
- remove addLogReporter ([8dca328](https://github.com/unional/standard-log/commit/8dca328))
|
|
850
|
+
|
|
851
|
+
### Features
|
|
852
|
+
|
|
853
|
+
- **log:** remove isBrowser ([e7ff262](https://github.com/unional/standard-log/commit/e7ff262))
|
|
854
|
+
- remove core again ([5e1f021](https://github.com/unional/standard-log/commit/5e1f021))
|
|
855
|
+
|
|
856
|
+
## [2.0.3](https://github.com/unional/standard-log/compare/standard-log@2.0.2...standard-log@2.0.3) (2019-07-29)
|
|
857
|
+
|
|
858
|
+
### Bug Fixes
|
|
859
|
+
|
|
860
|
+
- **log:** initialize store properly with new core ([78f6f0d](https://github.com/unional/standard-log/commit/78f6f0d))
|
|
861
|
+
|
|
862
|
+
## [2.0.2](https://github.com/unional/standard-log/compare/standard-log@2.0.1...standard-log@2.0.2) (2019-07-29)
|
|
863
|
+
|
|
864
|
+
### Bug Fixes
|
|
865
|
+
|
|
866
|
+
- move code to @standard-log/core ([#16](https://github.com/unional/standard-log/issues/16)) ([0c769f8](https://github.com/unional/standard-log/commit/0c769f8))
|
|
867
|
+
|
|
868
|
+
## [2.0.1](https://github.com/unional/standard-log/compare/standard-log@2.0.0...standard-log@2.0.1) (2019-07-29)
|
|
869
|
+
|
|
870
|
+
### Bug Fixes
|
|
871
|
+
|
|
872
|
+
- in test mode log writing are sync ([#14](https://github.com/unional/standard-log/issues/14)) ([25529f9](https://github.com/unional/standard-log/commit/25529f9))
|
|
873
|
+
|
|
874
|
+
# [2.0.0](https://github.com/unional/standard-log/compare/standard-log@1.5.2...standard-log@2.0.0) (2019-07-28)
|
|
875
|
+
|
|
876
|
+
### Bug Fixes
|
|
877
|
+
|
|
878
|
+
- nodejs8 does not support catch without exception ([e89d422](https://github.com/unional/standard-log/commit/e89d422))
|
|
879
|
+
- **log:** look for `standard-log-color` ([43219a2](https://github.com/unional/standard-log/commit/43219a2))
|
|
880
|
+
- **log:** rename default reporter back to 'console' ([fa945d5](https://github.com/unional/standard-log/commit/fa945d5))
|
|
881
|
+
- **log:** tricks webpack to not bundle console ([632d7ba](https://github.com/unional/standard-log/commit/632d7ba))
|
|
882
|
+
- queue the logEntry ([28dab98](https://github.com/unional/standard-log/commit/28dab98))
|
|
883
|
+
- simplify writeToReporters ([#11](https://github.com/unional/standard-log/issues/11)) ([93431f7](https://github.com/unional/standard-log/commit/93431f7))
|
|
884
|
+
- update to use beta version of global-store ([9189dce](https://github.com/unional/standard-log/commit/9189dce))
|
|
885
|
+
|
|
886
|
+
### Features
|
|
887
|
+
|
|
888
|
+
- **console:** depends on standard-log ([01fa52d](https://github.com/unional/standard-log/commit/01fa52d))
|
|
889
|
+
- **log:** absorb standard-log-memory into standard-log ([ebbd5dc](https://github.com/unional/standard-log/commit/ebbd5dc))
|
|
890
|
+
- **log:** export custom level api ([ca43394](https://github.com/unional/standard-log/commit/ca43394))
|
|
891
|
+
- **log:** move isBrowser to log ([44a8b1c](https://github.com/unional/standard-log/commit/44a8b1c))
|
|
892
|
+
- **log:** move logLevel to log package ([ec5595f](https://github.com/unional/standard-log/commit/ec5595f))
|
|
893
|
+
- **log:** move plainFormatter from core to log ([5235bbc](https://github.com/unional/standard-log/commit/5235bbc))
|
|
894
|
+
- **log:** move timestamp formatter form console to log ([c136fb1](https://github.com/unional/standard-log/commit/c136fb1))
|
|
895
|
+
- **log:** move toLogLevelDisplay from core to log as formatLogLevel() ([6203f7d](https://github.com/unional/standard-log/commit/6203f7d))
|
|
896
|
+
- **log:** provide simple console reporter ([46ab1cf](https://github.com/unional/standard-log/commit/46ab1cf))
|
|
897
|
+
- log out-of-band ([951e01b](https://github.com/unional/standard-log/commit/951e01b))
|
|
898
|
+
- **log:** rename Console* to ConsoleLog* ([a0b51cb](https://github.com/unional/standard-log/commit/a0b51cb))
|
|
899
|
+
|
|
900
|
+
### BREAKING CHANGES
|
|
901
|
+
|
|
902
|
+
- **log:** api change
|
|
903
|
+
|
|
904
|
+
## [1.5.2](https://github.com/unional/standard-log/compare/standard-log@1.5.1...standard-log@1.5.2) (2019-07-16)
|
|
905
|
+
|
|
906
|
+
### Bug Fixes
|
|
907
|
+
|
|
908
|
+
- fix readme example ([2a9158e](https://github.com/unional/standard-log/commit/2a9158e))
|
|
909
|
+
|
|
910
|
+
## [1.5.1](https://github.com/unional/standard-log/compare/standard-log@1.5.0...standard-log@1.5.1) (2019-07-15)
|
|
911
|
+
|
|
912
|
+
### Bug Fixes
|
|
913
|
+
|
|
914
|
+
- **log:** mark global-store as externals ([19d1a23](https://github.com/unional/standard-log/commit/19d1a23))
|
|
915
|
+
|
|
916
|
+
# [1.5.0](https://github.com/unional/standard-log/compare/standard-log@1.4.1...standard-log@1.5.0) (2019-07-15)
|
|
917
|
+
|
|
918
|
+
### Features
|
|
919
|
+
|
|
920
|
+
- on() supports log level name ([269839d](https://github.com/unional/standard-log/commit/269839d))
|
|
921
|
+
|
|
922
|
+
## [1.4.1](https://github.com/unional/standard-log/compare/standard-log@1.4.0...standard-log@1.4.1) (2019-07-15)
|
|
923
|
+
|
|
924
|
+
### Bug Fixes
|
|
925
|
+
|
|
926
|
+
- **log:** shouldLog() params name. ([07d7e82](https://github.com/unional/standard-log/commit/07d7e82))
|
|
927
|
+
|
|
928
|
+
# [1.4.0](https://github.com/unional/standard-log/compare/standard-log@1.3.0...standard-log@1.4.0) (2019-07-15)
|
|
929
|
+
|
|
930
|
+
### Features
|
|
931
|
+
|
|
932
|
+
- **log:** export shouldLog() helper function ([f07a559](https://github.com/unional/standard-log/commit/f07a559))
|
|
933
|
+
|
|
934
|
+
# [1.3.0](https://github.com/unional/standard-log/compare/standard-log@1.2.1...standard-log@1.3.0) (2019-07-15)
|
|
935
|
+
|
|
936
|
+
### Features
|
|
937
|
+
|
|
938
|
+
- **core:** add test mode ([12a3e61](https://github.com/unional/standard-log/commit/12a3e61))
|
|
939
|
+
|
|
940
|
+
## [1.2.1](https://github.com/unional/standard-log/compare/standard-log@1.2.0...standard-log@1.2.1) (2019-07-15)
|
|
941
|
+
|
|
942
|
+
### Bug Fixes
|
|
943
|
+
|
|
944
|
+
- **log:** getLogger to properly reutrn logger with methods ([90f5e01](https://github.com/unional/standard-log/commit/90f5e01))
|
|
945
|
+
|
|
946
|
+
# [1.2.0](https://github.com/unional/standard-log/compare/standard-log@1.1.1...standard-log@1.2.0) (2019-07-15)
|
|
947
|
+
|
|
948
|
+
### Bug Fixes
|
|
949
|
+
|
|
950
|
+
- **log:** honor logLevel ([d11c8da](https://github.com/unional/standard-log/commit/d11c8da))
|
|
951
|
+
|
|
952
|
+
### Features
|
|
953
|
+
|
|
954
|
+
- add logger local level ([f0bc937](https://github.com/unional/standard-log/commit/f0bc937))
|
|
955
|
+
- add logger.on() ([bbd5eba](https://github.com/unional/standard-log/commit/bbd5eba))
|
|
956
|
+
- add setLogLevels ([90b3a20](https://github.com/unional/standard-log/commit/90b3a20))
|
|
957
|
+
|
|
958
|
+
## [1.1.1](https://github.com/unional/standard-log/compare/standard-log@1.1.0...standard-log@1.1.1) (2019-07-15)
|
|
959
|
+
|
|
960
|
+
**Note:** Version bump only for package standard-log
|
|
961
|
+
|
|
962
|
+
# [1.1.0](https://github.com/unional/standard-log/compare/standard-log@1.0.2...standard-log@1.1.0) (2019-07-14)
|
|
963
|
+
|
|
964
|
+
### Features
|
|
965
|
+
|
|
966
|
+
- **log:** export LogReporterOptions ([#7](https://github.com/unional/standard-log/issues/7)) ([32122f0](https://github.com/unional/standard-log/commit/32122f0))
|
|
967
|
+
|
|
968
|
+
## [1.0.2](https://github.com/unional/standard-log/compare/standard-log@1.0.1...standard-log@1.0.2) (2019-07-14)
|
|
969
|
+
|
|
970
|
+
**Note:** Version bump only for package standard-log
|
|
971
|
+
|
|
972
|
+
## [1.0.1](https://github.com/unional/standard-log/compare/standard-log@0.1.0...standard-log@1.0.1) (2019-07-14)
|
|
973
|
+
|
|
974
|
+
### Bug Fixes
|
|
975
|
+
|
|
976
|
+
- include libm in distribution ([f844b9c](https://github.com/unional/standard-log/commit/f844b9c))
|
|
977
|
+
|
|
978
|
+
# 0.1.0 (2019-07-14)
|
|
979
|
+
|
|
980
|
+
### Bug Fixes
|
|
981
|
+
|
|
982
|
+
- use object.assign instead of spread for NodeJS6 ([#2](https://github.com/unional/standard-log/issues/2)) ([26ef224](https://github.com/unional/standard-log/commit/26ef224))
|
|
983
|
+
|
|
984
|
+
### Features
|
|
985
|
+
|
|
986
|
+
- prevent calling config() twice ([dc2bfb8](https://github.com/unional/standard-log/commit/dc2bfb8))
|
|
987
|
+
- **core:** rename inc() to count() ([40bee67](https://github.com/unional/standard-log/commit/40bee67))
|
|
988
|
+
- **log:** clean and add RuntimeMode ([d292342](https://github.com/unional/standard-log/commit/d292342))
|
|
989
|
+
- **log:** improve getLogger type ([2f2495e](https://github.com/unional/standard-log/commit/2f2495e))
|