Library V9 (build240205a)
What's Changed
✨ New Features
-
Add custom menu and menu items to Google Sheets
-
Allow moving downloaded files to other Google Drive folder via Google Sheet
-
Allow logging HTTP status code and headers from the Instagram API response
-
Add new error codes to identify if the API request returns response in HTML instead of JSON:
0xf3
: Include not-logged-in in the HTML content0xf4
: Other HTML responses
-
Add the
dist/instance/code.js
file for developers to deploy a Google Sheet project with a standalone script
🐛 Bug Fixes
- Fix
TypeError: Cannot read properties of undefined (reading 'split')
#82. Validate the object type before using the String.Split method - Fix issue in deleting row without file name #90. Skip the row with missing data when deleting selected log entries
- Fix blank spots in "Saved Filename" column #84. Skip log entry when download fails
- Fix
Error: Address unavailable:... (code: 0xf1)
#86. Continue to process the next Instagram user instead of terminating the script execution immediately
♻ Refactors
- Use
npx clasp
to simplify the npm scripts in thepackage.json
file - Unnested if-else statements inside the
fetch()
function infetcher.js
- Modularize the fetch() function with a new utility function called
getFileDetails()
located in theutils.js
file - Renamed the
html
parameter todata
inside thetryGetStories()
function
📦 Packaging Updates
- Add [email protected], @babel/[email protected], [email protected], [email protected] as development dependencies for developing unit tests
- Add Jest extension setting for VS Code
- Add
npm test
script inpackage.json
to run jest with a custom configuration file injest.config.js
- Exclude unit tests from being bundled by rollup
- Update to print the copyright notice with the current year when being bundle by rollup
- Pin Jekyll version to 3.9.3 and add webrick gem to the
docs/_config.yml
file - Add Front Matter CMS for VS Code to improve Jekyll documentation editing
📝 Documentation
- Rename the
LICENSE.md
toLICENSE.txt
file - Replace SVG badges with dynamic JSON badges in the README and
docs/index.md
files #95 - Reword the README file to make more concise and readable
- Split the sections for Advanced Configurations and Release Notes to new web pages
- Style and reword the Jekyll site files in the docs directory to make GitHub project pages more appealing, informative and readable
- Add new screenshots and demo video to the GitHub project pages' landing page
- Apply the Google Documentation Guide recommendation to limit lines to 80 characters where possible in the README file for helping newcomers to configure the clasp
- Update the
CHANGELOG.md
file
🧪 Unit Test
- Add the
utils.test.js
file, which contains a test suite for thegetFileDetails()
function inutils.js
, in the test folder
Pull Requests
- Enhancements to Documentation and Jekyll Setup by @chriskyfung in #92
- Fix #84 Logging blank filename by @chriskyfung in #93
- Development version for V9 by @chriskyfung in #87
Full Changelog: lib-v8...lib-v9