Skip to content

Latest commit

 

History

History
583 lines (310 loc) · 18.3 KB

CHANGELOG.md

File metadata and controls

583 lines (310 loc) · 18.3 KB

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

3.1.0 (2017-03-25)

Features

  • expose mouseClick event on confirm / cancel (e7aac49), closes #39

3.0.0 (2017-03-24)

Bug Fixes

  • remove <template> deprecation warning (11f2820)

BREAKING CHANGES

  • angular 4.0 or higher is now required to use this module. The upgrade should be seamless for most users

2.1.3 (2017-03-23)

Bug Fixes

  • loosen peer dependency to allow angular 4 (7e84d3c)

2.1.2 (2017-01-11)

Bug Fixes

  • positioning: fix accidental breaking change for rollup users (db541cc)

2.1.1 (2017-01-07)

Bug Fixes

  • downgrade typescript to fix error when consuming the library (f8ca343)

2.1.0 (2017-01-07)

Features

  • support latest bootstrap 4 alpha (daf1a1c), closes #34

2.0.3 (2016-11-08)

Bug Fixes

  • aot: fix aot compilation (5d5818a)

2.0.2 (2016-11-08)

Bug Fixes

  • fix default confirm text (b7bbced)

2.0.1 (2016-11-08)

Bug Fixes

  • rename all internal directives, components and providers (356f545)

2.0.0 (2016-11-08)

Bug Fixes

Features

  • defaults: defaults are now configured by passing them via ConfirmModule.forRoot() (802c1ef)
  • positioning: the position service is now bundled by default (c486999), closes #23
  • rename ConfirmModule to ConfirmationPopoverModule (1da24d0)
  • rename mwlConfirm to mwlConfirmationPopover (ef5fcf4)
  • rename the npm package (d1cbaa5), closes #22

BREAKING CHANGES

  • the package name has been renamed from angular2-bootstrap-confirm to angular-confirmation-popover
  • the directive selector has changed from mwlConfirm to mwlConfirmationPopover
  • The ConfirmModule has been renamed to ConfirmationPopoverModule
  • defaults: Before:
const defaults = new ConfirmOptions();
defaults.confirmButtonType = 'danger';

providers: [
  {provide: ConfirmOptions, useValue: defaults}
]

After:

imports: [
  ConfirmModule.forRoot({
    confirmButtonType: 'danger'
  })
]
  • positioning: There is now no longer any exported Position token. To migrate just remove any references to it
  • aot: angular 2.1.2 or higher is now required for AOT to work

1.0.4 (2016-10-21)

Bug Fixes

  • aot: export confirm directive (c543bf1)

1.0.3 (2016-10-21)

Bug Fixes

  • aot: export focus directive (3f43e68)

1.0.2 (2016-09-28)

Bug Fixes

  • typings: don't include references to core-js (a82acb4), closes #20

1.0.1 (2016-09-25)

Bug Fixes

  • use correct module imports (261dec7)

1.0.0 (2016-09-25)

Features

  • position: export position service from index of the position folder (6c48a3e)

BREAKING CHANGES

  • position: Before:
import {Positioning} from 'angular2-bootstrap-confirm/position/position';

After:

import {Positioning} from 'angular2-bootstrap-confirm/position';

0.11.3 (2016-09-24)

Bug Fixes

  • aot: remove private from methods used in templates (c5ad1d6)

0.11.2 (2016-09-24)

Bug Fixes

  • aot: export popover component so aot works (599021a)

0.11.1 (2016-09-24)

Bug Fixes

  • aot: fix typescript errors when using aot (6827be0)

0.11.0 (2016-09-24)

Features

  • build: support offline template compilation (b7d518d)

BREAKING CHANGES

  • build: For System.js users the path to the UMD files has changed:

Before:

node_modules/angular2-bootstrap-confirm/angular2-bootstrap-confirm.js

After:

node_modules/angular2-bootstrap-confirm/dist/umd/angular2-bootstrap-confirm.js

0.10.2 (2016-09-13)

Bug Fixes

  • peerDependencies: allow any version of angular higher than RC5 (f6add7d)

0.10.1 (2016-09-01)

Bug Fixes

  • angular2: fix peer dependency to allow for RC6 (a85cf87)

0.10.0 (2016-08-12)

Features

BREAKING CHANGES

  • A peer dependency of angular RC5 is now required.

The ConfirmPopover component and Confirm directive are now no longer exported. Instead you must use the new ConfirmModule module in your apps module like so:

import {NgModule} from '@angular/core';
import {ConfirmModule} from 'angular2-bootstrap-confirm';

@NgModule({
  declarations: [MyComponent],
  imports: [ConfirmModule],
  bootstrap: [MyComponent]
})
class MyModule {}

0.9.1 (2016-08-04)

Bug Fixes

  • position: fix positionining typings (80a51d3)

0.9.0 (2016-08-04)

Features

  • position: change the recommended positioning service (d2a780b)

BREAKING CHANGES

  • position: The exported service name from the angular2-bootstrap-confirm/position/position file has changed from PositionService to Positioning. To migrate:

Before

import {PositionService} from 'angular2-bootstrap-confirm/position/position';

After:

import {Positioning} from 'angular2-bootstrap-confirm/position/position';

0.8.1 (2016-07-02)

  • rebuild with typescript stable instead of nightly

0.8.0 (2016-07-02)

Features

  • use ComponentFactoryResolver for creating the popover (99af89f)
  • mwlConfirm: renamed the selector of the mwlConfirm directive (54a013c)
  • mwlFocus: rename focusOn to mwlFocus (5e3cbe7)
  • mwlFocus: rename the mwlFocus directive selector to be camelcased (724ea47)

BREAKING CHANGES

  • mwlConfirm: the CSS selector of the directive has changed from mwl-confirm to mwlConfirm
  • You must now add a precompile: [ConfirmPopover], to any components metadata that uses the confirm directive like so:
import {Component} from '@angular/core';
import {Confirm, ConfirmOptions, ConfirmPopover, Position} from 'angular2-bootstrap-confirm';
@Component({
  selector: 'my-component',
  directives: [
    Confirm
  ],
  precompile: [
    ConfirmPopover
  ],
  ...
})
class MyComponent {
}
  • mwlFocus: focusOn has been removed in favour of binding directly to the mwlFocus selector. Only relevant if using a custom template.

Before:

mwlFocus [focusOn]="condition"

After

[mwlFocus]="condition"
  • mwlFocus: the mwlFocus selector has changed from mwl-focus to mwlFocus. Only relevant if using a custom template.

0.7.0 (2016-07-01)

Features

  • use new Compiler service for creating the popover (2707211)

BREAKING CHANGES

  • angular RC4 or higher is now required to use this module

0.6.0 (2016-06-25)

Features

  • customTemplate: allow a custom template to be used for the popover (ce7fec6), closes #6

0.5.2 (2016-06-23)

Bug Fixes

  • isOpen: fix isOpen attribute that when set would break this module (fe5516d), closes #14

0.5.1 (2016-06-22)

0.5.0 (2016-06-17)

Features

  • appendToBody: add support for appendToBody (6cfa171), closes #4
  • popoverClass: allow a custom CSS class to be set on the popover (e5baed9)
  • provide: remove deprecated provide usage (36f315f)

BREAKING CHANGES

  • provide: angular RC2 or greater is now required to use this module

0.4.1 (2016-05-19)

Bug Fixes

  • angular-cli: add main module export for angular-cli (b8b77ac)

0.4.0 (2016-05-10)

Features

ConfirmOptions: allow confirm options to be instantiated by angulars DI

BREAKING CHANGES

  • the constructor of ConfirmOptions now no longer takes an object of values.

This allows you to just pass ConfirmOptions directly to the providers of your app or component and angular will instantiate it for you. e.g.

providers: [ConfirmOptions], // previously angular would throw and you'd have to instantiate it yourself with useFactory

To migrate:

Before:

const options = new ConfirmOptions({
  focusButton: 'confirm'
});

After:

const options = new ConfirmOptions();
Object.assign(options, {
  focusButton: 'confirm'
});

0.3.3 (2016-05-09)

Bug Fixes

  • dont bundle angular common module with the dist files(9b03f61)

0.3.2 (2016-05-09)

Bug Fixes

  • fix typescript error that prevented the module from being imported(252e83e)

0.3.1 (2016-05-09)

  • test release of the new publishing script and to update the npm readme

0.3.0 (2016-05-07)

Features

  • position: rename PositionService to Position (5c05e4e), closes #11

BREAKING CHANGES

  • position: PositionService has now been renamed to Position. Use it like so:
import {Position} from 'angular2-bootstrap-confirm';
import {PositionService} from 'ng2-bootstrap/components/position';
provide(Position, {useClass: PositionService})

0.2.0 (2016-05-07)

Features

  • angular2: upgrade to angular2 RC1 (d4d3c6b)
  • buttons: allow hiding of the confirm / cancel buttons (540b965), closes #10
  • position: provide a bundled copy of the position service so ng2-bootstrap isn't required as a peer dependency (37b295f)
  • allow usage without a module bundler by providing a standalone position bundle (9ebae67), closes #8
  • add bootstrap v4 classes (3f4959f2)

BREAKING CHANGES

  • position: you now need to provide the position service for the directive to use like so:
import {provide} from '@angular/core';
import {bootstrap} from '@angular/platform-browser-dynamic';
import {Confirm, ConfirmOptions, PositionService} from 'angular2-bootstrap-confirm';
import {PositionService as Ng2PositionService} from 'ng2-bootstrap/components/position';
// Or if you don't want to depend on the ng2-bootstrap module, use the bundled position service:
// import {PositionService as Ng2PositionService} from 'angular2-bootstrap-confirm/position/position';
bootstrap(MyApp, [
   provide(PositionService, {useClass: Ng2PositionService})
]);
  • angular2: a peer dependency of angular2 RC1 is now required

0.1.0

Initial release