Tom Moor
4649ac3e09
fix: Read Word documents with the shared zip reader ( #14744 )
...
* fix: Read Word documents with the shared zip reader
* fix: Bound total bytes read from Word documents
2026-11-26 19:27:40 -05:00
Tom Moor
4fd8b0731e
fix: Limit archive contents read during imports ( #14576 )
2026-11-13 08:04:58 -05:00
Tom Moor
96bb9dce65
fix: Report invalid zip and Word imports as import errors ( #14361 )
...
* fix: Report invalid zip and Word imports as import errors
* fix: Normalize entry stream errors and keep system errors in ZipHelper
2026-10-26 22:42:47 -04:00
Tom Moor and Claude Opus 5
000f2f98fb
feat: Add TextPack (.textpack) support ( #13235 )
...
* feat: Add TextPack (.textpack) import support
Adds a single-document importer for TextPack, the zipped variant of
TextBundle used by Bear, Ulysses, iA Writer and others. Bare .textbundle
directories are not supported, as a directory cannot be delivered through
a browser file input.
The bundle's text entry may use any extension, per the spec, with
info.json's type deciding whether it can be read as markdown. Assets are
inlined as data URIs for the existing attachment pipeline to pick up,
bounded by the attachment size limit and a memory ceiling, and only for
media types markdown-it accepts as a link destination.
Also fixes an existing bug where a file embedded in an HTML or email
import as a data URI was stored in the document as base64 rather than
being uploaded as an attachment.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com >
* Refactor to individual converters
* refactor
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-08-02 20:42:05 -04:00
Tom Moor
7b751ab04b
perf: Attach output stream before adding zip entries ( #13167 )
...
* perf: Attach output stream before adding zip entries
* fix: Handle failure
2026-07-27 19:13:18 -04:00
Tom Moor and Claude
2d608d95e7
fix: Temporary directory left behind after S3 storage file handle ( #13127 )
...
* fix: Temporary directory left behind after S3 storage file handle
* Remove unused ZipHelper.extract
Use pipeline everywhere instead of manually wiring streams
* fix: Cleanup failure should not mask original error
Removing the temporary directory is best-effort, log the failure and
propagate the underlying error instead.
---------
Co-authored-by: Claude <noreply@anthropic.com >
2026-07-25 08:17:04 -04:00
Tom Moor and Claude Fable 5
a1d0520c9f
Add missing JSDoc to exported members in app and server utils ( #12940 )
...
* Add missing JSDoc to exported members in app and server utils
Documents all exported functions, classes, enums, and constants in
app/utils and server/utils that were missing JSDoc, per the project
documentation guidelines.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01AsEQYA8zN813thxu7GjjzU
* Use @returns tag to match codebase convention
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01AsEQYA8zN813thxu7GjjzU
---------
Co-authored-by: Claude <noreply@anthropic.com >
2026-07-08 08:30:11 -04:00
Tom Moor
ec3200c7d2
chore: babel -> swc ( #12821 )
...
* chore: babel -> swc
* Add ls guard
* PR feedback
2026-06-29 17:11:02 -04:00
Tom Moor
a4a67f2cdd
fix: Upgrade yauzl, improve stream close handling
2026-05-27 20:33:33 -04:00
Tom Moor
8d44a0fd92
chore: Migrate from JSZip to Yazl ( #12408 )
...
* chore: Migrate from JSZip to Yazl
* Add koa stream helper, PR feedback
2026-05-21 23:27:23 -04:00
Tom Moor
ee5164290d
perf: Move Markdown importer to zip stream ( #12372 )
...
* perf: Move Markdown importer to zip stream
* refactor
* refactor: Extract zip walk + tree builder into ZipHelper
Adds `ZipHelper.walk` and `ZipHelper.toFileTree` so other importers can
stream zip contents without extracting to disk. Tree construction uses
an O(1) path → node map; `./`-prefixed entries are normalized, while
dotfiles, `__MACOSX`, and `..` segments are filtered.
* PR feedback
2026-05-18 18:32:58 -04:00
Tom Moor
6d7d8b056c
fix: trimFilenameAndExt should not be passed full path ( #12101 )
2026-04-18 08:10:30 -04:00
Tom Moor
00fb4d1af7
chore: Update node style imports ( #11277 )
...
- crypto → node:crypto
- fs → node:fs
- fs/promises → node:fs/promises
- path → node:path
- http → node:http
- https → node:https
- stream → node:stream
- buffer → node:buffer
- url → node:url
- os → node:os
- net → node:net
- dns → node:dns
- events → node:events
- readline → node:readline
- querystring → node:querystring
- util → node:util
2026-01-26 20:51:50 -05:00
Tom Moor
bf45e97641
chore: Enforce type import consistency ( #10968 )
...
* Update types
* fix circular dep
* type imports
* lint type imports and --fix
2025-12-19 23:07:02 -05:00
Tom Moor
a97908518a
fix: Various issues with JSON import and UTF8 or very long filenames ( #9850 )
2025-08-05 21:15:45 -04:00
Tom Moor
32c1712fdc
fix: Various cases that could leave file handles open on export ( #9168 )
...
* fix: Various cases that could leave file handles open on export
* Consolidate error handling
2025-05-10 17:48:24 -04:00
Tom Moor
d3c8224839
fix: Error during import with long filenames ( #7738 )
...
* fix: Stream error during import causes worker restart
* refactor
* fix: Ensure we never write filenames longer than the system can handle
2024-10-07 05:36:18 -07:00
Tom Moor
67a1033ded
fix: Allow for zip files with '/' path in central directory
2023-11-16 19:25:43 -05:00
Tom Moor
cf6a946c9c
chore: Normalize fs-extra usage
2023-11-15 19:43:17 -05:00
Tom Moor
726613bf1d
fix: Remove unzipper as it cannot handle zip within zip ( #6162 )
2023-11-15 16:32:17 -08:00
Tom Moor
1898a34418
Rearchitect import ( #6141 )
2023-11-13 17:15:38 -08:00
Tom Moor
1a556b6ff2
fix: Internal server error during import with nested documents
2023-11-09 19:24:16 -05:00
Tom Moor
d8d49f6950
fix: Internal server error during import with nested documents
2023-11-09 19:24:16 -05:00
Tom Moor
6aec085942
fix: Error handling on streams missing error handler on read streams.
...
Related https://github.com/outline/outline/discussions/5855
2023-09-23 18:08:36 -04:00
Tom Moor
127115272a
feat: Return attachments when exporting an individual file ( #5778 )
2023-09-06 17:53:30 -07:00
Tom Moor
b7bfc4bb1a
chore: Remove optimize imports to allow vite upgrade ( #5691 )
2023-08-14 11:44:58 -07:00
Tom Moor
9942bbee3e
fix: Refactor attachment downloads during export to use promises ( #5294
...
* Refactor attachment downloads during export to use promises instead of streams
Date attachments in zip file correctly
* tsc
2023-05-04 17:20:33 -07:00
Tom Moor
12bfa6c58d
Add additional debug logging to export
2023-04-29 22:05:52 -04:00
Tom Moor
794df52080
fix: NotionImportTask
2023-03-29 09:34:04 -04:00
Tom Moor
8a2831ef80
fix: Add support for Zip files created natively on Windows
...
closes #5117
2023-03-29 08:28:51 -04:00
Tom Moor
bb568d2e62
fix: Exports generate invalid internal links ( #4639 )
...
* refactoring
* Refactoring continues
* Refactor export, fix internal links in exported docs
* fix: Dupe document name detection
* sigh
2023-01-04 04:18:59 -08:00