Releases: rubenCodeforges/ng-gapi
Releases · rubenCodeforges/ng-gapi
ng-gapi-0.0.43
Breaking change
this onLoad
method doesnt accepts now a callback , instead it is a Observable
Was:
this.googleApi.onLoad(this.loadGapiAuth());
Now
this.googleApi.onLoad().subscribe(() => {
this.loadGapiAuth();
});
The config interface has also changed.
New name is NgGapiClientConfig
and it extends the gapi ClientConfig
Now you need to change in your config the clientId
to client_id
let gapiClientConfig: NgGapiClientConfig = {
client_id: "CLIENT_ID",
discoveryDocs: ["https://analyticsreporting.googleapis.com/$discovery/rest?version=v4"],
scope: [
"https://www.googleapis.com/auth/analytics.readonly",
"https://www.googleapis.com/auth/analytics"
].join(" ")
};
ng-gapi-0.0.42-1
Added all configs for the client
interface ClientConfig {
clientId: string;
discoveryDocs: string[];
scope: string;
ux_mode?: string;
fetch_basic_profile?: boolean;
cookie_policy?: string;
hosted_domain?: string;
redirect_uri?: string;
}
For details about the types see the official docs https://developers.google.com/api-client-library/javascript/reference/referencedocs#gapiauth2clientconfig
ng-gapi-0.0.42
- Fixed missing provider issue #9
ng-gapi-0.0.41 Stabilized
This release requires latest Angular 4+ and TypeScript 2.3+ versions
- fixed issue #4
- npm compilation issue fixed
ng-gapi 0.0.39
- AOT Bugfix
ng-gapi 0.0.38
Fixed a bug that caused compilation errors when used as npm package
Updated readme with new configuration object
Ng-gapi Stable release
- Stabilized library to work in Angular 2+ environment.
- Added detailed README
- npm publishing added
TODO:
- add google api resource services
- test coverage