Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file.size #1608

Merged
merged 6 commits into from
Aug 27, 2024
Merged

file.size #1608

merged 6 commits into from
Aug 27, 2024

Conversation

mbostock
Copy link
Member

@mbostock mbostock commented Aug 27, 2024

Marking as draft until observablehq/inputs#266 is merged and Inputs 0.12.0 is released. Done. Also, I think I can clean up the implementation slightly (like maybe consolidating getSourceLastModified and getSourceSize into getSourceInfo). Done. Also fixes an unfiled bug where file.href didn’t work for Inputs.file.

@mbostock mbostock requested a review from Fil August 27, 2024 03:29
@mbostock
Copy link
Member Author

mbostock commented Aug 27, 2024

This might enable some smarter heuristics for DuckDBClient, such as using CREATE TABLE instead of CREATE VIEW for small files to avoid the overhead of repeated range requests. #1614

Comment on lines +4 to +34
export {
button,
checkbox,
radio,
toggle,
color,
date,
datetime,
form,
range,
number,
search,
searchFilter,
select,
table,
text,
email,
tel,
url,
password,
textarea,
input,
bind,
disposal,
formatDate,
formatLocaleAuto,
formatLocaleNumber,
formatTrim,
formatAuto,
formatNumber
} from "@observablehq/inputs";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repeating this is unfortunate but ESLint doesn’t like us exporting file twice. 😞

@mbostock mbostock marked this pull request as ready for review August 27, 2024 16:10
@mbostock mbostock enabled auto-merge (squash) August 27, 2024 16:10
@mbostock mbostock merged commit 06ed740 into main Aug 27, 2024
4 checks passed
@mbostock mbostock deleted the mbostock/file-size branch August 27, 2024 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants