Skip to content

Releases: rubenCodeforges/ng-gapi

ng-gapi-0.0.43

23 Sep 12:46
Compare
Choose a tag to compare

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

31 Jul 07:18
Compare
Choose a tag to compare

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

20 Jul 07:24
Compare
Choose a tag to compare
  • Fixed missing provider issue #9

ng-gapi-0.0.41 Stabilized

14 Jul 13:40
Compare
Choose a tag to compare

This release requires latest Angular 4+ and TypeScript 2.3+ versions

  • fixed issue #4
  • npm compilation issue fixed

ng-gapi 0.0.39

06 May 14:03
Compare
Choose a tag to compare
  • AOT Bugfix

ng-gapi 0.0.38

06 May 08:26
Compare
Choose a tag to compare

Fixed a bug that caused compilation errors when used as npm package
Updated readme with new configuration object

Ng-gapi Stable release

27 Apr 20:04
Compare
Choose a tag to compare
Pre-release
  • Stabilized library to work in Angular 2+ environment.
  • Added detailed README
  • npm publishing added

TODO:

  • add google api resource services
  • test coverage