Skip to content

Library V9 (build240205a)

Compare
Choose a tag to compare
@chriskyfung chriskyfung released this 05 Feb 14:25
· 44 commits to master since this release
lib-v9
0791a81

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 content
    • 0xf4: 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 the package.json file
  • Unnested if-else statements inside the fetch() function in fetcher.js
  • Modularize the fetch() function with a new utility function called getFileDetails() located in the utils.js file
  • Renamed the html parameter to data inside the tryGetStories() 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 in package.json to run jest with a custom configuration file in jest.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 to LICENSE.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 the getFileDetails() function in utils.js, in the test folder

Pull Requests

Full Changelog: lib-v8...lib-v9