v0.41.0 - DataFrame.toSheet (2026-03-23)¶
What Changed?¶
This release adds toSheet to both DataFrame and FlameFrame in the v2 module.
You can now write a DataFrame directly to a Google Apps Script Sheet object with a single method call.
The method supports overwrite (default) and append workflows via clear, header, and startRow options.
What's New¶
Main Feature: DataFrame.toSheet / FlameFrame.toSheet¶
What it does: Writes the DataFrame contents to a GAS Sheet object. By default it clears the sheet and writes from row 1 with a header row. Options allow appending data without clearing the sheet.
How to use it:
TypeScript
// Overwrite sheet (default)
df.toSheet(sheet);
// Append without header
df.toSheet(sheet, {
clear: false,
header: false,
startRow: sheet.getLastRow() + 1,
});
// FlameFrame works the same way
const { frame } = FlameFrame.fromColumns({ name: ["Alice"], age: [25] }, schema);
frame.toSheet(sheet);
Added¶
DataFrame.toSheet(sheet, options?)— writes DataFrame to a GAS Sheet (src/v2/frame.ts)FlameFrame.toSheet(sheet, options?)— delegates toDataFrame.toSheet(src/v2/flameframe.ts)ToSheetoptions:clear(default:true),header(default:true),startRow(default:1)
Changed¶
pilotlamp/suites/suiteFlameFrame.js— error reporting test simplified to useerrorDf.toSheet(sheet);suiteToSheetadded for write and append integration tests
Fixed¶
- None
Is It Safe to Upgrade?¶
- Breaking Changes: No
- Backward Compatible: Yes
Existing code is unaffected. toSheet is a new addition to DataFrame and FlameFrame.
Release Details¶
- Date: 2026-03-23
- Version: v0.41.0
- gaslamp: clasp version 88
- pilotlamp: clasp version 45
- Files Changed: 151
- Commits:
2132a2dfeat(v2/frame): add DataFrame.toSheete25a52afeat(v2/frame): add options to DataFrame.toSheet8a011f2feat(v2/flameframe): add FlameFrame.toSheet6194eb3docs(v2): add @since tags to toSheet, fromRange, fromSheeta4eb9ecchore: update uv.lock for v0.41.02e42bb0bump: version 0.40.0 → 0.41.0
Known Issues¶
- None
Next Steps¶
- Consider adding
toSheettoFlameFrameErrorsfor direct error reporting to sheets