Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
dcd4e45
Fix for Ember v5
andsmedeiros Jan 18, 2024
591e23f
Moves runtime dependencies (as PouchDB) to from dev dependencies to d…
andsmedeiros Jan 18, 2024
45f7a5a
Re-add pouchdb-browser as a dependency
andsmedeiros Jan 18, 2024
d8398b5
Removes deprecated Embet.Snapshot#type from PouchAdapter#findHasMany
andsmedeiros Jan 18, 2024
55f57df
Updating addon to work with Ember >= 6.4.0 and EmberData >= 5.5.0
andsmedeiros Jun 13, 2025
94bb9d8
Modernizes syntax, corrects `snapshot.type` deprecation, removes use …
andsmedeiros Jun 14, 2025
b7460df
Removes .idea directory; adds it to .*ignore files
andsmedeiros Jun 14, 2025
bd4f406
Modernizes code
andsmedeiros Jun 15, 2025
cf79058
Satisfies deprecation ember-data:deprecate-legacy-imports
andsmedeiros Jun 15, 2025
5c4ccab
Modernizes syntax
andsmedeiros Jun 15, 2025
5b31175
Complies to ember-data:deprecate-store-extends-ember-object deprecation
andsmedeiros Jun 15, 2025
506eef4
Ditches EmberObject and modernizes syntax of `PouchAdapter`.
andsmedeiros Jun 15, 2025
f547ed4
Adds `inverse: null` to `ingredients`
andsmedeiros Jun 15, 2025
071f8f0
Modernizes syntax
andsmedeiros Jun 15, 2025
d3988ea
Modernizes syntax, mostly turning long promise chains into async func…
andsmedeiros Jun 15, 2025
b3d31f7
Still working out dependencies
andsmedeiros Jun 15, 2025
6d41a1b
Removes instances of `assert.expect()` becase the linter hates it and…
andsmedeiros Jun 15, 2025
ae01aa1
QUnit dislikes when tests have no assertions; assert that no exceptio…
andsmedeiros Jun 16, 2025
c9fe8d0
Removes useless `test-support.css` import
andsmedeiros Jun 16, 2025
57631d8
Prettier pass
andsmedeiros Jun 16, 2025
80ae9d2
Corrects nasty error messages in console when deleting indexes in par…
andsmedeiros Jun 16, 2025
403dc44
Modernizes syntax and ditches `EmberObject` wrappers in attachments. …
andsmedeiros Jun 16, 2025
b6810e2
Some cleanup and simplification so the code is clearer and easier to …
andsmedeiros Jun 16, 2025
b74f095
Refactors flag checking code for more clarity
andsmedeiros Jun 16, 2025
c67feae
Directly exports the extended `PouchDb` class returned by `.plugin()`…
andsmedeiros Jun 16, 2025
62a119a
Avoid defining `ApplicationSerializer` in `/app`; this should probabl…
andsmedeiros Jun 17, 2025
4ad3487
Small ESLing config corrections
andsmedeiros Jun 17, 2025
8b13d79
Better consistency of addon exports
andsmedeiros Jun 17, 2025
2b73905
Correctly adds decorator configuration in eslint.config.mjs
andsmedeiros Jun 17, 2025
dbc076e
Removes useless dummy app styles
andsmedeiros Jun 17, 2025
e4696c8
Extracts logic from `adapter:taco-salad` into `adapter:application` a…
andsmedeiros Jun 17, 2025
0825a49
Modernizes dummy app's model classes syntax
andsmedeiros Jun 17, 2025
792d108
Removes useless template file
andsmedeiros Jun 17, 2025
9474741
Modernizes syntax
andsmedeiros Jun 17, 2025
2d19540
Removes useless PouchDB export in the dummy ap
andsmedeiros Jun 17, 2025
dae9f7e
Removes old ember data feature `ds-references`
andsmedeiros Jun 17, 2025
7cfc3cb
Modernizes some more syntax and removes useless dependencies. This al…
andsmedeiros Jun 17, 2025
a78ad7a
Removes some old dependencies and normalizes some testing behavior.
andsmedeiros Jun 17, 2025
1dc84d8
Modernizes some syntax.
andsmedeiros Jun 17, 2025
56b4513
Ditches EmberObject, as that is not used anymore to create attachment…
andsmedeiros Jun 17, 2025
94bcea5
This seems it was only used to import PouchDB into broccoli's build p…
andsmedeiros Jun 17, 2025
b92f422
Major [unfinished] overhaul of `PouchAdapter`.
andsmedeiros Jun 18, 2025
3bf09f0
Adds .gitkeep to `dummy/app/styles` so build doesn't break.
andsmedeiros Jun 18, 2025
ff6cd7b
Some more code cleanup and modernization. Whole adapter is covered now.
andsmedeiros Jun 18, 2025
cdc48d0
Renames `module-for-pouch-acceptance.js` to `install-context.js` to m…
andsmedeiros Jun 18, 2025
5ecc682
Enables some rules tha had been manually disabled before. Corrected i…
andsmedeiros Jun 18, 2025
6e2d428
Removes unused CSS and HBS linting scripts
andsmedeiros Jun 18, 2025
ffe2b13
Adds scenarios for ember 4.x
andsmedeiros Jun 23, 2025
c9315a4
Removes useless `assets/dummy.css` import
andsmedeiros Jun 23, 2025
9aad7aa
Slightly refactors formatting
andsmedeiros Jun 23, 2025
b6b8378
Pins `@ember/test-helpers` to v3
andsmedeiros Jun 23, 2025
1946c26
Updates `getOwner` import path
andsmedeiros Jun 23, 2025
fd68f0a
Moves `unloadedDocumentChanged` from `adapter:application` to `adapte…
andsmedeiros Jun 23, 2025
ba47be8
Removes `StringTransform` as that breaks early v4 compatibility
andsmedeiros Jun 23, 2025
8e319d6
Corrects square bracket access in ArrayProxy returned by relationship
andsmedeiros Jun 23, 2025
96f8c51
Formatting
andsmedeiros Jun 23, 2025
59b21b9
Deletes old file
andsmedeiros Jun 23, 2025
3d2179f
Updates ember-try config file to only test for ember/data v4.x
andsmedeiros Jun 24, 2025
f09a182
Embroider won't build if `dummy.css` is absent -- add it back
andsmedeiros Jun 24, 2025
0b9479a
Remove useless test initialization. Also, it seems `loadTests()` was …
andsmedeiros Jun 24, 2025
e774b1d
Pins relevant versions to ember-v4 compatible dependencies. Removes u…
andsmedeiros Jun 24, 2025
7f7209a
Removes Travis config file
andsmedeiros Jul 1, 2025
fc0d537
Updates Github Actions config file
andsmedeiros Jul 1, 2025
10a8931
Installs pnpm and Chrome for proper test running
andsmedeiros Jul 1, 2025
0703051
Aligns implementation to our new API and makes more user friendly
andsmedeiros Jul 1, 2025
430e8a6
Default model blueprint attributes used to provide a consistent model…
andsmedeiros Jul 1, 2025
c9918b9
Deletes useless? file
andsmedeiros Jul 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions .eslintignore

This file was deleted.

75 changes: 0 additions & 75 deletions .eslintrc.js

This file was deleted.

79 changes: 42 additions & 37 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,80 +15,85 @@ concurrency:

jobs:
test:
name: "Tests"
name: 'Tests'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install Nod
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Install Chrome
uses: browser-actions/setup-chrome@v1
with:
node-version: 14.x
# cache: npm
install-dependencies: true
- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
- name: Install dependencies
run: |
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
if [ -e pnpm-lock.yaml ]; then
pnpm install --frozen-lockfile
else
npm i
pnpm install
fi
- name: Lint
run: npm run lint
run: pnpm lint
- name: Run Tests
run: npm run test:ember
run: pnpm test:ember

floating:
name: "Floating Dependencies"
name: 'Floating Dependencies'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Install Chrome
uses: browser-actions/setup-chrome@v1
with:
node-version: 14.x
# cache: npm
install-dependencies: true
- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
- name: Install Dependencies
run: npm install --no-shrinkwrap
run: pnpm install --no-lockfile
- name: Run Tests
run: npm run test:ember

try-scenarios:
name: ${{ matrix.try-scenario }}
runs-on: ubuntu-latest
needs: "test"
needs: 'test'

strategy:
fail-fast: false
matrix:
try-scenario:
- ember-lts-3.16
- ember-lts-3.24
- ember-lts-3.28
- ember-4.0
- ember-lts-4.4
- ember-release
- ember-beta
- ember-canary
- ember-classic
- ember-lts-4.8
- ember-lts-4.12
- embroider-safe
- embroider-optimized

steps:
- uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Install Chrome
uses: browser-actions/setup-chrome@v1
with:
install-dependencies: true
- uses: actions/setup-node@v4
with:
node-version: 14.x
# cache: npm
node-version: 18
cache: pnpm
- name: Install dependencies
run: |
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
if [ -e pnpm-lock.yaml ]; then
pnpm install --frozen-lockfile
else
npm i
pnpm install
fi
- name: Run Tests
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# misc
/.env*
/.idea
/.pnp*
/.sass-cache
/.eslintcache
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/.eslintrc.js
/.git/
/.gitignore
/.idea
/.prettierignore
/.prettierrc.js
/.template-lintrc.js
Expand Down
64 changes: 0 additions & 64 deletions .travis.yml

This file was deleted.

7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Ember Pouch [![Build Status](https://travis-ci.org/pouchdb-community/ember-pouch.svg)](https://travis-ci.org/pouchdb-community/ember-pouch) [![GitHub version](https://badge.fury.io/gh/pouchdb-community%2Fember-pouch.svg)](https://badge.fury.io/gh/pouchdb-community%2Fember-pouch) [![Ember Observer Score](https://emberobserver.com/badges/ember-pouch.svg)](https://emberobserver.com/addons/ember-pouch)

- [**Changelog**](#changelog)
- [**Upgrading**](#upgrading)
- [**Changelog**](#changelog)
- [**Upgrading**](#upgrading)

Ember Pouch is a PouchDB/CouchDB adapter for Ember Data 3.16+. For older Ember Data versions down to 2.0+ use Ember Pouch version 7.0 For Ember Data versions lower than 2.0+ use Ember Pouch version 3.2.2.

Expand Down Expand Up @@ -387,7 +387,7 @@ myAlbum.photos.addObject(
name: 'kitten.jpg',
content_type: 'image/jpg',
data: btoa('hello world'), // base64-encoded `String`, or a DOM `Blob`, or a `File`
})
}),
);
```

Expand Down Expand Up @@ -591,6 +591,7 @@ This project was originally based on the [ember-data-hal-adapter](https://github
And of course thanks to all our wonderful contributors, [here](https://github.com/pouchdb-community/ember-pouch/graphs/contributors) and [in Relational Pouch](https://github.com/pouchdb-community/relational-pouch/graphs/contributors)!

## Changelog

- **8.0.0-beta.2**
- Set PouchDb indexeddb adapter as default instead of idb adapter to use native views
- Generate adapters/application.js at installation
Expand Down
Loading