Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor, cell was in the wrong folder #976

Merged
merged 1 commit into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions dev/estimate-bytes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const config = {
nest: [
'core/class-based/index.js',
'core/function-based/index.js',
'core/cell.js',
'core/use.js',
]
},
Expand Down
2 changes: 1 addition & 1 deletion ember-resources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"./service": "./dist/service.js",
"./modifier": "./dist/modifier/index.js",
"./util": "./dist/util/index.js",
"./util/cell": "./dist/util/cell.js",
"./util/cell": "./dist/core/cell.js",
"./util/keep-latest": "./dist/util/keep-latest.js",
"./util/fps": "./dist/util/fps.js",
"./util/map": "./dist/util/map.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ export function cell<Value = unknown>(initialValue?: Value): Cell<Value> {
// @ts-ignore
import { capabilities as helperCapabilities, setHelperManager } from '@ember/helper';

import { CURRENT } from '../core/function-based/types';
import { CURRENT } from './function-based/types';

import type { GlintRenderable, Reactive } from '../core/function-based/types';
import type { GlintRenderable, Reactive } from './function-based/types';

class CellManager {
capabilities = helperCapabilities('3.23', {
Expand Down
2 changes: 1 addition & 1 deletion ember-resources/src/core/function-based/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { invokeHelper } from '@ember/helper';
import { capabilities as helperCapabilities } from '@ember/helper';
import { dependencySatisfies, importSync, macroCondition } from '@embroider/macros';

import { ReadonlyCell } from '../../util/cell';
import { ReadonlyCell } from '../cell';
import { CURRENT, INTERNAL } from './types';

import type {
Expand Down
2 changes: 1 addition & 1 deletion ember-resources/src/core/use.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { associateDestroyableChild } from '@ember/destroyable';
// @ts-ignore
import { invokeHelper } from '@ember/helper';

import { ReadonlyCell } from '../util/cell';
import { ReadonlyCell } from './cell';
import { INTERNAL } from './function-based/types';
import { normalizeThunk } from './utils';

Expand Down
2 changes: 1 addition & 1 deletion ember-resources/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export { resource, resourceFactory } from './core/function-based';
export { use } from './core/use';

// Public API -- Utilities
export { cell } from './util/cell';
export { cell } from './core/cell';

// Public Type Utilities
export type { ResourceAPI } from './core/function-based';
Expand Down