profile
viewpoint
Derek Wickern dwickern San Diego, CA

dwickern/ember-chrome-devtools 98

Chrome DevTools addon for Ember.js

dwickern/activemq-apollo 0

Mirror of Apache ActiveMQ Apollo

dwickern/activemq-artemis 0

Mirror of Apache ActiveMQ Artemis

dwickern/activemq-artemis-docker 0

Dockerfile for the ActiveMQ Artemis Project

dwickern/addressparser 0

Parse e-mail address fields with node.js

dwickern/akka 0

Akka Project

dwickern/akka-http 0

The Streaming-first HTTP server/module of Akka

dwickern/alpakka 0

Reactive Enterprise Integration — Alpakka

dwickern/async-http-client 0

Asynchronous Http and WebSocket Client library for Java

issue commentadopted-ember-addons/ember-data-model-fragments

Model fragments broken against Ember Data 3.28

Here's a quick workaround,

import FragmentTransform from 'ember-data-model-fragments/transforms/fragment';
import FragmentArrayTransform from 'ember-data-model-fragments/transforms/fragment-array';

FragmentTransform.reopen({
  serialize(snapshot) {
    return this._super(snapshot?._createSnapshot?.() ?? snapshot);
  },
});

FragmentArrayTransform.reopen({
  serialize(snapshots) {
    return this._super(snapshots?._createSnapshot?.() ?? snapshots);
  },
});
kevinkucharczyk

comment created time in 21 days

PR opened Turbo87/intellij-emberjs

add option to run ember-template-lint --fix on save

Screen Shot 2021-11-09 at 7 47 23 PM

Screen Shot 2021-11-09 at 7 47 41 PM

Also adds it as a regular action when right-clicking hbs files:

Screen Shot 2021-11-09 at 7 47 52 PM

+244 -48

0 comment

15 changed files

pr created time in 22 days

create barnchTurbo87/intellij-emberjs

branch : template-lint-fix

created branch time in 22 days

push eventdwickern/ember-data-factory-guy

Derek Wickern

commit sha 3fceb787c148cf1788b0543e37ccb3a0672c93de

use partial match on the request body

view details

push time in a month

push eventdwickern/ember-data-factory-guy

Derek Wickern

commit sha 326261dbbb104d0c58400f40876384eda2f37324

support match(json) for non-store requests

view details

push time in a month

PR opened adopted-ember-addons/ember-data-factory-guy

prioritize newer mock handlers

When there are multiple mocks for the same request, we should prioritize the newer one. For example, you might set up some mocks for all tests in beforeEach, and then override it for a specific test. Currently the first mock would be used.

Besides that, we should put a higher priority to mocks with a filter, regardless of their declaration order. Here's what I came up with:

  1. prioritize mocks using match() to match the request body
  2. prioritize mocks using withParams() to match exact query params
  3. prioritize mocks using withSomeParams() to match partial query params
  4. otherwise, prioritize by reverse declaration order
+37 -13

0 comment

7 changed files

pr created time in a month

create barnchdwickern/ember-data-factory-guy

branch : handler-order

created branch time in a month

PR opened adopted-ember-addons/ember-data-factory-guy

allow match() to be used for any mock request

Currently only mockCreate and mockUpdate support match(). This PR adds match() for the other kinds of mock requests. Request bodies can get complex so it's nice to have a callback where you can do assertions etc.

For the implementation I basically merged AttributeMatcher into MockRequest.

+119 -118

0 comment

5 changed files

pr created time in a month

create barnchdwickern/ember-data-factory-guy

branch : match

created branch time in a month

fork dwickern/ember-data-factory-guy

Factories and helper functions for (unit, integration, acceptance) testing + development scenarios with Ember Data

fork in a month

issue closedemberjs/ember-classic-decorator

Ember-data classes no longer recognized on Ember 3.27 or later

After upgrading to Ember 3.27, I get an error for each adapter and serializer, even though they extend from DS.Adapter and DS.Serializer, respectively:

Error while processing route: ... You defined the class <app@serializer:my-model::constructor> that extends from EmberObject using native class syntax, but you didn't mark it with the @classic decorator. All user classes that extend from this class must be marked as @classic, since they use classic features. If you want to remove the @classic decorator, you must remove the base class. For components, you can do this by converting to Glimmer components. For plain classes that extend from EmberObject, you can convert them into plain native classes that do not extend from EmberObject.

These modules no longer resolve: https://github.com/emberjs/ember-classic-decorator/blob/6d578829d8f193124c9379a03f315aa911def4f1/vendor/classic-decorator/index.js#L156-L157

closed time in a month

dwickern

issue commentemberjs/ember-classic-decorator

Ember-data classes no longer recognized on Ember 3.27 or later

It was a conflict with ember-cli-shims

dwickern

comment created time in a month

issue commentadopted-ember-addons/ember-data-model-fragments

FragmentArray.createFragment should respect `type` in polymorphic arrays

Here's a workaround,

import FragmentArray from 'ember-data-model-fragments/array/fragment';

FragmentArray.reopen({
  createFragment(props) {
    const type = props.type || this.type;
    const fragment = this.owner.store.createFragment(type, props);
    return this.pushObject(fragment);
  },
});
DocX

comment created time in a month

issue openedemberjs/ember-classic-decorator

Ember-data classes no longer recognized on Ember 3.27 or later

After upgrading to Ember 3.27, I get an error for each adapter and serializer, even though they extend from DS.Adapter and DS.Serializer, respectively:

Error while processing route: ... You defined the class <app@serializer:my-model::constructor> that extends from EmberObject using native class syntax, but you didn't mark it with the @classic decorator. All user classes that extend from this class must be marked as @classic, since they use classic features. If you want to remove the @classic decorator, you must remove the base class. For components, you can do this by converting to Glimmer components. For plain classes that extend from EmberObject, you can convert them into plain native classes that do not extend from EmberObject.

These modules no longer resolve: https://github.com/emberjs/ember-classic-decorator/blob/6d578829d8f193124c9379a03f315aa911def4f1/vendor/classic-decorator/index.js#L156-L157

created time in 2 months

pull request commentember-template-lint/ember-template-lint

no-unknown-arguments-for-builtin-components: allow `@indeterminate`

This appears to be changed in Ember 3.27.0

In 3.26.1 and earlier, @indeterminate should be passed as an argument:

{{! displays the indeterminate state }}
<Input @type="checkbox" @indeterminate={{true}}/>

{{! does NOT display the indeterminate state }}
<Input @type="checkbox" indeterminate={{true}}/>

In 3.27.0 and later, indeterminate is preferred but @indeterminate still works with a deprecation warning:

{{! displays the indeterminate state, logs a deprecation warning }}
<Input @type="checkbox" @indeterminate={{true}}/>

{{! displays the indeterminate state }}
<Input @type="checkbox" indeterminate={{true}}/>

Given the new deprecation warnings, I'd say this lint rule is no longer relevant since 3.27

dwickern

comment created time in 2 months

push eventdwickern/ember-template-lint

Derek Wickern

commit sha 17754a3312f3a6a9fe44d4b76a30a3c7b9728264

update docs emoji

view details

push time in 2 months

push eventdwickern/ember-template-lint

Bert De Block

commit sha 4efb3a2459b971d661ee5c902f32a5ae4326b4b9

Fix `undefined` error message for `no-link-to-positional-params` rule

view details

Melanie Sumner

commit sha 0bf9a88bf24e30ad2637c3a20793fb97e9ea68df

Fixed typo in README removes a duplicate line

view details

Steve Calvert

commit sha f5d20eea87613750e60eddf5a2f613c8178c7e11

Merge pull request #1900 from ember-template-lint/MelSumner-patch-1 Fixed typo in README

view details

dependabot[bot]

commit sha 4d96c8c76ce77dc70d166c4f8856fe2e70630828

Bump @babel/parser from 7.14.0 to 7.14.1 Bumps [@babel/parser](https://github.com/babel/babel/tree/HEAD/packages/babel-parser) from 7.14.0 to 7.14.1. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.14.1/packages/babel-parser) Signed-off-by: dependabot[bot] <support@github.com>

view details

dependabot[bot]

commit sha 76ea292d2b66a0497b7a7e81f9d3151071473bc3

Bump release-it from 14.6.1 to 14.6.2 Bumps [release-it](https://github.com/release-it/release-it) from 14.6.1 to 14.6.2. - [Release notes](https://github.com/release-it/release-it/releases) - [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md) - [Commits](https://github.com/release-it/release-it/compare/14.6.1...14.6.2) Signed-off-by: dependabot[bot] <support@github.com>

view details

dependabot[bot]

commit sha 0053ccb52ab0ab0faa6ab1b015b4d923cd24fd58

Bump date-fns from 2.21.1 to 2.21.3 Bumps [date-fns](https://github.com/date-fns/date-fns) from 2.21.1 to 2.21.3. - [Release notes](https://github.com/date-fns/date-fns/releases) - [Changelog](https://github.com/date-fns/date-fns/blob/master/CHANGELOG.md) - [Commits](https://github.com/date-fns/date-fns/commits) Signed-off-by: dependabot[bot] <support@github.com>

view details

dependabot[bot]

commit sha 48327911f2abe937c9f6620c27b814f57f346197

Bump sort-package-json from 1.49.0 to 1.50.0 Bumps [sort-package-json](https://github.com/keithamus/sort-package-json) from 1.49.0 to 1.50.0. - [Release notes](https://github.com/keithamus/sort-package-json/releases) - [Commits](https://github.com/keithamus/sort-package-json/compare/v1.49.0...v1.50.0) Signed-off-by: dependabot[bot] <support@github.com>

view details

dependabot[bot]

commit sha 98e814a9db8ffac2190afabcffb01d59effcdd30

Bump eslint from 7.25.0 to 7.26.0 Bumps [eslint](https://github.com/eslint/eslint) from 7.25.0 to 7.26.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.25.0...v7.26.0) Signed-off-by: dependabot[bot] <support@github.com>

view details

Bryan Mishkin

commit sha a6e6d249b6c039e824ac1ff459da63fc83f8c9ee

Merge pull request #1939 from ember-template-lint/dependabot/npm_and_yarn/release-it-14.6.2 Bump release-it from 14.6.1 to 14.6.2

view details

Bryan Mishkin

commit sha a116907e880a0011258598d98203d87b5f195687

Merge pull request #1942 from ember-template-lint/dependabot/npm_and_yarn/sort-package-json-1.50.0 Bump sort-package-json from 1.49.0 to 1.50.0

view details

Bryan Mishkin

commit sha d8bf16fcdc2862c0f82da06e87d86049925da191

Merge pull request #1937 from ember-template-lint/dependabot/npm_and_yarn/babel/parser-7.14.1 Bump @babel/parser from 7.14.0 to 7.14.1

view details

Bryan Mishkin

commit sha 7ed052787b405a6045205fc9183c6a77c4bed587

Merge pull request #1940 from ember-template-lint/dependabot/npm_and_yarn/date-fns-2.21.3 Bump date-fns from 2.21.1 to 2.21.3

view details

Bryan Mishkin

commit sha aebc59428a2f20d75311d953bd0f4edfa70b70ed

Merge pull request #1943 from ember-template-lint/dependabot/npm_and_yarn/eslint-7.26.0 Bump eslint from 7.25.0 to 7.26.0

view details

dependabot[bot]

commit sha 8a2ce0ab2ae362ef17b6a1f70cc126ccff88c8b0

Bump prettier from 2.2.1 to 2.3.0 Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.0. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.0) Signed-off-by: dependabot[bot] <support@github.com>

view details

Steve Calvert

commit sha 98525dcdf3f4930b465d52242de9f410d8f2db6d

fix: Fixes --clean-todo flag to actually do the cleaning

view details

Steve Calvert

commit sha c4cf510a3a4b1defcd143aaadbef071038aac9b2

Merge pull request #1945 from ember-template-lint/fix-clean-todo Fixes `--clean-todo` flag to actually do the cleaning

view details

Bryan Mishkin

commit sha a7eca3221ab33930357a828d1b4d4ee7fcc6736e

chore(lint): autofix for prettier 2.3.0

view details

Steve Calvert

commit sha a7ea230983f087ef6934a1225e40db3b0949e2f2

Release 3.4.1

view details

Bryan Mishkin

commit sha dab159ee2cca420baf00752ac13a3876f808b95a

Merge pull request #1941 from ember-template-lint/dependabot/npm_and_yarn/prettier-2.3.0 Bump prettier from 2.2.1 to 2.3.0

view details

Steve Calvert

commit sha 5bd3b3247477de8ec05eca051c20335cb20bf39b

fix: Moves expired todo removal under the --clean-todo flag

view details

push time in 2 months

more