GithubHelp home page GithubHelp logo

lifeart / ember-ast-hot-load Goto Github PK

View Code? Open in Web Editor NEW
91.0 4.0 17.0 3.36 MB

Universal hot-load addon for Ember applications. Support classic/pods/mu layouts and route templates reloading.

License: MIT License

JavaScript 95.51% HTML 1.42% Handlebars 3.07%
hot-reload hot-module-replacement addon ember-cli ember emberjs ember-addon hot-reloading

ember-ast-hot-load's Introduction

ember-ast-hot-load npm version Build Status Greenkeeper badge Maintainability

Any ember components hot-reloading

Main Idea of this addon - ability to reload changed components without application reloading.

This addon is continuation of the project ember-cli-hot-loader and includes part of it's codebase.

  • ember-cli >= 2.15.1
  • ember-source >= 2.16

Many thanks to Toran Billups / @toranb for this huge work, support and inspiration!

  • ember-cli-hot-loader implemented using middleware for ember-resolver and wrapping components.
  • ember-ast-hot-load implemented using compile-time templates ast transformations.
Point ember-ast-hot-load ember-cli-hot-loader
Tagless components + +/-
Glimmer components + -
Classic route templates + -
MU route templates + -
reducers reloading - +
performance impact low middle
typescript support + +
Nested components + +/-
code limitations - +
Ember 2.x ? +
Ember 3.4+ + -
Fastboot + -
Sparkles components + -
Hooked components + -
Custom components + -
Component wrappers - +
AST integration + -
Resolver 5 support + -
MU support + -
Addons hot-reload + -

Installation

ember install ember-ast-hot-load
  • Ember.js v3.20 or above
  • Ember CLI v3.20 or above
  • Node.js v10 or above

How to use this addon

It should just work without any config.

After the installing, simply run ember serve as you normally would. Any changes to component JS/HBS files will result in a hot reload (not a full page reload). If you alter a route, service, or controller ember-cli will do a full page reload.

Hot-reloading Ember helpers is not supported.

Because helpers look like components (in the AST) they will be unnecessarily wrapped, e.g. helper -> dynamic component -> helper

To prevent this from happening, you can exclude helpers from the hot-loader pipeline by specifying a list of helper names in the add-on config.

// ember-cli-build.js
new EmberApp(defaults, {
  'ember-ast-hot-load': {
    helpers: ["foo-bar", "liquid-if", ... ],
    enabled: true
  }
});

If you don't specify helpers in the config the addon will continue to work, but with it will also wrap all your helpers (you can see this in the ember-inspector components tab, e.g. helper "you-app-helper-name").

To get a list of all the helpers in your app that hot-reload might think are components, run this script in a debug console in your browner. You can then use this list to configure the add-on.

var componentLikeHelpers = Object.keys(require.entries)
    .filter(name=>(name.includes('/helpers/')|| name.includes('/helper')))
    .filter(name=>!name.includes('/-')).map(name=>{
        let path = name.split('/helpers/');
        return path.pop();
    }).filter(name=>!name.includes('/')).uniq();

console.log(JSON.stringify(componentLikeHelpers))

You should also exclude ember-ast-hot-load from production builds (to avoid unnecessary calculations)

// ember-cli-build.js
const environment = EmberApp.env();
// ...
const addonsToIgnoreInProdBuilds = [
  environment === 'production' ? 'ember-ast-hot-load' : null
].filter(name => name !== null);

new EmberApp(defaults, {
  addons: {
    blacklist: addonsToIgnoreInProdBuilds
  }
});

Public API?

service('hot-loader')
.registerWillHotReload(onHotReload)
.unregisterWillHotReload(onHotReload)
.registerWillLiveReload(onLiveReload)
.unregisterWillLiveReload(onLiveReload)
 // we need to prevent full app refresh if we can hande changed file.
function onLiveReload(event) {
   if (event.modulePath.includes('redusers')) {
     event.cancel = true;
     requirejs.unsee('some-module');
   }
}


function onHotReload(path) {
   if (path.includes('redusers')) {
     // do some hot-reload magic,
     // for example
     requirejs.resolve('some-module')
   }
}

Known Compatibility Workarounds

Serving your Ember app from a different backend (e.g. Rails)

In most development environments, Ember applications are served directly from Ember's development server, e.g. http://localhost:4200. If you are using a different way of service your Ember app, you may need to override the URL that we use to reload your changes.

  // config/enironment.js

  if (environment === 'development') {
    ENV['ember-ast-hot-load'] = {
      baseUrl: 'http://app.mydomain.test:4200'
    }
  }

Cannot find module

Cannot find module ember-source\dist\ember-template-compiler.js in yarn workspaces.

root.package.json workspaces.nohoist: ["**/ember-ast-hot-load"]

Contributing

Installation

  • git clone <repository-url>
  • cd ember-ast-hot-load
  • yarn install

Linting

  • yarn lint:hbs
  • yarn lint:js
  • yarn lint:js --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • ember try:each – Runs the test suite against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

License

This project is licensed under the MIT License.

ember-ast-hot-load's People

Contributors

alexabreu avatar alonski avatar artemgurzhii avatar bundyo avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar eflanagan0 avatar emattias avatar ember-tomster avatar greenkeeper[bot] avatar hakilebara avatar lifeart avatar mfeckie avatar misterbyrne avatar nwhittaker avatar patocallaghan avatar spruce avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ember-ast-hot-load's Issues

Ability to reload not-used components in background

Now if component not rendered, we enforce application reloading, sometimes this is not comfortable.
I think we need an configuration flag, disabled by default, allowing silent components reloading.

How?

  • if noone stopped reloading event and component with given filename exists, we silently hot-reloading it (forget, reload), without attempt to rerender it.

Does not work with Embroider

I know Embroider is still in an experimental phase but just thought I'd open this issue to log it anyway. I tried install ember-ast-hot-load in the embroider-spike app but it throws an error.

Reproduction branch

When loading http://localhost:4200/players you get the following error:

Assertion Failed: Could not find component named "hot-content" (no component or template with that name was found)

image

@lifeart just wondering do you have any pointers? Is this addon fundamentally at odds with how Embroider will work or do you have any ideas for compatibility?

An in-range update of ember-cli-htmlbars is breaking the build 🚨

The dependency ember-cli-htmlbars was updated from 3.1.0 to 4.0.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

ember-cli-htmlbars is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details

Release Notes for Release 4.0.0

💥 Breaking Change

🚀 Enhancement

🏠 Internal

Committers: 2

Commits

The new version differs by 106 commits.

  • c8d563f Release 4.0.0
  • d580786 Reset version number to last published version.
  • 2ddebce Add automated release setup.
  • c5a37d2 Bump ember-source from 3.12.0 to 3.13.0 (#295)
  • 6acc791 Initial implementation of co-located templates RFC. (#249)
  • 35b66bf Merge remote-tracking branch 'origin/master' into colocation
  • 573cc6a Bump ember-source from 3.12.0 to 3.13.0
  • d00bc8c Bump @ember/optional-features from 0.7.0 to 1.0.0
  • fad407c Bump eslint-plugin-ember from 7.0.0 to 7.1.0
  • d5d56df Bump eslint-plugin-prettier from 3.1.0 to 3.1.1
  • 5841e9c Bump eslint from 6.3.0 to 6.4.0
  • 253503f Only opt-in to colocation when using octane edition.
  • 791bde4 Fix setComponentTemplate argument ordering for native classes.
  • 1ef7d42 Merge pull request #280 from rwjblue/colocation-refactor
  • 046a761 Bump eslint-plugin-mocha from 6.1.0 to 6.1.1

There are 106 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

404 error when run ember s with --proxy

Hi, i see this error when i trying update a component in ember running with the --proxy parameter:

electronica 2018-11-17 15-45-27

I think it can be related to "rootURL" parameter, if i run the same ember app without the proxy parameter works fine.

To reproduce this error, i think you can run any ember app with something like:

ember s --proxy http://www.google.com

btw, this addon is awesome, thanks for create it !!!

Page reload instead of Hot Reload (MU + sparkles)

Hey,

I gave this addon a try. I've tried it with cutting edge technology, like MU and sparkles, ember-css-modules, decorators (the cool octane stuff!). It may be, because of this but this addon is not hot reloading but the page itself reloads. I can see the console output about the correct resource that should be reloaded though the whole page is refreshed instead.

Here is the repo I'm currently tested it with: https://github.com/gossi/shiny-components

PS. I first thought, that private components (those for each route) aren't hot reloaded because they live in the respective route folder but also the one in components/ wasn't hot reloading. Let me know if I can assist any further here.

Template Compiler error in Ember 3.25

After upgrading a project to Ember 3.25, the following error appears when running ember serve:

Template Compiler Error (TemplateCompiler) in dummy/templates/application.hbs

Cannot read property 'start' of null

The error is gone after disabling ember-ast-hot-load. I upgraded this project to Ember 3.25 and got the same error running ember serve with the following log:

Stack Trace and Error Report
=================================================================================

ENV Summary:

  TIME: Tue Mar 30 2021 16:20:45 GMT-0400 (Eastern Daylight Time)
  TITLE: ember
  ARGV:
  - /Users/nate/.nvm/versions/node/v14.15.4/bin/node
  - /Users/nate/.nvm/versions/node/v14.15.4/bin/ember
  - test
  EXEC_PATH: /Users/nate/.nvm/versions/node/v14.15.4/bin/node
  TMPDIR: /var/folders/9l/vmkxx6gs34b7tzz97z4msclm0000gn/T
  SHELL: /bin/zsh
  PATH:
  - /Users/nate/.nvm/versions/node/v14.15.4/bin
  - /Users/nate/Library/Android/SDK/platform-tools
  - /usr/local/bin
  - /usr/bin
  - /bin
  - /usr/sbin
  - /sbin
  - /usr/local/MacGPG2/bin
  - /Library/Apple/usr/bin
  PLATFORM: darwin x64
  FREEMEM: 37510127616
  TOTALMEM: 77309411328
  UPTIME: 22179
  LOADAVG: 3.8935546875,2.28955078125,3.060546875
  CPUS:
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  ENDIANNESS: LE
  VERSIONS:
  - ares: 1.16.1
  - brotli: 1.0.9
  - cldr: 37.0
  - icu: 67.1
  - llhttp: 2.1.3
  - modules: 83
  - napi: 7
  - nghttp2: 1.41.0
  - node: 14.15.4
  - openssl: 1.1.1i
  - tz: 2020a
  - unicode: 13.0
  - uv: 1.40.0
  - v8: 8.4.371.19-node.17
  - zlib: 1.2.11

ERROR Summary:

  - broccoliBuilderErrorStack: TypeError: Cannot read property 'start' of null
    at Source.spanFor (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:9071:26)
    at BlockContext.loc (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14161:26)
    at StatementNormalizer.BlockStatement (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14484:31)
    at StatementNormalizer.normalize (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14402:23)
    at /Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14572:27
    at Array.map (<anonymous>)
    at ElementNormalizer.ElementNode (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14571:41)
    at StatementNormalizer.normalize (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14405:52)
    at /Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14572:27
    at Array.map (<anonymous>)
  - code: [undefined]
  - codeFrame: Cannot read property 'start' of null
  - errorMessage: dummy/templates/application.hbs: Cannot read property 'start' of null
        in /var/folders/9l/vmkxx6gs34b7tzz97z4msclm0000gn/T/broccoli-34381bt02hXuf24T7/out-134-colocated_template_processor
        at TemplateCompiler
  - errorType: Template Compiler Error
  - location:
    - column: [undefined]
    - file: dummy/templates/application.hbs
    - line: [undefined]
    - treeDir: /var/folders/9l/vmkxx6gs34b7tzz97z4msclm0000gn/T/broccoli-34381bt02hXuf24T7/out-134-colocated_template_processor
  - message: dummy/templates/application.hbs: Cannot read property 'start' of null
        in /var/folders/9l/vmkxx6gs34b7tzz97z4msclm0000gn/T/broccoli-34381bt02hXuf24T7/out-134-colocated_template_processor
        at TemplateCompiler
  - name: Error
  - nodeAnnotation: [undefined]
  - nodeName: TemplateCompiler
  - originalErrorMessage: Cannot read property 'start' of null
  - stack: TypeError: Cannot read property 'start' of null
    at Source.spanFor (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:9071:26)
    at BlockContext.loc (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14161:26)
    at StatementNormalizer.BlockStatement (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14484:31)
    at StatementNormalizer.normalize (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14402:23)
    at /Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14572:27
    at Array.map (<anonymous>)
    at ElementNormalizer.ElementNode (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14571:41)
    at StatementNormalizer.normalize (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14405:52)
    at /Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14572:27
    at Array.map (<anonymous>)

=================================================================================

See emberjs/ember.js#19482 along with this possibly helpful comment:

So it's hard to tell for sure, but the biggest reason we've seen issues like this is actually because of custom Handlebars template transforms which were not using the builder API. These transforms would leave out crucial node information, like loc info, which resulted in malformed nodes. The Handlebars AST and transforms are not something that we consider public API, so this failure would be expected if that was the case.

Are there any addons you're using that could be doing template preprocessing? If you're unsure, I can try to help figure out a way to give you list of all transforms that are running in the template compiler and we can start there.

Components with named blocks are empty

Named blocks are new to 3.25. When ember-ast-hot-load is enabled, components with named blocks aren't rendering them.

The below should render "content", but currently does not:

// components/named-blocks.hbs
{{yield to="body"}}

// templates/application.hbs
<NamedBlocks>
  <:body>content</:body>
</NamedBlocks>

Also added a usage scenario at nwhittaker@70c2811.

Yarn Workspace Support

Hi there -

Encountered this issue attempting to convert my project into a yarn workspace. Wanted to document this here for future reference.

UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, lstat '/var/folders/24/5940d3p56rdbyw7yngx2jnp00000gp/T/broccoli-98842Vf8NWDES0BdB/out-784-broccoli_merge_trees_tree_merger_custom_transform_amd/../node_modules/ember-source/dist/ember-template-compiler.js'

An in-range update of ember-cli-htmlbars is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye 👋 and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


The dependency ember-cli-htmlbars was updated from 4.2.3 to 4.3.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

ember-cli-htmlbars is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details

Release Notes for Release 4.3.0

📝 Documentation

Committers: 1

Commits

The new version differs by 8 commits.

  • 7026bb0 Release 4.3.0
  • ff934eb Bump mocha from 6.2.2 to 7.1.1
  • 4ed1f71 Bump ember-resolver from 6.0.1 to 7.0.0
  • 32eb16e Bump eslint-plugin-node from 10.0.0 to 11.1.0
  • 517502e Add type definition for test helper import (#481)
  • be3c14d [Security] Bump acorn from 7.1.0 to 7.1.1
  • 4068824 Bump @babel/core from 7.8.4 to 7.8.7
  • b95fbc2 Bump eslint-plugin-ember from 7.8.0 to 7.10.1

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of eslint-plugin-ember is breaking the build 🚨

The devDependency eslint-plugin-ember was updated from 6.2.0 to 6.3.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-ember is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Release Notes for v6.3.0

🚀 Enhancement

  • #369 Add new 'route-path-style' rule (@bmish)
  • #372 Add new 'no-unnecessary-index-route' rule (@bmish)
  • #262 Add new 'require-return-from-computed' rule (@gmurphey)
  • #378 Add new no-unnecessary-service-injection-argument rule (@bmish)

📝 Documentation

  • #395 docs: improve closure-action rule examples (@Caltor)
  • #383 no-deeply-nested-dependent-keys-with-each: Fix documentation examples (@Alonski)

🏠 Internal

  • #386 test: add null output assertions for lint rules / test cases with no autofixer. (@bmish)

Committers: 4

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Cannot read property 'enabled' of undefined

When trying to consume this addon when I boot our app I get

Cannot read property 'enabled' of undefined

The only way I can find to solve it is to edit index.js of ember-ast-hot-loader in node_modules and add

_OPTIONS: {}

An in-range update of ember-cli-fastboot is breaking the build 🚨

The devDependency ember-cli-fastboot was updated from 2.1.3 to 2.2.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

ember-cli-fastboot is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Hot reload not working for new ember project.

My team had happily been using ember-ast-hot-load since version 0.1.4. However, a change has recently been introduced which seems to break the hot reloading functionality. We assumed this breakage was related to our own project configuration/dependencies, but I was just able to reproduce the same problem by installing ember-ast-hot-load on a brand new ember project. Tried these steps with ember-cli 3.08, 3.21, and 3.22:

ember new test-app
cd test-app
ember install ember-ast-hot-load
npm start

Then, made an arbitrary change to application.hbs and saw the following console output:

file changed templates/application.hbs

Build successful (324ms) – Serving on http://localhost:4200/

Slowest Nodes (totalTime >= 5%)          | Total (avg)
-----------------------------------------+-----------
BroccoliMergeTrees (17)                  | 74ms (4 ms)
Package /assets/vendor.js (1)            | 32ms
Concat: Vendor Styles/assets/vend... (1) | 29ms
Packaged Application Javascript (1)      | 28ms
Babel: demo (2)                          | 20ms (10 ms)

Skipping livereload for: app/templates/application.hbs
/Users/ale10280/code/demo/app/templates/application.hbs
Reloading /Users/ale10280/code/demo/app/templates/application.hbs only
GET http://localhost:4200/changed?files=/Users/ale10280/code/demo/app/templates/application.hbs

Despite the logging about reloading application.hbs no template changes are injected and there is no visual change in the rendered output. You have to hard refresh (since live reload is skipped) in order to see the change you make to application.hbs.

An in-range update of babel-plugin-ember-modules-api-polyfill is breaking the build 🚨


🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚

Find out how to migrate to Snyk at greenkeeper.io


The dependency babel-plugin-ember-modules-api-polyfill was updated from 2.12.0 to 2.13.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

babel-plugin-ember-modules-api-polyfill is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details

Release Notes for Release 2.13.0

🚀 Enhancement

  • #101 Add support for import { createCache, getValue, isConst } from '@glimmer/tracking/primitives/cache' (@rwjblue)

Committers: 1

Commits

The new version differs by 33 commits.

  • 47c26bc Release 2.13.0
  • bd70aa1 Update release automation setup.
  • 969ee7e Bump ember-rfc176-data from 0.3.12 to 0.3.13
  • fae1ff5 Bump release-it from 13.5.7 to 13.5.8
  • 285b3eb Bump qunit from 2.9.3 to 2.10.0
  • 5e9b1b9 Bump release-it from 13.5.5 to 13.5.7
  • bf83065 Bump release-it-lerna-changelog from 2.2.0 to 2.3.0
  • be1178c Bump release-it from 13.5.4 to 13.5.5
  • 4ac696d Bump release-it-lerna-changelog from 2.1.2 to 2.2.0
  • 6774b30 Bump release-it from 13.5.2 to 13.5.4
  • 34a1b4c Bump release-it from 13.5.1 to 13.5.2
  • c64d54b Bump release-it from 13.5.0 to 13.5.1
  • c840e11 Bump release-it-lerna-changelog from 2.1.1 to 2.1.2
  • a77b1c8 Bump release-it from 13.3.2 to 13.5.0
  • 2c04ffe Bump release-it from 13.3.0 to 13.3.2

There are 33 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of eslint-plugin-node is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye 👋 and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


The devDependency eslint-plugin-node was updated from 11.0.0 to 11.1.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-node is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Commits

The new version differs by 6 commits.

  • 4a348e7 🔖 11.1.0
  • 7dc8f80 📝 fix rule names in documentation
  • e2da592 ⚒ improve no-path-concat
  • ade0b59 ✨ add no-restricted-import
  • 578110e ⚒ simplify the options of no-restricted-require
  • 8788a11 Update: add ESLint core Node.js and CommonJS rules (#206)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of ember-cli-babel is breaking the build 🚨

The dependency ember-cli-babel was updated from 7.10.0 to 7.11.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

ember-cli-babel is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details

Release Notes for Release 7.11.0

🚀 Enhancement

  • #300 Add support for dependentKeyCompat from @ember/object/compat. (@rwjblue)

Committers: 1

Commits

The new version differs by 3 commits.

  • 0ebdb3d Release 7.11.0
  • c21cc9e Add support for dependentKeyCompat from @ember/object/compat. (#300)
  • f394b45 Add support for dependentKeyCompat from @ember/object/compat.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of ember-cli-fastboot is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye 👋 and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


The devDependency ember-cli-fastboot was updated from 2.2.1 to 2.2.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

ember-cli-fastboot is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Release Notes for Release 2.2.2
  • Merge pull request #757 from ember-fastboot/revert-755-greenkeeper/release-it-13.0.0 (94c2a6c)
  • Revert "Update release-it to the latest version 🚀" (1340196)
  • Merge pull request #752 from zonkyio/fastboot-config (2458159)
  • Add FastBoot configuration section into README (40b6634)
  • Update based on review (1f6c8c2)
  • Merge pull request #755 from ember-fastboot/greenkeeper/release-it-13.0.0 (715c5b1)
  • Merge pull request #720 from ember-fastboot/greenkeeper/eslint-plugin-ember-7.0.0 (8e10913)
  • chore(package): update lockfile yarn.lock (5fa71f5)
  • chore(package): update release-it to version 13.0.0 (c48a612)
  • Add support for custom configuration (12e121c)
  • Re-roll yarn.lock. (#738) (6a5d6c6)
  • Re-roll yarn.lock. (60b5eaa)
  • Merge pull request #737 from dnalagatla/dnalagatla/fix-custom-app-build (808479b)
  • Fix custom app build issue #730 (9ad8446)
  • fix typo in property name isFastboot -> isFastBoot (#728) (dea2f93)
  • fix typo in property name isFastboot -> isFastBoot (afadb85)
  • chore(package): update eslint-plugin-ember to version 7.0.0 (66f56c1)
Commits

The new version differs by 20 commits.

  • 765672d Release 2.2.2
  • ca9b2ea Merge pull request #760 from ember-fastboot/yarn-sync
  • 0d7ce72 Re-roll yarn.lock
  • 94c2a6c Merge pull request #757 from ember-fastboot/revert-755-greenkeeper/release-it-13.0.0
  • 1340196 Revert "Update release-it to the latest version 🚀"
  • 2458159 Merge pull request #752 from zonkyio/fastboot-config
  • 40b6634 Add FastBoot configuration section into README
  • 1f6c8c2 Update based on review
  • 715c5b1 Merge pull request #755 from ember-fastboot/greenkeeper/release-it-13.0.0
  • 8e10913 Merge pull request #720 from ember-fastboot/greenkeeper/eslint-plugin-ember-7.0.0
  • 5fa71f5 chore(package): update lockfile yarn.lock
  • c48a612 chore(package): update release-it to version 13.0.0
  • 12e121c Add support for custom configuration
  • 6a5d6c6 Re-roll yarn.lock. (#738)
  • 60b5eaa Re-roll yarn.lock.

There are 20 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Trigger `did-update` lifecycle modifier on reload

Is it possible to trigger the did-update lifecycle modifier on reload?

Consider a case where @user takes a few seconds to populate:

<div {{did-update this.createThumbnail @user}}>
    <img src={{this.thumbnailSrc}} />
</div>

On the first render, the thumbnail is created when @user is populated. However, if I edit only this template, and hot-load re-renders the template, I'm left seeing a broken image because this.createThumbnail does not run for the updated template.

Could not find module `@ember/template-compilation`

Thank you very much for this addon. I am very much looking forward to use it.

Unfortunately I get following error:

Uncaught Error: Could not find module `@ember/template-compilation` imported from `ember-ast-hot-load/helpers/hot-load`

I got his message with Ember v 3.3.1, so I tried to upgrade to 3.5.1 but the same result. :(

ember --version

ember-cli: 3.3.0
node: 8.11.3
os: linux x64

ls node_modules/@ember

ordered-set
test-helpers

Can you give me a hint how to deal with it?

An in-range update of ember-cli-babel is breaking the build 🚨

The dependency ember-cli-babel was updated from 7.7.0 to 7.7.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

ember-cli-babel is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Proper exclude from production build

  • disallow ast transformations even if addon blacklisted
  • rebel "enabled" option functionality
  • auto exclude addon on any test and production env

Helper app-version config has no effect

I use the ember-cli-app-version plugin which resides in "node_modules/ember-cli-app-version/app/helpers/app-version.js".

The console mentions to add "app-version" into "ember-cli-build.js" in application config section.

When I copy and paste the config code

let app = new EmberApp(defaults, {
  'ember-ast-hot-load': {
    helpers: ["app-version"],
    enabled: true
  }
});

into my ember-cli-build.js and restart the server, the message still appears and my app is still broken.

I also have problems understanding the first two code examples in the How to use this addon section.

Is there a special issue with helpers provided by foreign plugins?

HTML block content causing Template Compiler Error in Ember 3.25

Follow-on issue to #562. Have templates with a structure like <ComponentName><div>...</div></ComponentName> and seeing the following error when running ember serve:

Template Compiler Error (TemplateCompiler) in dummy/templates/application.hbs

loc$$1.sliceStartChars is not a function

The error is gone after disabling ember-ast-hot-load. I added a failing test case to a fork of this project (see nwhittaker@a3917e0) and got the same error running ember serve with the following log:

Stack Trace and Error Report
=================================================================================

ENV Summary:

  TIME: Sun Apr 04 2021 21:58:02 GMT-0400 (Eastern Daylight Time)
  TITLE: ember
  ARGV:
  - /Users/nate/.nvm/versions/node/v14.15.4/bin/node
  - /Users/nate/.nvm/versions/node/v14.15.4/bin/ember
  - s
  EXEC_PATH: /Users/nate/.nvm/versions/node/v14.15.4/bin/node
  TMPDIR: /var/folders/9l/vmkxx6gs34b7tzz97z4msclm0000gn/T
  SHELL: /bin/zsh
  PATH:
  - /Users/nate/.nvm/versions/node/v14.15.4/bin
  - /Users/nate/Library/Android/SDK/platform-tools
  - /usr/local/bin
  - /usr/bin
  - /bin
  - /usr/sbin
  - /sbin
  - /usr/local/MacGPG2/bin
  - /Library/Apple/usr/bin
  PLATFORM: darwin x64
  FREEMEM: 4089454592
  TOTALMEM: 77309411328
  UPTIME: 474431
  LOADAVG: 2.1552734375,2.0361328125,2.291015625
  CPUS:
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  ENDIANNESS: LE
  VERSIONS:
  - ares: 1.16.1
  - brotli: 1.0.9
  - cldr: 37.0
  - icu: 67.1
  - llhttp: 2.1.3
  - modules: 83
  - napi: 7
  - nghttp2: 1.41.0
  - node: 14.15.4
  - openssl: 1.1.1i
  - tz: 2020a
  - unicode: 13.0
  - uv: 1.40.0
  - v8: 8.4.371.19-node.17
  - zlib: 1.2.11

ERROR Summary:

  - broccoliBuilderErrorStack: TypeError: loc$$1.sliceStartChars is not a function
    at ElementNormalizer.classifyTag (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/@glimmer/syntax.js:6996:1)
    at ElementNormalizer.ElementNode (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/@glimmer/syntax.js:6806:1)
    at StatementNormalizer.normalize (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/@glimmer/syntax.js:6657:1)
    at /Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/@glimmer/syntax.js:6824:1
    at Array.map (<anonymous>)
    at ElementNormalizer.ElementNode (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/@glimmer/syntax.js:6823:1)
    at StatementNormalizer.normalize (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/@glimmer/syntax.js:6657:1)
    at /Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/@glimmer/syntax.js:6758:1
    at Array.map (<anonymous>)
    at StatementNormalizer.Block (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/@glimmer/syntax.js:6757:1)
  - code: [undefined]
  - codeFrame: loc$$1.sliceStartChars is not a function
  - errorMessage: dummy/templates/application.hbs: loc$$1.sliceStartChars is not a function
        in /var/folders/9l/vmkxx6gs34b7tzz97z4msclm0000gn/T/broccoli-5221891DjLC1j1jdp/out-141-colocated_template_processor
        at TemplateCompiler
  - errorType: Template Compiler Error
  - location:
    - column: [undefined]
    - file: dummy/templates/application.hbs
    - line: [undefined]
    - treeDir: /var/folders/9l/vmkxx6gs34b7tzz97z4msclm0000gn/T/broccoli-5221891DjLC1j1jdp/out-141-colocated_template_processor
  - message: dummy/templates/application.hbs: loc$$1.sliceStartChars is not a function
        in /var/folders/9l/vmkxx6gs34b7tzz97z4msclm0000gn/T/broccoli-5221891DjLC1j1jdp/out-141-colocated_template_processor
        at TemplateCompiler
  - name: Error
  - nodeAnnotation: [undefined]
  - nodeName: TemplateCompiler
  - originalErrorMessage: loc$$1.sliceStartChars is not a function
  - stack: TypeError: loc$$1.sliceStartChars is not a function
    at ElementNormalizer.classifyTag (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/@glimmer/syntax.js:6996:1)
    at ElementNormalizer.ElementNode (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/@glimmer/syntax.js:6806:1)
    at StatementNormalizer.normalize (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/@glimmer/syntax.js:6657:1)
    at /Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/@glimmer/syntax.js:6824:1
    at Array.map (<anonymous>)
    at ElementNormalizer.ElementNode (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/@glimmer/syntax.js:6823:1)
    at StatementNormalizer.normalize (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/@glimmer/syntax.js:6657:1)
    at /Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/@glimmer/syntax.js:6758:1
    at Array.map (<anonymous>)
    at StatementNormalizer.Block (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/@glimmer/syntax.js:6757:1)

=================================================================================

Possibly some relevant info in emberjs/ember.js#19432.

An in-range update of ember-load-initializers is breaking the build 🚨

The devDependency ember-load-initializers was updated from 2.0.0 to 2.1.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

ember-load-initializers is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Release Notes for Release 2.1.0

🚀 Enhancement

📝 Documentation

🏠 Internal

Committers: 4

Commits

The new version differs by 92 commits.

  • a28db5e Release 2.1.0
  • 60d700d Add release-it setup.
  • fae7eab Build(deps): Bump ember-cli-babel from 7.9.0 to 7.10.0
  • 8277efa Merge pull request #111 from ro0gr/types
  • 74ad062 Add typescript support
  • 01b3b93 Build(deps-dev): Bump eslint-plugin-ember from 6.9.1 to 6.10.0
  • 4b1da73 Build(deps-dev): Bump eslint-plugin-ember from 6.9.0 to 6.9.1
  • 72d274a Build(deps): Bump ember-cli-babel from 7.8.0 to 7.9.0
  • 84e0ab2 Build(deps-dev): Bump eslint-plugin-ember from 6.8.2 to 6.9.0
  • 4fece24 Build(deps-dev): Bump ember-qunit from 4.5.0 to 4.5.1
  • d42dc0d Build(deps-dev): Bump ember-resolver from 5.2.0 to 5.2.1
  • ae9616b Build(deps-dev): Bump eslint-plugin-ember from 6.7.1 to 6.8.2
  • fd20863 Build(deps-dev): Bump ember-resolver from 5.1.3 to 5.2.0
  • 3843070 Build(deps-dev): Bump ember-qunit from 4.4.1 to 4.5.0
  • d66c66e Build(deps): [Security] Bump lodash from 4.17.11 to 4.17.14

There are 92 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Modifier causes Template Compiler error in Ember 3.25

After upgrading a project with modifiers to Ember 3.25, the following error appears when running ember serve:

Template Compiler Error (TemplateCompiler) in dummy/templates/application.hbs

Cannot read property 'type' of undefined

The error is gone after disabling ember-ast-hot-load. I added a failing test case to a fork of this project (see comparison) and got the same error running ember serve with the following log:

Stack Trace and Error Report
=================================================================================

ENV Summary:

  TIME: Fri Apr 02 2021 12:32:20 GMT-0400 (Eastern Daylight Time)
  TITLE: ember
  ARGV:
  - /Users/nate/.nvm/versions/node/v14.15.4/bin/node
  - /Users/nate/.nvm/versions/node/v14.15.4/bin/ember
  - t
  EXEC_PATH: /Users/nate/.nvm/versions/node/v14.15.4/bin/node
  TMPDIR: /var/folders/9l/vmkxx6gs34b7tzz97z4msclm0000gn/T
  SHELL: /bin/zsh
  PATH:
  - /Users/nate/.nvm/versions/node/v14.15.4/bin
  - /Users/nate/Library/Android/SDK/platform-tools
  - /usr/local/bin
  - /usr/bin
  - /bin
  - /usr/sbin
  - /sbin
  - /usr/local/MacGPG2/bin
  - /Library/Apple/usr/bin
  PLATFORM: darwin x64
  FREEMEM: 7032606720
  TOTALMEM: 77309411328
  UPTIME: 267681
  LOADAVG: 4.80615234375,2.3642578125,2.68798828125
  CPUS:
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz - 3800
  ENDIANNESS: LE
  VERSIONS:
  - ares: 1.16.1
  - brotli: 1.0.9
  - cldr: 37.0
  - icu: 67.1
  - llhttp: 2.1.3
  - modules: 83
  - napi: 7
  - nghttp2: 1.41.0
  - node: 14.15.4
  - openssl: 1.1.1i
  - tz: 2020a
  - unicode: 13.0
  - uv: 1.40.0
  - v8: 8.4.371.19-node.17
  - zlib: 1.2.11

ERROR Summary:

  - broccoliBuilderErrorStack: TypeError: Cannot read property 'type' of undefined
    at BlockContext.isFreeVar (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14194:25)
    at BlockContext.isFreeVar (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14200:21)
    at BlockContext.resolutionFor (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14171:16)
    at ElementNormalizer.modifier (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14609:33)
    at /Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14566:24
    at Array.map (<anonymous>)
    at ElementNormalizer.ElementNode (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14565:41)
    at StatementNormalizer.normalize (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14405:52)
    at /Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14506:27
    at Array.map (<anonymous>)
  - code: [undefined]
  - codeFrame: Cannot read property 'type' of undefined
  - errorMessage: dummy/templates/application.hbs: Cannot read property 'type' of undefined
        in /var/folders/9l/vmkxx6gs34b7tzz97z4msclm0000gn/T/broccoli-90878UA15IWGWRJfK/out-141-colocated_template_processor
        at TemplateCompiler
  - errorType: Template Compiler Error
  - location:
    - column: [undefined]
    - file: dummy/templates/application.hbs
    - line: [undefined]
    - treeDir: /var/folders/9l/vmkxx6gs34b7tzz97z4msclm0000gn/T/broccoli-90878UA15IWGWRJfK/out-141-colocated_template_processor
  - message: dummy/templates/application.hbs: Cannot read property 'type' of undefined
        in /var/folders/9l/vmkxx6gs34b7tzz97z4msclm0000gn/T/broccoli-90878UA15IWGWRJfK/out-141-colocated_template_processor
        at TemplateCompiler
  - name: Error
  - nodeAnnotation: [undefined]
  - nodeName: TemplateCompiler
  - originalErrorMessage: Cannot read property 'type' of undefined
  - stack: TypeError: Cannot read property 'type' of undefined
    at BlockContext.isFreeVar (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14194:25)
    at BlockContext.isFreeVar (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14200:21)
    at BlockContext.resolutionFor (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14171:16)
    at ElementNormalizer.modifier (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14609:33)
    at /Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14566:24
    at Array.map (<anonymous>)
    at ElementNormalizer.ElementNode (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14565:41)
    at StatementNormalizer.normalize (/Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14405:52)
    at /Users/nate/Sites/ember-ast-hot-load/node_modules/ember-source/dist/ember-template-compiler.js:14506:27
    at Array.map (<anonymous>)

=================================================================================

Likely a similar issue to #558.

Unknown Transformation: 'fastboot-safe'

I'm tried installing this addon on an [email protected] app (no fastboot) and ran into the following error on ember s.

Error: while importing node_modules/ember-source/dist/ember-template-compiler.js: unknown transformation `fastboot-safe`
    at options.using.forEach.entry (/Users/jbryson3/code/arbiter/node_modules/ember-cli/lib/broccoli/ember-app.js:1563:19)
    at Array.forEach (<anonymous>)
    at EmberApp._import (/Users/jbryson3/code/arbiter/node_modules/ember-cli/lib/broccoli/ember-app.js:1558:23)
    at EmberApp.import (/Users/jbryson3/code/arbiter/node_modules/ember-cli/lib/broccoli/ember-app.js:1533:10)
    at Class.included (/Users/jbryson3/code/arbiter/node_modules/ember-ast-hot-load/index.js:198:17)
    at Class.superWrapper [as included] (/Users/jbryson3/code/arbiter/node_modules/ember-cli/node_modules/core-object/lib/assign-properties.js:34:20)
    at EmberApp.<anonymous> (/Users/jbryson3/code/arbiter/node_modules/ember-cli/lib/broccoli/ember-app.js:517:17)
    at Array.filter (<anonymous>)
    at EmberApp._notifyAddonIncluded (/Users/jbryson3/code/arbiter/node_modules/ember-cli/lib/broccoli/ember-app.js:512:47)
    at new EmberApp (/Users/jbryson3/code/arbiter/node_modules/ember-cli/lib/broccoli/ember-app.js:142:10)

Compile Error: hot-load is not a helper

Hello @lifeart I'm trying to use this addon in a project with PODS structure and I have this error when I run ember test

version: "ember-ast-hot-load": "^0.0.76"

Compile Error: hot-load is not a helper

image

PD: I tried exclude the addon from test build but it's still failing

An in-range update of eslint-plugin-ember is breaking the build 🚨

The devDependency eslint-plugin-ember was updated from 6.9.0 to 6.9.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-ember is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Release Notes for v6.9.1

🐛 Bug Fix

  • #472 Improve handling of nested keys inside braces for require-computed-property-dependencies rule (@bmish)
  • #471 Improve detection of missing dependencies in require-computed-property-dependencies rule (@bmish)

Committers: 1

Commits

The new version differs by 7 commits.

  • db22a42 v6.9.1
  • 007527f Update CHANGELOG
  • 2170ff2 Merge pull request #472 from bmish/require-computed-property-dependencies-nested-braces
  • 2502840 fix: improve handling of nested keys inside braces for require-computed-property-dependencies rule
  • 5844540 Merge pull request #471 from bmish/require-computed-property-dependencies-tweaks
  • 7912aff fix: improve detection of missing dependencies in require-computed-property-dependencies rule
  • 2b6ce75 build(deps): bump ember-rfc176-data from 0.3.9 to 0.3.10 (#469)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of ember-cli-babel is breaking the build 🚨

The dependency ember-cli-babel was updated from 7.13.0 to 7.13.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

ember-cli-babel is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details

Release Notes for Release 7.13.1

🐛 Bug Fix

  • #311 Include decorator and class field plugins after TypeScript, if present (@dfreeman)

📝 Documentation

Committers: 2

Commits

The new version differs by 5 commits.

  • a72f8b0 Release 7.13.1
  • 0d4dcc3 Include decorator and class field plugins after TypeScript, if p… (#311)
  • e08b59d Include decorator and class field plugins after TypeScript, if present
  • bc0dee4 README: Update an outdated link (#309)
  • 3f6e108 README: Update an outdated link

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Installing ember-ast-hot-load disables all reload functionality on brand new ember app

Hey! I really was excited to find this plugin, and I would prefer to use it with usePods:true, here is my issue:

Ember version: 3.21.2
Node Version: 12.14.0
OS: x64 Ubuntu 20.0.4

  1. ember new
  2. ember install ember-ast-hot-load
  3. ember s
  4. ember g component test-hotload
  5. open up localhost:4200, delete the welcome component from application.hbs, add the component
  6. go to test-hotload.hbs, add "Hello world"

Result: App does not reload as expected, but component does not update content at all without refreshing the page manually.

Is there any setup I'm missing? I've tried this on an existing application as well as a new one. I've added 'ember-ast-hotload' to the ember-cli-build config with enabled:true just to see if that would work and no dice. I would love to see this work as I think it would greatly improve development velocity. Thanks!

An in-range update of babel-plugin-ember-modules-api-polyfill is breaking the build 🚨

The dependency babel-plugin-ember-modules-api-polyfill was updated from 2.11.0 to 2.12.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

babel-plugin-ember-modules-api-polyfill is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details

Release Notes for Release 2.12.0

🚀 Enhancement

  • #66 Add support for import { dependentKeyCompat } from '@ember/object/compat' (@rwjblue)

Committers: 1

Commits

The new version differs by 4 commits.

  • 23276c0 Release 2.12.0
  • 7ca0188 Add support for `import { dependentKeyCompat } from '@ember/objec… (#66)
  • 7030858 Add support for import { dependentKeyCompat } from '@ember/object/compat'
  • 2defa25 Bump release-it from 12.3.5 to 12.3.6

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

context-related property rendering issue

So, what if thing we trying to render - just property {{this.foo}``, looks like now it's produce an issue. How to solve issue? - pass context to hot-load` helper and check inside it - is property exists on context

An in-range update of eslint-plugin-node is breaking the build 🚨

The devDependency eslint-plugin-node was updated from 9.1.0 to 9.2.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-node is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Commits

The new version differs by 9 commits.

  • 9fbdaec 🔖 9.2.0
  • c1d5dbf ✨ add no-callback-literal rule (#179)
  • 72de3a3 🐛 vulnerability fix: update eslint-utils to ^1.4.2 & eslint-plugin-es to ^1.4.1 (fixes #180) (#183)
  • cfc6352 🎨 fix typos in function names (#177)
  • b757c3e ⚒ improve azure-pipelines.yml (#173)
  • a85d541 ⚒ trivial fix
  • 88829af ⚒ Update azure-pipelines.yml for codecov (#170)
  • 5b3f815 🐛 fix for ESLint 6 (#169)
  • fe73872 ⚒ Switch to Azure Pipelines (#168)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Cleanup [remove MU support]

since is MU is no longer in ember, I think we good to go to remove any MU related code, to simplify codebase

`console.log` when hot reload happens?

Since we've rolled this out in our app, engineers have been really happy with it. The one bit of feedback we got was it would be helpful to have some confirmation that a hot reload happened in the browser because not everyone watches the terminal.

@lifeart any thoughts on that? Would you be open to having the addon emit a console.log in the browser (possibly a timestamp and the file changed) when a hot reload happens? It could be configurable? Off by default if you think it may be noisy?

I'd be happy to put it together if you're open to the idea?

Nested Angle Bracked Invocation Syntax Broken in 3.10.0-beta.5

Hey All - I can put together a reduced test case if necessary tomorrow (it's too sunny today), but I just upgraded to ember 3.10-beta series (i'm on beta-5, but not sure if it's specific to that version) and it looks like Nested AngleBracket components get rendered as the string version of their name, ie:

<h1>Posts</h1>
Blog::PostList

This is in a full and working app, so i'm not sure there are other addons that could be causing this problem, but I don't think so.

EDIT: This is just since moving to 3.10. In 3.9 with the polyfill, everything seemed to work great.

explore Ember.__loader.require and window.require usages

example:

const GlimmerComponent = (() => {
  try {
    return window.require('@glimmer/component').default;
  } catch (e) {
    // ignore, return undefined
  }
})();

let tagValue, tagValidate, track, tagForProperty;

try {
  // Try to load the most recent library
  let GlimmerValidator = Ember.__loader.require('@glimmer/validator');

  tagValue = GlimmerValidator.value || GlimmerValidator.valueForTag;
  tagValidate = GlimmerValidator.validate || GlimmerValidator.validateTag;
  track = GlimmerValidator.track;
} catch (e) {
  try {
    // Fallback to the previous implementation
    let GlimmerReference = Ember.__loader.require('@glimmer/reference');

    tagValue = GlimmerReference.value;
    tagValidate = GlimmerReference.validate;
  } catch (e) {
    // ignore
  }
}

ref https://github.com/emberjs/ember-inspector/blob/master/ember_debug/object-inspector.js#L40

An in-range update of eslint-plugin-ember is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye 👋 and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


The devDependency eslint-plugin-ember was updated from 7.9.0 to 7.10.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-ember is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Release Notes for v7.10.0

🚀 Enhancement

Committers: 1

Commits

The new version differs by 7 commits.

  • 7a0c8f8 v7.10.0
  • f589fe3 Update CHANGELOG
  • 1470b8f Merge pull request #694 from nlfurniss/no-private-routing-service
  • 66aae10 Merge pull request #691 from nlfurniss/no-mixins-rule
  • d56f2d9 Add new rule no-private-routing-service
  • e1dff32 build(deps-dev): bump eslint-plugin-jest from 23.8.0 to 23.8.2 (#693)
  • ccfa44d Add rule to disallow mixins

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of ember-resolver is breaking the build 🚨

The devDependency ember-resolver was updated from 5.2.1 to 5.3.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

ember-resolver is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Release Notes for Release 5.3.0

v5.3.0 (2019-09-24)

🚀 Enhancement

  • #417 Add support for nested colocated components. (@rwjblue)

Committers: 1

Commits

The new version differs by 8 commits.

  • 56e4304 Release 5.3.0
  • fd8701e Add support for nested colocated components. (#417)
  • 28ef51e Add resolution for engine.io.
  • a2be8db Upgrade to xenial
  • e63891d Add support for nested colocated components.
  • 98dc24f [Security] Bump mixin-deep from 1.3.1 to 1.3.2
  • 2b698fe Bump ember-load-initializers from 2.0.0 to 2.1.0
  • f7e4237 [Security] Bump eslint-utils from 1.3.1 to 1.4.2

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.