Skip to content

Latest commit

 

History

History
280 lines (220 loc) · 8.06 KB

CHANGELOG.md

File metadata and controls

280 lines (220 loc) · 8.06 KB

"angular-in-memory-web-api" versions

This in-memory-web-api exists primarily to support the Angular documentation. It is not supposed to emulate every possible real world web API and is not intended for production use.

Most importantly, it is always experimental. We will make breaking changes and we won't feel bad about it because this is a development tool, not a production product. We do try to tell you about such changes in this CHANGELOG.md

and we fix bugs as fast as we can.

0.3.1 (2017-03-08)

  • Now runs in node so can use in "universal" demos. See PR #102.

0.3.0 (2017-02-27)

  • Support Angular version 4

0.2.4 (2017-01-02)

  • Remove reflect-matadata and zone.js as peerDependencies

0.2.3 (2016-12-28)

  • Unpin RxJs

0.2.2 (2016-12-20)

  • Update to Angular 2.4.0

0.2.1 (2016-12-14)

  • Fixed regression in handling commands, introduced in 0.2.0
  • Improved README

0.2.0 (2016-12-11)

  • BREAKING CHANGE: The observables returned by the handleCollections methods that process requests against the supplied in-mem-db collections are now "cold". That means that requests aren't processed until something subscribes to the observable ... just like real-world Http calls.

    Previously, these request were "hot" meaning that the operation was performed immediately (e.g., an in-memory collection was updated) and then we returned an Observable<Response>. That was a mistake! Fixing that mistake might break your app which is why bumped the minor version number from 1 to 2.

    We hope very few apps are broken by this change. Most will have subscribed anyway. But any app that called an http method with fire-and-forget ... and didn't subscribe ... expecting the database to be updated (for example) will discover that the operation did not happen.

  • BREAKING CHANGE: createErrorResponse now requires the Request object as its first parameter so it can prepare a proper error message. For example, a 404 errorResponse.toString() now shows the request URL.

  • Commands remain "hot" — processed immediately — as they should be.

  • The HTTP GET interceptor in example hero-data.service shows how to create your own "cold" observable.

  • While you can still specify the inMemDbService['responseInterceptor'] to morph the response options, the previously exported responseInterceptor function no longer exists as it served no useful purpose. Added the ResponseInterceptor type to remind you of the signature to implement.

  • Allows objects with id===0 (issue #56)

  • The default parseUrl method is more flexible, thanks in part to the new config.apiBase property. See the ReadMe to learn more.

  • Added config.post204 and config.put204 to control whether PUT and POST return the saved entity. It is true by default which means they do not return the entity (status=204) — the same behavior as before. (issue #74)

  • response.url is set to request.url when this service itself creates the response.

  • A few new methods (e.g., emitResponse) to assist in HTTP method interceptors.


0.1.17 (2016-12-07)

  • Update to Angular 2.2.0.

0.1.16 (2016-11-20)

  • Swap "lib": [ "es2015", "dom" ] in tsconfig.json for @types/core-jsinpackage.json` issue #288

0.1.15 (2016-11-14)

  • Update to Angular 2.2.0.

0.1.14 (2016-10-29)

0.1.13 (2016-10-20)

  • Update README for 0.1.11 breaking change: npm publish as esm and a umd bundle

    Going to umd changes your systemjs.config and the way you import the library.

    In systemjs.config.js you should change the mapping to:

    'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js'
    

    then delete from packages:

    'angular-in-memory-web-api': {		
      main: './index.js',		
      defaultExtension: 'js'		
    }
    

    You must ES import the in-mem module (typically in AppModule) like this:

    import { InMemoryWebApiModule } from 'angular-in-memory-web-api';
    

0.1.12 (2016-10-19)

  • exclude travis.yml and rollup.config.js from npm package

0.1.11 (2016-10-19)

  • BREAKING CHANGE: npm publish as esm and a umd bundle. Does not change the API but does change the way you register and import the in-mem module. Documented in later release, v.0.1.13

0.1.10 (2016-10-19)

  • Catch a handleRequest error and return as a failed server response.

0.1.9 (2016-10-18)

  • Restore delay option, issue #53.

0.1.7 (2016-10-12)

  • Angular 2.1.x support.

0.1.6 (2016-10-09)

  • Do not add delay to observable if delay value === 0 (issue #47)
  • Can override parseUrl method in your db service class (issue #46, #35)
  • README.md explains parseUrl override.
  • Exports functions helpful for custom HTTP Method Interceptors
    • createErrorResponse
    • createObservableResponse
    • setStatusText
  • Added examples/hero-data.service.ts to show overrides (issue #44)

0.1.5 (2016-10-03)

  • project.json license changed again to match angular.io package.json

0.1.4 (2016-10-03)

  • project.json license is "MIT"

0.1.3 (2016-09-29)

  • Fix typos

0.1.2 (2016-09-29)

  • AoT support from Tor PR #36
  • Update npm packages
  • parseId fix from PR #33

0.1.1 (2016-09-26)

  • Exclude src folder and its TS files from npm package

0.1.0 (2016-09-25)

  • Renamed package to "angular-in-memory-web-api"
  • Added "passThruUnknownUrl" options
  • Simplified forRoot and made it acceptable to AoT
  • Support case sensitive search (PR #16)

"angular2-in-memory-web-api" versions

The last npm package named "angular2-in-memory-web-api" was v.0.0.21

0.0.21 (2016-09-25)

  • Add source maps (PR #14)

0.0.20 (2016-09-15)

  • Angular 2.0.0
  • Typescript 2.0.2

0.0.19 (2016-09-13)

  • RC7

0.0.18 (2016-08-31)

  • RC6 (doesn't work with older versions)

0.0.17 (2016-08-19)

  • fix forRoot type constraint
  • clarify forRoot param

0.0.16 (2016-08-19)

  • No longer exports HttpModule
  • Can specify configuration options in 2nd param of forRoot
  • jsDocs for forRoot

0.0.15 (2016-08-09)

  • RC5
  • Support for NgModules

0.0.14 (2016-06-30)

  • RC4

0.0.13 (2016-06-21)

  • RC3

0.0.12 (2016-06-15)

  • RC2

0.0.11 (2016-05-27)

  • add RegExp query support
  • find-by-id is sensitive to string ids that look like numbers

0.0.10 (2016-05-21)

  • added "main:index.js" to package.json
  • updated to typings v.1.0.4 (a breaking release)
  • dependencies -> peerDependencies|devDependencies
  • no es6-shim dependency.
  • use core-js as devDependency.

0.0.9 (2016-05-19)

  • renamed the barrel core.js -> index.js

0.0.8 (2016-05-19)

  • systemjs -> commonjs
  • replace es6-shim typings w/ core-js typings

0.0.7 (2016-05-03)

  • RC1
  • update to 2.0.0-rc.1

0.0.6 (2016-05-03)

  • RC0
  • update to 2.0.0-rc.0

0.0.5 (2016-05-01)

  • PROVISIONAL - refers to @angular packages
  • update to 0.0.0-5

0.0.4 (2016-04-30)

  • PROVISIONAL - refers to @angular packages
  • update to 0.0.0-3
  • rxjs: "5.0.0-beta.6"

0.0.3 (2016-04-29)

  • PROVISIONAL - refers to @angular packages
  • update to 0.0.0-2

0.0.2 (2016-04-27)

  • PROVISIONAL - refers to @angular packages

0.0.1 (2016-04-27)

  • DO NOT USE. Not adapted to new package system.
  • Initial cut for Angular 2 repackaged
    • target forthcoming Angular 2 RC