AutoFetcher IG Stories To GDrive Versions Save

A simple tool to save IG Stories of any user to your Google Drive with just Google Sheets and Apps Script

lib-v10

2 months ago

What's Changed

๐Ÿ› Bug Fixes

  • Standardized log datetime format (#80)

    • Enhanced the insertNewLog function in logger.js to receive a JavaScript Date object for the datetime parameter instead of a string.
    • Retrieve the time zone from the spreadsheet's locate setting.
    • Transformed the datetime parameter to a datetime string in the format of "yyyy-MM-dd HH:mm:ss" using the Utilities.formatDate() method.
    • Adjusted the fetcher.js file to pass the date and time as a Date object when calling the insertNewLog function.
  • Resolved the "No item with the given ID could be found" error (#112)

    • Enclosed the DriveApp.getFileById method call in a try-catch block in logger.js.
    • Included error logging in the catch block if an exception is thrown.

โฌ† Dependencies

  • Updated:
    • jekyll (3.9.0 โ†’ 3.9.5)
    • nokogiri (1.16.0 โ†’ 1.16.2) in /docs (#96)
    • apps-script-oauth2 (72d4dbc โ†’ 6ae908a) (#101)
    • eslint-plugin-googleappsscript (1.0.4 โ†’ 1.0.5) (#106)
    • @babel/preset-env (7.23.7 โ†’ 7.24.0) (#107)
    • @rollup/plugin-multi-entry (6.0.0 โ†’ 6.0.1) (#108)
    • eslint (8.34.0 โ†’ 8.57.0) (#109)
    • rollup (3.15.0 โ†’ 4.12.0) (#110)

๐Ÿ“ Documentation

  • Corrected the permalink URLs of "Release Notes" and "Advanced Configurations" pages.

  • Updated API endpoint URLs for status badges.

  • Enhanced formatting of H2 headers in release notes:

    • Eliminated build numbers from H2 headers.
    • Enclosed release dates with parentheses.
  • Refined and styled the changelog.

๐Ÿ’š CI/CD Integration

  • Implemented automated version updates via Dependabot.
  • Upgraded github/codeql-action (1 โ†’ 3) and actions/checkout (2 โ†’ 4) in codeql-analysis.yml

Full Changelog: https://github.com/chriskyfung/AutoFetcher-IG-Stories-to-GDrive/compare/lib-v9...lib-v10

lib-v9

3 months ago

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: https://github.com/chriskyfung/AutoFetcher-IG-Stories-to-GDrive/compare/lib-v8...lib-v9

lib-v8

1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/chriskyfung/AutoFetcher-IG-Stories-to-GDrive/compare/lib-v7...lib-v8

build230216a

1 year ago

lib-v7

1 year ago

build230214a

1 year ago

lib-v6

1 year ago

What's Changed

Full Changelog: https://github.com/chriskyfung/AutoFetcher-IG-Stories-to-GDrive/compare/lib-v5...lib-v6

build221013a

1 year ago

lib-v5

1 year ago

What's Changed

๐Ÿ› Bug Fixes

๐Ÿ“ฆ Packaging Updates

  • Enabled singleQuote setting in Prettier

๐Ÿ“ Documentation

  • Updated Google Sheet links in README.md by @chriskyfung

Full Changelog: https://github.com/chriskyfung/AutoFetcher-IG-Stories-to-GDrive/compare/lib-v4...lib-v5