Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@nebular/theme
Advanced tools
2.0.0 (2018-10-02)
Nebular 2.0 is stable now! After 10 release candidates and a year of work we finally made it with a great help of Nebular community and we cannot be more grateful for all of your contributions! :tada:
isAuthenticatedOrRefresh
to not refresh token with no value (#708) (b29418f)Invalid value for $grid-breakpoints..
(#736) (23e7804)angular.json
(#701) (3211c54)isAuthenticatedOrRefresh
method, update NbAuthJWTInterceptor
to refresh the token (#649) (c8e8964)This release has introduced a number of changes which may required some manual update steps, depending on your setup:
@nebular/bootstrap
package. To do that:npm i @nebular/bootstrap
styles.scss
@import '~@nebular/bootstrap/styles/globals';
// ...
@include nb-install() {
// ...
@include nb-bootstrap-global();
}
~@nebular/theme/styles/global/bootstrap/breakpoints
in your code, replace it with ~@nebular/theme/styles/global/breakpoints
~@nebular/theme/styles/global/bootstrap/*.scss
somewhere in your code, replace it with ~@nebular/bootstrap/styles/*.scss
npm i @angular/cdk
Here's a list of other possibly breaking changes that you may need to take into account:
menu: NbMenuComponent
and NbContextMenuDirective
now fire itemClick even if item with routerLink
was clicked.
menu: The NbMenuService
not reply the last click event. To update: if you use the knowledge that the last click event is replied you can wrap onItemClick
stream in the custom stream based on ReplaySubject
.
theme: angular2-toaster styles were removed from Nebular.
Instead, we suggest using our new NbToastrService
. To update: add NbToastrModule
into imports of your app.module
.
Inject NbToastrService
into the required component.
call NbToastrService.show(...)
to render toasts.
For more information check toastr documentation.
theme: All bootstrap override styles were moved from the @nebular/theme package to the new @nebular/bootstrap package. If you don't need bootstrap support you can simply no use this package. @nebular/theme package introduced a dependency of normalize.css. To update:
npm i @nebular/bootstrap
styles.scss
@import '~@nebular/bootstrap/styles/globals';
// ...
@include nb-install() {
// ...
@include nb-bootstrap-global();
}
theme: appendToLayoutTop
and clearLayoutTop
methods was removed from NbThemeService
. Instead of this methods, you have to use NbOverlayService
. It's the extension of @angular/cdk overlays, so, check documentation first of all. Basic usage of overlays may look like this:
constructor(protected overlay: NbOverlayService) {
}
const overlayRef = overlay.create();
const overlayComponentPortal = new ComponentPortal(MyOverlayComponent);
overlayRef.attach(overlayComponentPortal);
tabset: Possibly a breaking change since tabs won't be bold in hover state.
auth: According to RFC6749 section 4.3.2, the OAuth2 token request body with grant-type='password' must provide username
to the auth server and not email
.
auth: NbAuthJWTInterceptor
now always tries to refresh the token.
Urls for token sending can be filtered using a filter function:
{ provide: NB_AUTH_TOKEN_INTERCEPTOR_FILTER, useValue: (req) => filter(req)},
failWhenNoToken
has been removed from password strategy as it was still not released and becoming redundant<a name="2.0.0-rc.10"></a>
FAQs
@nebular/theme
The npm package @nebular/theme receives a total of 15,456 weekly downloads. As such, @nebular/theme popularity was classified as popular.
We found that @nebular/theme demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.