Skip to content

Releases: DazzlingFugu/ember-cli-embedded

Release v4.0.1

15 Nov 23:32
155dc8e
Compare
Choose a tag to compare

Changelog: v4.0.0...v4.0.1


Release

Supersedes the previous release v4.0.0 (from #311).

CI

Workflow "tag-release-publish", use Node.js v18 (#310)

To fix the auto-publish to npm, which previously failed:
https://github.com/DazzlingFugu/ember-cli-embedded/actions/runs/6855336980

Release v4.0.0

13 Nov 20:24
d5f91fb
Compare
Choose a tag to compare

Changelog: v3.1.0...v4.0.0


Breaking changes

Upgrade add-on to Ember.js v5.4.0 (#305)

  • Ember.js v4.8 or above is now required
  • Ember CLI v4.8 or above is now required
  • Node.js v18 or above is now required

Chore

Fully migrate add-on to TypeScript (#305)

Dependencies

  • Bump typescript from 4.9.4 to 5.1.6 (#284)
  • Bump webpack from 5.86.0 to 5.88.2 (#287)
  • Bump ember-resolver from 9.0.1 to 11.0.1 (#289)
  • Bump @ember/test-helpers from 2.9.3 to 2.9.4 (#290)
  • Bump @types/ember__debug from 4.0.3 to 4.0.4 (#291)
  • Bump eslint-plugin-ember from 11.5.2 to 11.11.1 (#294)
  • Bump ember-cli-htmlbars from 6.2.0 to 6.3.0 (#295)
  • Bump @types/ember__controller from 4.0.4 to 4.0.8 (#296)
  • Bump postcss from 8.4.19 to 8.4.31 (#297)
  • Bump @types/ember__debug from 4.0.4 to 4.0.5 (#298)
  • Bump @types/ember from 4.0.4 to 4.0.6 (#299)
  • Bump @babel/traverse from 7.21.4 to 7.23.2 (#300)
  • Bump @embroider/test-setup from 1.8.3 to 3.0.2 (#301)
  • Bump @types/ember__engine from 4.0.4 to 4.0.8 (#302)
  • Bump @types/ember__destroyable from 4.0.1 to 4.0.3 (#303)
  • Bump ember-template-lint from 5.7.3 to 5.11.2 (#304)

Release v3.1.0

10 Aug 07:53
de709d6
Compare
Choose a tag to compare

Chore

Dependabot updates

Features

Incorporates ember-export-application-global initializer (#273)

  • removes ember-export-application-global dependency
  • creates export-application-global initializer
  • adds @ember/string dependency (used by the above initializer) as it's no longer available in Ember 5 internally
  • adds relevant tests
  • updates documentation

Features

ember-cli/ember-export-application-global has been deprecated and archived. But an exported application global is essential to an embedded SPA and therefore to ember-cli-embedded as well. So rather than adding a deprecated/archived module as a dependency to this addon, or to an app using this addon, this commit now hardcodes the export-application-global initializer into the ember-cli-embedded module itself, therefore removing the need for an external dependency

Behaviour

  • An application global will be exported and attached to the window, without the need to set { exportApplicationGlobal: true } in config/environment.js, as long as { embedded: delegateStart: true } is set in config/environment.js
  • To avoid breaking changes with existing config/environment.js files, { exportApplicationGlobal: false } will still work, even though there is no need for it

screenshots of updated docs:

Screenshot 2023-06-19 at 12 16 05 Screenshot 2023-06-19 at 12 16 22

Release v3.0.1

05 May 15:41
a22dfdf
Compare
Choose a tag to compare

Chore

Remove @types/ember__test-helpers as it does not exist anymore

Remove @types/ember-qunit, it has dependencies with @types/ember__test-helpers

Release v3.0.0

05 May 15:00
88cf182
Compare
Choose a tag to compare
Release v3.0.0 Pre-release
Pre-release

⛔ DO NOT USE THIS RELEASE

A new patch has been done, please use the version 3.0.1 instead
https://github.com/DazzlingFugu/ember-cli-embedded/releases/tag/v3.0.1

Changelog: v2.5.0...v3.0.0

Breaking ⚠️

Drop support for Ember 3.20 and 3.24 (#257)

Drop node 12 support (#228)

Chore

Run ember-cli-typescript blueprint (#195)

To be up to date with ember-cli-typescript config and recommandations in tsconfig.json

Running blueprints also add back @types/ember* packages in devDependencies, which solves a side effect introduced by #157.

  • If we remove some @types/ember* packages from our devDependencies, they will still be included by other packages but they will resolve to a version sometimes incompatible with other @types/ember__* packages, resulting of type errors in build
  • Keeping us sync with ember-cli-typescript ensure we don't face this issue again in this future

Example of build failing when we remove some @types/ember__x packages that we don't use (like routing, engine, array... ; even after a yarn-deduplicate && yarn):
Capture d’écran 2022-06-27 à 23 31 56

Run yarn-deduplicate && yarn (#195)

Fix build and test by resolving @types/ember* packages to one single version in the yarn.lock (otherwise we would have sometimes two different versions for some @types/ember* packages, which would leads to type conflicts when building app

Build

Update Ember to 4.8 (#246)

  • Bumps Ember from 4.4 to 4.8 using ember-cli-update
  • Bumps a couple of dependencies: @ember/test-helpers, @types/ember__test-helpers, ember-auto-import, ember-qunit, webpack

Move ember-export-application-global to deps (#246)

Related to / closes #199

Update typescript to 4.9.4 (#245)

Update ember-cli-typescript to 4.9.4 (#245)

Remove @types/htmlbars-inline-precompile (#245)

Rebuild yarn.lock (#245)

Upgrade ember-cli-typescript to v5.1.0 (#195)

Updates deps

build(deps-dev): bump ember-template-lint from 5.7.2 to 5.7.3 #259
build(deps-dev): bump ember-template-lint from 4.18.2 to 5.7.2 #258
build(deps-dev): bump webpack from 5.75.0 to 5.76.0 #255
build(deps): bump minimist from 0.2.2 to 0.2.4 #254
build(deps): bump http-cache-semantics from 4.1.0 to 4.1.1 #251
build(deps-dev): bump typescript from 4.7.4 to 4.9.4 #245
build(deps): bump express from 4.17.1 to 4.18.2 #243
build(deps): bump decode-uri-component from 0.2.0 to 0.2.2 #241
build(deps): bump loader-utils from 1.4.1 to 1.4.2 #236
build(deps): bump loader-utils from 1.4.0 to 1.4.1 #233
build(deps-dev): bump ember-qunit from 5.1.5 to 6.0.0 #232
build(deps-dev): bump @types/ember__controller from 4.0.0 to 4.0.1 #229
build(deps): bump mout from 1.2.3 to 1.2.4 #226
build(deps): bump ember-cli-typescript from 5.1.0 to 5.1.1 #224
build(deps-dev): bump @types/ember__component from 4.0.8 to 4.0.10 #222
build(deps-dev): bump @types/ember-qunit from 5.0.0 to 5.0.1 #218
build(deps-dev): bump @types/ember from 4.0.0 to 4.0.1 #217
build(deps-dev): bump @types/ember__application from 4.0.0 to 4.0.1 #214
build(deps-dev): bump @types/ember__routing from 4.0.7 to 4.0.10 #213
build(deps): bump ember-cli-babel from 7.26.6 to 7.26.11 #210
Build/ update ember-auto-import & webpack, clean dependencies #205
build(deps): bump terser from 4.8.0 to 4.8.1 #201
build(deps-dev): bump eslint-plugin-qunit from 6.2.0 to 7.3.1 #200
build: upgrade ember to v4.4 #196
build: upgrade ember-cli-typescript to v5.1.0 #195
Auto-update list of contributors #193

Release v2.5.0

27 Jun 12:56
926a6f8
Compare
Choose a tag to compare

Changelog: v2.4.0...v2.5.0

Fix

Bind application to start function (#188)

Attempt to fix #186.

Fix successfully tested against a fresh Ember.js app in version 4.4.0.

Tests suite successfully ran against Node.js v12, v14 and v16.

Chore

Turn off noEmitOnError rule (#188)

Temporarily disable noEmitOnError TS rule to unblock ember-try scenarios in the CI, to be turned on when we manage to fix type errors in this repo for ember-try scenarios.

CI

New workflow to auto-update list of contributors (#174)

Build

Uninstall contributor-faces (#174)

Upgrade @embroider/test-setup from 0.47.1 to 0.47.2 (#169)

Upgrade @typescript-eslint/eslint-plugin from 4.30.0 to 4.33.0 (#177)

Upgrade ember-auto-import from 1.11.3 to 2.2.3 (#172)

Upgrade typescript from 4.4.3 to 4.4.4 (#173)

Release v2.4.0

04 Nov 15:38
3304a6f
Compare
Choose a tag to compare

Changelog: v2.3.1...v2.4.0

Build

Bump @embroider/test-setup from 0.47.0 to 0.47.1 (#166)

Bump ember-cli-htmlbars from 5.7.1 to 6.0.0 (#167)

Update ember-cli to 3.28.3 (#168)

Deduplicate packages (#168)

See https://github.com/atlassian/yarn-deduplicate.

Chore

Refine information in package.json (#169)

Add contributors to README (#171)

CI

Run workflow tag-release-publish only after lint & tests passed (#163)

Make the workflow tag-release-publish waits for the workflow CI to finish, so that they run sequentially (the same way jobs' steps are run sequentially).

Ensure only 1 workflow runs at a time (#163)

Surprisingly, while a new run of the workflow is triggered when pushing new changes, any previous workflow still running is not cancelled, resulting in a waste of resources.

We now use the concurrency setting to ensure that only a single workflow, using the same concurrency group, will run at a time.

Lint yarn.lock file to spot malicious attacks (#163)

Fix empty concurrency group's name (#165)

Previously the concurrency group's name was empty when running on master (see the faulty run) because the context ${{ github.head_ref }} is only available in PR-related events.

The group's name is now prefixed with ci- to ensure it will never be empty.

Reuse organisation's workflow to run lint & tests (#168)

Reuse organisation's workflow to run tag & publish (#168)

Stop testing against Ember.js v3.16 (#168)

This version has been discontinued in August 2020 and is no longer maintained:
https://emberjs.com/releases/lts/

Release v2.3.1

27 Oct 09:31
57b3a65
Compare
Choose a tag to compare

Changelog: v2.3.0...v2.3.1

CI

Fix URL to compare new and old tags (#160)

Prefix the link to compare tags (#162)

Release v2.3.0

26 Oct 16:02
dea5770
Compare
Choose a tag to compare

Changelog: v2.2.0...v2.3.0

Build

Whitelist files to include on publish (#153)

To reduce the final bundle size.

Bump @embroider/test-setup from 0.43.5 to 0.47.0 (#154)

Bump qunit from 2.17.0 to 2.17.2 (#155)

Trim unused packages (#157)

CI

New GitHub workflow to automatically create a new tag, a new release and publish to NPM (#153)

Run all ember-try scenarios despite failure (#156)

Merge jobs lint and tests (#156)

v2.2.0

19 Oct 12:53
567aa42
Compare
Choose a tag to compare

Build

Bump eslint-plugin-ember from 10.5.5 to 10.5.7 (#150)

Bump @types/ember__object from 3.12.5 to 3.12.6 (#151)

CI

Replace test scenario ember-lts-3.24 with ember-lts-3.16 (#148)

At the time of writing these changes, the add-on already runs with ember-cli@3.24 so testing the LTS v3.24 in the CI does not make sense.

Follow the native implementation of Ember.js:

Documentation

Lower compatible version of Ember.js (#148)

Because the CI will test against Ember.js v3.16, we should mention the add-on is compatible with this version.

Add a section about TypeScript support (#149)

Features

Allow to pass type of embedded options to Service embedded (#149)

The Service embedded now accepts a generic type parameter to improve the accuracy of what it can return.

import Component from '@glimmer/component';
import { inject as service } from '@ember/service';

import type EmbeddedService from 'ember-cli-embedded/services/embedded';

export default class MyComponent extends Component {
  @service
  declare embedded: EmbeddedService<{ one: string, two?: string }>;

  get one() { // Return type inferred: `string | undefined`
    return this.embedded.get('one');
  }

  get two() {
    // TypeScript returns an error as `twoo` is not a recognised key
    return this.embedded.get('twoo');
  }
}

Fixes

Fix required versions of Node.js (#148)

Node.js v10 is actually not supported so we should not mention it in our package.json.

Refactor

Update Service embedded to native JS class (#149)

Make tests of Service embedded stricter (#149)

Prefer assert.strictEqual() over assert.equal().