Skip to content

V0.17.0

Compare
Choose a tag to compare
@IhostVlad IhostVlad released this 21 Sep 16:06
· 2511 commits to master since this release

1. Features:

1.1. Prepare resolve to modules support, including following improvements:

  • Constructor/instance-based imports in config factory and import aliases
  • Run-time environment variable injection
  • Normalize compile-time/run-time file path resolving
{
  module: 'path',
  options: {},
  imports: { // optional
    [importName1]: 'importPath1',
    [importName2]: 'importPath2'
  }
}

1.2. Implement consistent adapter constructors and custom resources abstact consistent import for constructors and instances for bundling.

1.3. Improve AJV validator compliance

1.4. Convenient snapshot adapter instance interface and fix documentation

2. Bug Fixes:

2.1. Example "Hacker News" is not adapted for mobile devices

2.2. Infinite waiting of 'yarn run import' in Hacker-news

2.3. HN example has incorrect error messages in the login page

2.4. Fix testcafe-runner "status": 0|1

2.5. Improve the example "shopping-list" (unit + functional + api-handlers tests)

2.6. Pretty print the Webpack Errors

ERROR in /home/mrcheater/resolve/packages/core/resolve-scripts/lib/core/alias/$resolve.aliasName.js
Module build failed (from ~/resolve/node_modules/val-loader/dist/cjs.js):
Error: File "path/to/file.js" does not exist
    at Object.valLoader (~/resolve/node_modules/val-loader/dist/index.js:60:16)
ERROR in ./path/to/file.js
Module build failed (from ~/resolve/packages/core/resolve-scripts/node_modules/babel-loader/lib/index.js):
SyntaxError: path/to/file.js: Unexpected token (63:7)
   1 | 
> 2 | export default Component
      |        ^

2.7. Pretty print the Babel Compilation Logs

Successfully compiled 1 file with Babel.
↑ [resolve-api-handler-awslambda] { moduleType: "cjs", moduleType: "server" }
Successfully compiled 1 file with Babel.
↑ [resolve-api-handler-express] { moduleType: "es", moduleType: "server" }
Successfully compiled 1 file with Babel.
...