Upgrade 0.40 to 0.41

Change startupjs and all @startupjs/* dependencies in your package.json to ^0.41.

TypeScript support was improved in this release. This required updating eslint config to use a new module, as well as switching to an explicit usage of pug function in TS files.

DEPRECATED

  1. You should not use pug function without importing it anymore. Import it from startupjs module:

    import React from 'react'
    import { pug, observer } from 'startupjs'
    import { Span } from '@startupjs/ui'
    
    export default observer(() => pug`
      Span Hello World
    `)

BREAKING CHANGES

  1. Update linter configuration to use new babel parser module:

    1. Replace babel-eslint dependency with a new one. Run:

      yarn remove babel-eslint && yarn add -D @babel/eslint-parser
    2. Replace "parser" in your .eslintrc.json:

      // replace line:
      "parser": "babel-eslint",
      // with the following:
      "parser": "@babel/eslint-parser",
  2. For proper TypeScript support copy the following tsconfig.json file to the root of your project:

    startupjs/packages/startupjs/templates/simple/tsconfig.json