Socket
Socket
Sign inDemoInstall

angular

Package Overview
Dependencies
Maintainers
3
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular - npm Package Versions

1
15

1.2.2

Diff

Changelog

Source

1.2.2 consciousness-inertia (2013-11-22)

Bug Fixes

  • $animate:
    • ensure keyframe animations are blocked around the reflow (6760d7a3, #5018)
    • ensure transition animations are unblocked before the dom operation occurs (062fbed8, #5014, #4265)
    • ensure addClass/removeClass animations do not snap during reflow (76e4db6f, #4892)
    • ensure the DOM operation isn't run twice (7067a8fb, #4949)
  • $compile:
    • secure form[action] & iframe[srcdoc] (0421cb42, #4927, #4933)
    • ensure CSS classes are added and removed only when necessary (0cd7e8f2)
  • $httpBackend: only IE8 and below can't use script.onload for JSONP (a3172a28, #4523, #4527, #4922)
  • $parse: allow for new lines in expr when promise unwrapping is on (40647b17, #4718)
  • $resource: Always return a resource instance when calling class methods on resources. (f6ecf9a3, #4545, #5061)
  • httpBackend: should not read response data when request is aborted (6f1050df, #4913, #4940)
  • loader: expose $$minErr to modules such asngResource (9e89a31b, #5050)
  • ngAnimate:
    • correctly retain and restore existing styles during and after animation (c42d0a04, #4869)
    • use a fallback CSS property that doesn't break existing styles (1d50663b, #4902, #5030)
  • ngClass: ensure that ngClass only adds/removes the changed classes (6b8bbe4d, #4960, #4944)
  • ngController: fix issue with ngInclude on the same element (6288cf5c, #4431)
  • ngInclude:
    • Don't throw when the ngInclude element contains content with directives. (0a7cbb33)
    • allow ngInclude to load scripts when jQuery is included (c47abd0d, #3756)
  • ngMock: fixes httpBackend expectation with body object (4d16472b, #4956)
  • ngView: Don't throw when the ngView element contains content with directives. (e6521e74, #5069)
  • tests: Correct tests for IE11 (57924234, #5046)
  • input: hold listener during text composition (a4e6d962, #4684)

<a name="1.2.1"></a>

bclinkinbeard
published 1.2.1 •

Changelog

Source

1.2.1 underscore-empathy (2013-11-14)

Bug Fixes

  • $compile:
    • accessing controllers of transcluded directives from children (90f87072, #4935)
    • correctly handle interpolated style in replace templates (e1254b26, #4882)
  • $resource: don't use $parse for @dotted.member (9577702e)
  • bootstrap: make IE8 happy (a61b65d0)
  • loader: don't rely on internal APIs (8425e9fe, #4437, #4874)
  • minErr: remove references to internal APIs (94764ee0)
  • ngIf: don't create multiple elements when changing from a truthy value to another truthy value (4612705e, #4852)
  • urlUtils:

Features

<a name="1.2.0"></a>

bclinkinbeard
published 1.2.0 •

Changelog

Source

since 1.2.0 and 1.3.0-beta.1

Angular now requires a <base> tag when html5 mode of $location is enabled. Reasoning: Using html5 mode without a <base href="..."> tag makes relative links for images, links, ... relative to the current url if the browser supports the history API. However, if the browser does not support the history API Angular falls back to using the #, and then all those relative links would be broken.

The <base> tag is also needed when a deep url is loaded from the server, e.g. http://server/some/page/url. In that case, Angular needs to decide which part of the url is the base of the application, and which part is path inside of the application.

To summarize: Now all relative links are always relative to the <base> tag.

Exception (also a breaking change): Link tags whose href attribute starts with a # will only change the hash of the url, but nothing else (e.g. <a href="#someAnchor">). This is to make it easy to scroll to anchors inside a document.

Related to #6162 Closes #8492

bclinkinbeard
published 1.1.5 •

Changelog

Source

1.1.5 triangle-squarification (2013-05-22)

Note: 1.1.x releases are considered unstable. They pass all tests but we reserve the right to change new features/apis in between minor releases. Check them out and please give us feedback.

Note: This release also contains all bug fixes available in 1.0.7.

Features

  • $animator:

    • provide support for custom animation events (c53d4c94)
    • allow to globally disable and enable animations (5476cb6e)
  • $http:

    • add support for aborting via timeout promises (9f4f5937, #1159)
    • add a default content type header for PATCH requests (f9b897de)
    • add timeout support for JSONP requests (cda7b711)
  • $parse: add support for ternary operators to parser (6798fec4)

  • $q: add $q.always() method (6605adf6)

  • $controller: support "Controller as" syntax (cd38cbf9, 400f9360)

  • $injector: add has method for querying (80341cb9, #2556)

  • Directives:

    • ngAnimate:
      • add support for CSS3 Animations with working delays and multiple durations (14757874)
      • cancel previous incomplete animations when new animations take place (4acc28a3)
    • ngSrcset: add new ngSrcset directive (d551d729, #2601)
    • ngIf: add directive to remove and recreate DOM elements (2f96fbd1)
    • select: match options by expression other than object identity (c32a859b)
    • ngInclude: $includeContentRequested event (af0eaa30)
  • Mobile:

    • ngClick: Add a CSS class while the element is held down via a tap (52a55ec6)
    • ngSwipe: Add ngSwipeRight/Left directives to ngMobile (5e0f876c)
  • docs:

    • Add FullText search to replace Google search in docs (3a49b7ee)
    • external links to github, plunkr and jsfiddle available for code examples (c8197b44)
    • add variable type hinting with colors (404c9a65)
    • support for HTML table generation from docs code (b3a62b2e)
  • scenario runner: adds mousedown and mouseup event triggers to scenario (629fb373)

    Bug Fixes

    • $animator: remove dependency on window.setTimeout (021bdf39)

    • $controller: allow dots in a controller name (de2cdb06)

    • $location:

      • prevent navigation when event isDefaultPrevented (2c69a673)
      • compare against actual instead of current URL (a348e90a)
      • prevent navigation if already on the URL (4bd7bedf)
      • fix URL interception in hash-bang mode (58ef3230, #1051)
      • correctly rewrite Html5 urls (77ff1085)
    • $resource:

      • null default param results in TypeError (cefbcd47)
      • collapse empty suffix parameters correctly (53061363)
    • $rootScope: ensure $watchCollection correctly handles arrayLike objects (6452707d)

    • date filter: correctly format dates with more than 3 sub-second digits (4f2e3606)

    • jqLite: pass a dummy event into triggerHandler (0401a7f5)

    • Directives:

      • ngAnimate:
        • eval ng-animate expression on each animation (fd21c750)
        • prevent animation on initial page load (570463a4)
        • skip animation on first render (1351ba26)
      • ngPattern: allow modifiers on inline ng-pattern (12b6deb1, #1437)
      • ngRepeat:
      • ngView: accidentally compiling leaving content (9956baed)
    • scenario runner: correct bootstrap issue on IE (ab755a25)

Breaking Changes

  • $animator/ngAnimate: due to 11f712bc, css transition classes changed from foo-setup/foo-start to foo/foo-active

    The CSS transition classes have changed suffixes. To migrate rename

      .foo-setup {...} to .foo {...}
      .foo-start {...} to .foo-active {...}
    

    or for type: enter, leave, move, show, hide

      .foo-type-setup {...} to .foo-type {...}
      .foo-type-start {...} to .foo-type-active {...}
    
  • $resource: due to 53061363, a / followed by a ., in the last segment of the URL template is now collapsed into a single . delimiter.

    For example: users/.json will become users.json. If your server relied upon this sequence then it will no longer work. In this case you can now escape the /. sequence with /\.

<a name="1.0.7"></a>

bclinkinbeard
published 1.1.4 •

Changelog

Source

1.1.4 quantum-manipulation (2013-04-03)

Note: 1.1.x releases are considered unstable. They pass all tests but we reserve the right to change new features/apis in between minor releases. Check them out and please give us feedback.

Note: This release also contains all bug fixes available in 1.0.6.

Features

  • $compile:

  • $q: $q.all() now accepts hash (e27bb6eb)

  • $resource: ability to override url in resource actions (60f1f099)

  • $route: add caseInsensitiveMatch option for url matching (5e18a15f)

  • http:

    • support request/response promise chaining (4ae46814)
    • set custom default cache in $http.defaults.cache (99f3b70b)
  • JQLite: ready() now supports document.readyState=='complete' (753fc9e5)

  • Scenario: autodisable animations when running e2e tests (fec4ef38)

  • Scope: add $watchCollection method for observing collections (5eb96855)

  • angular.bootstrap: support deferred bootstrap (mainly useful for tools like test runners and Batarang) (603fe0d1)

  • ngMobile: add ngMobile module with mobile-specific ngClick (707c65d5)

  • Directives:

    • ngKeypress: add ngKeypress directive for handling keypress event (f20646bc)
    • ngSwitch: Preserve the order of the elements not in the ng-switch (e88d6179, #1074)
    • ngAnimate: add support for animation (0b6f1ce5)
    • ngRepeat: add support for custom tracking of items (61f2767c)

Breaking Changes

  • $route: due to 6f71e809, in $routeChangeStart event, nextRoute.$route property is gone. Use the nextRoute object itself instead of nextRoute.$route.

  • ngRepeat: due to 61f2767c, it is now considered an error to have two identical items (identified by the new "track by" expression) in a collection that is fed into the repeater. This behavior was previously tolerated.

  • ngSwitch: due to e88d6179, elements not in the ng-switch were rendered after the ng-switch elements. Now they are rendered in-place.

    Templates with ngSwitch directives and nested non-ngSwitchWhen elements should be updated to preserve render order.

    For example: The following was previously rendered with <li>1</li> after <li>2</li>:

      <ul ng-switch="select">
        <li>1</li>
        <li ng-switch-when="option">2</li>
      </ul>
    

    To keep the old behavior, use:

      <ul ng-switch="select">
        <li ng-switch-when="1">2</li>
        <li>1</li>
      </ul>
    

<a name="1.0.6"></a>

bclinkinbeard
published 1.1.3 •

Changelog

Source

1.1.3 radioactive-gargle (2013-02-20)

Note: 1.1.x releases are considered unstable. They pass all tests but we reserve the right to change new features/apis in between minor releases. Check them out and please give us feedback.

Note: This release also contains all bug fixes available in 1.0.5.

Bug Fixes

  • $compile:
    • initialize interpolated attributes before directive linking (bb8448c0)
    • interpolate @ locals before the link function runs (2ed53087)
  • $http:
    • do not encode special characters @$:, in params (288b69a3)
  • $resource:
    • params should expand array values properly (2a212344)

Features

  • $http: allow overriding the XSRF header and cookie name (8155c3a2)
  • $parse: added constant and literal properties (1ed63858)
  • $resource: expose promise based api via $then and $resolved (dba6bc73)
  • $routeProvider: add support to catch-all parameters in routes (7eafbb98)
  • Scope:
    • expose transcluded and isolate scope info for batarang (649b8922)
    • only evaluate constant $watch expressions once (1d7a95df)
  • angular.noConflict: added api to restore previous angular namespace reference (12ba6cec)
  • Directives:
    • ngSwitch: support multiple matches on ngSwitchWhen and ngSwitchDefault (0af17204, #1074)
  • Filters:
    • date: add [.,]sss formatter for milliseconds (df744f3a)
    • filter: add comparison function to filter (ace54ff0)

Breaking Changes

  • $http: due to 288b69a3, $http now follows RFC3986 and does not encode special characters like $@,: in params. If your application needs to encode these characters, encode them manually, before sending the request.
  • $resource: due to 2a212344, if the server relied on the buggy behavior of serializing arrays as http query arguments then either the backend should be fixed or a simple serialization of the array should be done on the client before calling the resource service.

<a name="1.0.5"></a>

bclinkinbeard
published 1.1.2 •

Changelog

Source

1.1.2 tofu-animation (2013-01-22)

Note: 1.1.x releases are considered unstable. They pass all tests but we reserve the right to change new features/apis in between minor releases. Check them out and please give us feedback.

Note: This release also contains all bug fixes available in 1.0.4.

Features

  • $compile: support modifying the DOM structure in postlink fn (cdf6fb19)
  • $log: add $log.debug() (9e991ddb, #1592)
  • $parse: allow strict equality in angular expressions (a179a9a9, #908)
  • $resource:
    • allow dynamic default parameters (cc42c99b)
    • support all $http.config actions (af89daf4)
  • $route: allow using functions as template params in 'when' (faf02f0c)
  • $timeout-mock: add verifyNoPendingTasks method (f0c6ebc0, #1245)
  • directive:
  • limitTo filter: limitTo filter accepts strings (9e96d983, #653)
  • scenario:
    • add mouseover method to the ngScenario dsl (2f437e89)
    • fail when an option to select does not exist (15183f3e)

Breaking Changes

  • date: due to cc821502, string input without timezone info is now parsed as local time/date

<a name="1.0.4"></a>

bclinkinbeard
published 1.1.1 •

Changelog

Source

1.1.1 pathological-kerning (2012-11-26)

Note: 1.1.x releases are considered unstable. They pass all tests but we reserve the right to change new features/apis in between minor releases. Check them out and please give us feedback.

Note: This release also contains all bug fixes available in 1.0.3.

Features

  • $cacheFactory: cache.put now returns the added value (168db339)
  • $http: Allow setting withCredentials on defaults (209b67df, #1095)
  • $resource: support custom headers per action (fbdab513, #736)
  • $sanitize: support telephone links (04450c48)
  • FormController: add ability to reset a form to pristine state (733a97ad, #856)
  • jqLite: add triggerHandler() (650fd933)
  • linky filter: allow optional 'target' argument (610927d7, #1443)
  • angular-mocks: support mocha in angular mocks (92558fe4)
  • ngModel: support ngTrim attribute on input (d519953a)
  • scenario: add dblclick method to the ngScenario dsl (8cb9c99e)
  • CSP: update to the latest CSP api (af7e0bd0, #1577)

Bug Fixes

  • $http:
    • config.param should expand array values properly (see breaking change notes below) (79af2bad, #1363)
    • prevent CORS preflight checks by removing X-Requested-With from header defaults (see breaking change notes below) (3a75b112, #1004)
    • prevent CORS preflight checks by not setting X-XSFR-TOKEN header for cross domain requests (see breaking change notes below) (fce100a4, #1096)

Refactorings

  • $evalAsync: have only one global async queue (331cd5a8)

Breaking Changes

  • Due to fix for #1363 it's possible but unlikely that $http will start generating different URLs for requests. This affects only cases when a request is made with a parameter, value of which is an array. If the server relied on the buggy behavior then either the backend should be fixed or a simple serialization of the array should be done on the client before calling the $http service.

  • Due to fix for #1004 the X-Requested-With header is not set by $http service any more. If anyone actually uses this header it's quite easy to add it back via:

      myAppModule.config(['$httpProvider', function($httpProvider) {
          $httpProvider.defaults.headers.common["X-Requested-With"] = 'XMLHttpRequest';
      }]);
    
  • Due to fix for #1096 X-XSFR-TOKEN header is no longer send for cross domain requests. This shouldn't affect any known production service. If we are wrong, please let us know ;-)

<a name="1.0.3"></a>

bclinkinbeard
published 1.1.0 •

Changelog

Source

1.1.0 increase-gravatas (2012-08-31)

Note: 1.1.x releases unlike 1.0.x are considered unstable. More info

This release also contains all bug fixes available in 1.0.2.

Features

  • $http: support custom responseType (e0a54f6b, #1013)
  • $interpolate:
    • provide contextual error messages (d804bbcd)
    • expose start/end symbols in run phase (58f121a5)
  • $sniffer: auto detect CSP mode (currently requires Chrome on dev channel) (167aa0c2)

<a name="1.0.2"></a>

bclinkinbeard
published 1.0.8 •

Changelog

Source

1.0.8 bubble-burst (2013-08-22)

Contains only these fixes cherry-picked from v1.2.0rc1.

Bug Fixes

  • $compile:

  • $http: ensure case-insensitive header overriding (25d9f5a8)

  • $location:

    • default to / for the url base if no base[href] (cbe31d8d, #2762)
    • prevent infinite digest error due to IE bug (97abb124, #2802)
    • don't crash on invalid query parameters (b9dcb35e)
  • $parse: move global getter out of parse.js (099138fb)

  • $q: call reject() even if $exceptionHandler rethrows (d59027c4)

  • $timeout: clean deferreds immediately after callback exec/cancel (ac69392c)

  • $sanitize: match URI schemes case-insensitively (fcd761b9, #3210)

  • Scope: watches can be safely unregistered inside watch handlers (a4ec2979, #2915)

  • ngMock

    • $timeout should forward delay argument (a5fb372e)
  • jqLite:

    • return array from multi select in val() (01cd3495)
    • forgive unregistration of a non-registered handler (ac5b9055)
    • prepend array in correct order (63414b96)
    • correctly monkey-patch core jQuery methods (815053e4)
  • Directives:

    • form: pick the right attribute name for ngForm (dc1e55ce, #2997)
    • input: fix the email regex to accept TLDs up to 6 characters long (ad76e77f)
    • ngCloak: hide element even when CSS 'display' is set (06b0930b)
    • ngSubmit: expose $event to ngSubmit callback (b0d5f062)
    • ngValue: made ngValue to write value attribute to element (3b898664)
  • Filters:

    • number: always convert scientific notation to decimal (408e8682)
    • orderBy: remove redundant if statement (ec1cece2)
  • i18n: Do not transform arrays into objects (751c77f8)

  • jqLite:

    • return array from multi select in val() (01cd3495)
    • forgive unregistration of a non-registered handler (ac5b9055)
    • prepend array in correct order (63414b96)
    • correctly monkey-patch core jQuery methods (815053e4)
  • Misc:

    • angular.copy: change angular.copy to correctly clone RegExp (5cca077e, #3473, #3474)
    • angular.equals:
      • add support for regular expressions (a357649d, #2685)
      • {} and [] should not be considered equivalent (da1f7c76)
    • angular.toJson: skip JSON.stringify for undefined (332a3c79)

<a name="1.2.0rc1"></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