This project adheres to Semantic Versioning.
- 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:
- Gapi auth deprecation #81
- This lib is not working correct anymore #80
- Migrate to Google Identity Services #77
- ApiCalendar any type #46
- 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