Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-cookies

Package Overview
Dependencies
Maintainers
2
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-cookies - npm Package Versions

1
1012

1.2.18

Diff

Changelog

Source

1.2.18 ear-extendability (2014-06-13)

Bug Fixes

  • $compile:
    • ensure transclude works at root of templateUrl (fd420c40, #7183, #7772)
    • bound transclusion to correct scope (1382d4e8)
    • don't pass transcludes to non-transclude templateUrl directives (b9ddef2a)
    • don't pass transclude to template of non-transclude directive (eafba9e2)
    • fix nested isolated transclude directives (bb931097, #1809, #7499)
    • pass transcludeFn down to nested transclude directives (8df5f325, #7240, #7387)
  • $injector: report circularity in circular dependency error message (14e797c1, #7500)
  • ngResource: don't convert literal values into Resource objects when isArray is true (f0904cf1, #6314, #7741)

Performance Improvements

  • $compile: move ng-binding class stamping for interpolation into compile phase (81b7e5ab)
  • $http: move xsrf cookie check to after cache check in $http (8b86d363, #7717)
  • isArray: use native Array.isArray (6c14fb1e)
  • jqLite: cache collection length for all methods that work on a single element (6d418ef5)
  • ngBind: set the ng-binding class during compilation instead of linking (1b189027)

<a name="1.3.0-beta.11"></a>

petermelias
published 1.2.17 •

Changelog

Source

since 1.2.17 and 1.3.0-beta.10

In html5 mode without a <base> tag on older browser that don't support the history API relative paths were adding up. E.g. clicking on <a href="page1"> and then on <a href="page2"> would produce $location.path()==='/page1/page2'. The code that introduced this behavior was removed and Angular now also requires a <base> tag to be present when using html5 mode.

Closes #8172, #8233

  • ngInclude, ngMessage, ngView and directives that load templates: due to a70e2833

Angular will now throw a $compile minErr each a template fails to download for ngView, directives and ngMessage template requests. This changes the former behavior of silently ignoring failed HTTP requests--or when the template itself is empty. Please ensure that all directive, ngView and ngMessage code now properly addresses this scenario. NgInclude is unaffected from this change.

If any stagger code consisted of having BOTH transition staggers and delay staggers together then that will not work the same way. Angular will now instead choose the highest stagger delay value and set the timeout to wait for that before applying the active CSS class.

Both the API for the cancelation method and the done callback for $animate animations is different. Instead of using a callback function for each of the $animate animation methods, a promise is used instead.

//before
$animate.enter(element, container, null, callbackFn);

//after
$animate.enter(element, container).then(callbackFn);

The animation can now be cancelled via $animate.cancel(promise).

//before
var cancelFn = $animate.enter(element, container);
cancelFn(); //cancels the animation

//after
var promise = $animate.enter(element, container);
$animate.cancel(promise); //cancels the animation

keep in mind that you will still need to run $scope.$apply inside of the then callback to trigger a digest.

$animate.addClass, $animate.removeClass and $animate.setClass will no longer start the animation right after being called in the directive code. The animation will only commence once a digest has passed. This means that all animation-related testing code requires an extra digest to kick off the animation.

//before this fix
$animate.addClass(element, 'super');
expect(element).toHaveClass('super');

//now
$animate.addClass(element, 'super');
$rootScope.$digest();
expect(element).toHaveClass('super');

$animate will also tally the amount of times classes are added and removed and only animate the left over classes once the digest kicks in. This means that for any directive code that adds and removes the same CSS class on the same element then this may result in no animation being triggered at all.

$animate.addClass(element, 'klass');
$animate.removeClass(element, 'klass');

$rootScope.$digest();

//nothing happens...

The value of $binding data property on an element is always an array now and the expressions do not include the curly braces {{ ... }}.

  • currencyFilter: due to c2aaddbe, previously the currency filter would convert null and undefined values into empty string, after this change these values will be passed through.

Only cases when the currency filter is chained with another filter that doesn't expect null/undefined will be affected. This should be very rare.

This change will not change the visual output of the filter because the interpolation will convert the null/undefined to an empty string.

Closes #8605

  • numberFilter: due to 2ae10f67, previously the number filter would convert null and undefined values into empty string, after this change these values will be passed through.

Only cases when the number filter is chained with another filter that doesn't expect null/undefined will be affected. This should be very rare.

This change will not change the visual output of the filter because the interpolation will convert the null/undefined to an empty string.

Closes #8605 Closes #8842

NgModel.viewValue will always be used when rendering validations for minlength and maxlength.

Closes #7967 Closes #8811

According to the HTML5 spec input[time] should create dates based on the year 1970 (used to be based on the year 1900).

Related to #8447.

Any parser code from before that returned an undefined value (or nothing at all) will now cause a parser failure. When this occurs none of the validators present in $validators will run until the parser error is gone. The error will be stored on ngModel.$error.

The blur and focus event fire synchronously, also during DOM operations that remove elements. This lead to errors as the Angular model was not in a consistent state. See this fiddle for a demo.

This change executes the expression of those events using scope.$evalAsync if an $apply is in progress, otherwise keeps the old behavior.

Fixes #4979 Fixes #5945 Closes #8803 Closes #6910 Closes #5402

The returned value from directive controller constructors are now ignored, and only the constructed instance itself will be attached to the node's expando. This change is necessary in order to ensure that it's possible to bind properties to the controller's instance before the actual constructor is invoked, as a convenience to developers.

In the past, the following would have worked:

angular.module("myApp", []).
    directive("myDirective", function() {
        return {
            controller: function($scope) {
                return {
                    doAThing: function() { $scope.thingDone = true; },
                    undoAThing: function() { $scope.thingDone = false; }
                };
            },
            link: function(scope, element, attrs, ctrl) {
                ctrl.doAThing();
            }
        };
    });

However now, the reference to doAThing() will be undefined, because the return value of the controller's constructor is ignored. In order to work around this, one can opt for several strategies, including the use of _.extend() or merge() like routines, like so:

angular.module("myApp", []).
    directive("myDirective", function() {
        return {
            controller: function($scope) {
                _.extend(this, {
                    doAThing: function() { $scope.thingDone = true; },
                    undoAThing: function() { $scope.thingDone = false; }
                });
            },
            link: function(scope, element, attrs, ctrl) {
                ctrl.doAThing();
            }
        };
    });

<a name="1.2.23"></a>

petermelias
published 1.2.16 •

Changelog

Source

1.2.16 badger-enumeration (2014-04-03)

Bug Fixes

  • $animate:
    • ensure the CSS driver properly works with SVG elements (38ea5426, #6030)
    • prevent cancellation timestamp from being too far in the future (35d635cb, #6748)
    • run CSS animations before JS animations to avoid style inheritance (0e5106ec, #6675)
  • $parse: mark constant unary minus expressions as constant (6e420ff2, #6932)
  • Scope:
  • filter.ngdoc: Check if "input" variable is defined (a275d539, #6819)
  • input: don't perform HTML5 validation on updated model-value (b2363e31, #6796, #6806)
  • ngClass: handle ngClassOdd/Even affecting the same classes (55fe6d63, #5271)

Features

<a name="1.3.0-beta.4"></a>

petermelias
published 1.2.15 •

Changelog

Source

v1.2.15 beer-underestimating (2014-03-21)

Bug Fixes

<a name="1.3.0-beta.2"></a>

petermelias
published 1.2.14 •

Changelog

Source

1.2.14 feisty-cryokinesis (2014-03-01)

Bug Fixes

  • $animate:
    • delegate down to addClass/removeClass if setClass is not found (18c41af0, #6463)
    • ensure all comment nodes are removed during a leave animation (f4f1f43d, #6403)
    • only block keyframes if a stagger is set to occur (e71e7b6c, #4225)
    • ensure that animatable directives cancel expired leave animations (e9881991, #5886)
    • ensure all animated elements are taken care of during the closing timeout (99720fb5, #6395)
    • fix for TypeError Cannot call method 'querySelectorAll' in cancelChildAnimations (c914cd99, #6205)
  • $http:
  • $parse: reduce false-positives in isElement tests (5fe1f39f, #4805, #5675)
  • input: use ValidityState to determine validity (c2d447e3, #4293, #2144, #4857, #5120, #4945, #5500, #5944)
  • isElement: reduce false-positives in isElement tests (75515852)
  • jqLite:
  • numberFilter: convert all non-finite/non-numbers/non-numeric strings to the empty string (cceb455f, #6188, #6261)
  • $parse: support trailing commas in object & array literals (6b049c74)
  • ngHref: bind ng-href to xlink:href for SVGAElement (2bce71e9, #5904)

Features

  • $animate: animate dirty, pristine, valid, invalid for form/fields (33443966, #5378)

Performance Improvements

  • $animate: use rAF instead of timeouts to issue animation callbacks (4c4537e6)
  • $cacheFactory: skip LRU bookkeeping for caches with unbound capacity (a4078fca, #6193, #6226)

<a name="1.2.13"></a>

petermelias
published 1.2.13 •

Changelog

Source

1.2.13 romantic-transclusion (2014-02-14)

Bug Fixes

Features

  • filterFilter: support deeply nested predicate objects (b4eed8ad, #6215)

Breaking Changes

  • $animate:

    • due to 4f84f6b3, ngClass and {{ class }} will now call the setClass animation callback instead of addClass / removeClass when both a addClass/removeClass operation is being executed on the element during the animation.

      Please include the setClass animation callback as well as addClass and removeClass within your JS animations to work with ngClass and {{ class }} directives.

    • due to cf5e463a, Both the $animate:before and $animate:after DOM events must be now registered prior to the $animate operation taking place. The $animate:close event can be registered anytime afterwards.

      DOM callbacks used to fired for each and every animation operation that occurs within the $animate service provided in the ngAnimate module. This may end up slowing down an application if 100s of elements are being inserted into the page. Therefore after this change callbacks are only fired if registered on the element being animated.

  • input:

    • due to a9fcb0d0, input[type=file] will no longer support ngModel. Due to browser support being spotty among target browsers, file inputs cannot be cleanly supported, and even features which technically do work (such as ng-change) work in an inconsistent way depending on the attributes of the form control.

      As a workaround, one can manually listen for change events on file inputs and handle them manually.

<a name="1.2.12"></a>

petermelias
published 1.2.12 •

Changelog

Source

1.2.12 cauliflower-eradication (2014-02-07)

Bug Fixes

  • $compile: retain CSS classes added in cloneAttachFn on asynchronous directives (5ed721b9, #5439, #5617)
  • $http:
  • $locale: minor grammar amends for the locale locale_lt (95be253f, #6164)
  • $q: make $q.reject support finally and catch (074b0675, #6048, #6076)
  • docs: clarify doc for "args" in $broadcast and $emit (caed2dfe, #6047)
  • filterFilter: don't interpret dots in predicate object fields as paths (339a1658, #6005, #6009)
  • http: make jshint happy (6609e3da)
  • jqLite: trim HTML string in jqLite constructor (36d37c0e, #6053)
  • mocks:
    • rename mock.animate to ngAnimateMock and ensure it contains all test helper code for ngAnimate (4224cd51, #5822, #5917)
    • remove usage of $animate.flushNext in favor of queuing (906fdad0)
    • always call functions injected with inject with this set to the current spec (3bf43903, #6102)
    • refactor currentSpec to work w/ Jasmine 2 (95f0bf9b, #5662)
  • ngMock: return false from mock $interval.cancel() when no argument is supplied (dd24c783, #6103)
  • ngResource:

Breaking Changes

The animation mock module has been renamed from mock.animate to ngAnimateMock. In addition to the rename, animations will not block within test code even when ngAnimateMock is used. However, all function calls to $animate will be recorded into $animate.queue and are available within test code to assert animation calls. In addition, $animate.triggerReflow() is now only available when ngAnimateMock is used.

<a name="1.2.11"></a>

petermelias
published 1.2.11 •

Changelog

Source

1.2.11 cryptocurrency-hyperdeflation (2014-02-03)

Bug Fixes

  • $compile: retain CSS classes added in cloneAttachFn on asynchronous directives (5ed721b9, #5439, #5617)
  • $http: update httpBackend to use ActiveXObject on IE8 if necessary (ef210e5e, #5677, #5679)
  • $q: make $q.reject support finally and catch (074b0675, #6048, #6076)
  • filterFilter: don't interpret dots in predicate object fields as paths (339a1658, #6005, #6009)
  • mocks: refactor currentSpec to work w/ Jasmine 2 (95f0bf9b, #5662)
  • ngResource: don't append number to '$' in url param value when encoding URI (ce1f1f97, #6003, #6004)

<a name="1.2.10"></a>

petermelias
published 1.2.10 •

Changelog

Source

1.2.10 augmented-serendipity (2014-01-24)

Bug Fixes

  • $parse: do not use locals to resolve object properties (f09b6aa5, #5838, #5862)
  • a: don't call preventDefault on click when a SVGAElement has an xlink:href attribute (e0209169, #5896, #5897)
  • input: use Chromium's email validation regexp (79e519fe, #5899, #5924)
  • ngRoute: pipe preceding route param no longer masks ? or * operator (fd6bac7d, #5920)

Features

<a name="1.2.9"></a>

petermelias
published 1.2.9 •

Changelog

Source

1.2.9 enchanted-articulacy (2014-01-15)

Bug Fixes

  • $animate:
    • ensure the final closing timeout respects staggering animations (ed53100a)
    • prevent race conditions for class-based animations when animating on the same CSS class (4aa9df7a, #5588)
    • correctly detect and handle CSS transition changes during class addition and removal (7d5d62da)
    • avoid accidentally matching substrings when resolving the presence of className tokens (524650a4)
  • $http: ensure default headers PUT and POST are different objects (e1cfb195, #5742, #5747, #5764)
  • $rootScope: prevent infinite $digest by checking if asyncQueue is empty when decrementing ttl (2cd09c9f, #2622)

Features

  • $animate:
    • provide support for DOM callbacks (dde1b294)
    • use requestAnimationFrame instead of a timeout to issue a reflow (4ae3184c, #4278, #4225)

Breaking Changes

  • $http: due to e1cfb195, it is now necessary to separately specify default HTTP headers for PUT, POST and PATCH requests, as these no longer share a single object.

    To migrate your code, follow the example below:

    Before:

    // Will apply to POST, PUT and PATCH methods
    $httpProvider.defaults.headers.post = {
      "X-MY-CSRF-HEADER": "..."
    };
    

    After:

    // POST, PUT and PATCH default headers must be specified separately,
    // as they do not share data.
    $httpProvider.defaults.headers.post =
      $httpProvider.defaults.headers.put =
      $httpProviders.defaults.headers.patch = {
        "X-MY-CSRF-HEADER": "..."
      };
    

<a name="1.2.8"></a>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc