oracular 0.5.0 → 0.5.1
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 +6 -0
- package/dist/cli.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#28](https://github.com/Yuribenjamin/oracular/pull/28) [`250a32d`](https://github.com/Yuribenjamin/oracular/commit/250a32d9764aeabdff020f99074c0a512ea7194f) Thanks [@Yuribenjamin](https://github.com/Yuribenjamin)! - `oracular replay` and `oracular tune` read logs of any size. A log of more than about a hundred thousand records made both commands fail with "Maximum call stack size exceeded", because every file's entries were spread into one `push` call. Found by replaying the Retailrocket clickstream (2.7 million events).
|
|
8
|
+
|
|
3
9
|
## 0.5.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/cli.js
CHANGED
|
@@ -1151,7 +1151,7 @@ function readLogs(files, io) {
|
|
|
1151
1151
|
const parsed = parseLog(io.readFile(resolve(io.cwd, file)), file);
|
|
1152
1152
|
for (const warning of parsed.warnings) io.stderr(`oracular: warning: ${warning}
|
|
1153
1153
|
`);
|
|
1154
|
-
|
|
1154
|
+
for (const entry of parsed.entries) entries.push(entry);
|
|
1155
1155
|
}
|
|
1156
1156
|
if (entries.length === 0) throw new Error("the log holds no records");
|
|
1157
1157
|
return entries;
|