Skip to content

Latest commit

 

History

History
168 lines (112 loc) · 4.27 KB

CHANGELOG.md

File metadata and controls

168 lines (112 loc) · 4.27 KB

Changelog

4.1.0

  • update and move documentation to the wiki page.
  • fix(AuthService): fix login URL.
  • refactor(CollectionDirective).

Breaking changes:

  • WpEndpoint is deprecated, use the name or the address of the endpoint directly, read more
  • In WpPost class the function WpPost.featuredImageUrl(size) is renamed to WpPost.featuredImage(size)

4.0.0

  • update peerDependencies.
  • rename npm package to ngx-wordpress.

3.0.1

  • fix(ConfigService): check if photonOptions is defined, closes #27

3.0.0

  • refactor(WordPressModule) initialize Photon options from WordPressModule.forRoot(baseUrl, photonArgs(), debug)
  • feat(PhotonService) exceptions

Breaking changes:

  • WpService.config.setPhotonQuery() is removed, intializing photon is done from WordPressModule

3.0.0-beta2

  • feat(Photon): now you can use photon cdn to get images, closes #16
  • fix(Aot) closes #16

3.0.0-beta1

  • feat(CollectionDirective) Collection directive
  • feat(ModelDirective) Model directive
  • docs(Readme): docs for version 3.x
  • feat(ConfigService): Use wpService.config.debug = true; to log WP requests' URLs to console.
  • feat(build): Support systemjs
  • refactor(gulp.js): improve build system

Breaking Changes:

  • WpQueryArgs removed, use an object instead
  • DirectLink removed
  • Components are replaced with directives
  • ConfigService:
    • requests' timeout removed
    • loading notifier removed
    • errors notifier removed

2.1.6

  • (refactor) code is simplified
  • Support AoT
  • Import missing operators from rxjs
  • Cleanup
  • Demo folder

2.1.5

###Bugs:

  • Fixes: timeout is not a function error, closes (#4)

2.1.2

Bugs:

  • Fixes WpHttp: used to return Observable.empty() instead of Observable.throw(err).

Improvements:

  • ModelResponse interface for WpService.Model() responses.
  • Errors can be caught from the response for both CollectionResponse and ModelResponse with res.error

Breaking Changes:

  • WpService.Model(): model response is now wrapped in ModelResponse object.

    Before:

    WpService.Model.(...).subscribe((res) => {
        this.data = res.data;
    }

    After:

    WpService.Model.(...).subscribe((res: ModelResponse) => {
        if(res.error){
            console.log(res.error);
        }
        else{
            this.data = res.data;
        }
    });
    

2.1.0

Use WpService.config instead of WpConfig to keep all usages in one service.

###Bugs:

  • Basic Authentication: Fixes request and return observable instead of void

    WpService.auth().basic(username,password).subscribe(...)

Features:

  • WpService.Collection(): Added next() and prev() functions

    • collectionService = wpService.collection().posts().get.subscribe(...) Get collection
    • collectionService.more().subscrube(...) Combine current page with next page collection
    • collectionService.next().subscrube(...) Get next page collection
    • collectionService.prev().subscrube(...) Get prev page collection
  • WpCollectionComponent: Added next() and prev() functions

  • Discovery endpoint: Discover if a url has WP API install. WpService.discover(url).subscribe(...)

  • Cookies Authentication: WpService.auth().cookies().subscribe(...)

Breaking Changes:

All helper classes has been prefixed with Wp

  • Post is now WpPost
  • User is now WpUser
  • QueryArgs is now WpQueryArgs
  • WpHelper.endpoint is now WpEndpoint
  • WpHelper is deprecated.
  • authentication notifier is deprecated from WpConfig.

2.0.1

No changes.

  • added keywords to package.json

2.0.0

The service has been rewritten from scratch

1.2.9

BREAKING CHANGES:

  • Before:
    import {Collection} from 'ng2-wp-api/ng2-wp-api';
    
  • After:
    import {Collection} from 'ng2-wp-api';
    

1.2.7

Bug Fixes:

  • Collection response headers: fix property name for X-WP-Total and X-Wp-Totalpages