Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.66 KB

CHANGELOG.md

File metadata and controls

44 lines (35 loc) · 1.66 KB

Changelog

This project adheres to Semantic Versioning.

[2.0.0] - 29/05/2022

Overview

  • Migration to the Google OAuth 2 system.
  • Enhancement of the typing.
  • Enhancement of the management for the config.
  • Removing some useful utils / functionnalities because of the compatibility with the new Google Auth API.
  • The state of the session(Signin status) cannot be handled by the package anymore.
  • Adding a folder with an exemple of using the package.
  • New build system of the package using tsup

Issues impacted by this update:

Breaking changes:

  • Removing listenSign
  • Removing getBasicUserProfile
  • No special import for Typescript anymore, you now have the same import as in js with typing included.
  • The package need to be initialized now (More flexibility for the handling of the config).

ex:

import ApiCalendar from 'react-google-calendar-api';

const config = {
  "clientId": "<CLIENT_ID>",
  "apiKey": "<API_KEY>",
  "scope": "https://www.googleapis.com/auth/calendar",
  "discoveryDocs": [
    "https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest"
  ]
}

const apiCalendar = new ApiCalendar(config)
// You can use apiCalendar like you were using ApiCalendar before