Skip to content

Commit

Permalink
chore: package infra for schema-record (#8931)
Browse files Browse the repository at this point in the history
* feat: SchemaRecord, never write a Model again

* update package

* add test infra
  • Loading branch information
runspired authored Sep 28, 2023
1 parent c793724 commit 1485056
Show file tree
Hide file tree
Showing 72 changed files with 3,069 additions and 245 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
/packages/active-record/addon/
/packages/data-worker/addon/
/packages/holodeck/
/packages/schema-record/

**/DEBUG/

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ packages/request-utils/addon
packages/rest/addon
packages/active-record/addon
packages/data-worker/addon
packages/schema-record/addon/

# dependencies
bower_components
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"zlib": "1.0.5"
},
"engines": {
"node": "16.* || >= 18.*",
"node": ">= 18.*",
"yarn": "use pnpm",
"npm": "use pnpm",
"pnpm": "8.7.6"
Expand Down
2 changes: 1 addition & 1 deletion packages/-ember-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"ember-source": "~5.3.0"
},
"engines": {
"node": "16.* || >= 18.*"
"node": ">= 18.*"
},
"keywords": [
"ember-addon"
Expand Down
2 changes: 1 addition & 1 deletion packages/active-record/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"homepage": "https://github.com/emberjs/data",
"bugs": "https://github.com/emberjs/data/issues",
"engines": {
"node": "16.* || >= 18"
"node": ">= 18.*"
},
"keywords": [
"ember-addon"
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"webpack": "^5.88.2"
},
"engines": {
"node": "16.* || >= 18.*"
"node": ">= 18.*"
},
"volta": {
"extends": "../../package.json"
Expand Down
2 changes: 1 addition & 1 deletion packages/debug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"webpack": "^5.88.2"
},
"engines": {
"node": "16.* || >= 18.*"
"node": ">= 18.*"
},
"ember-addon": {},
"volta": {
Expand Down
2 changes: 1 addition & 1 deletion packages/graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"edition": "octane"
},
"engines": {
"node": "16.* || >= 18.*"
"node": ">= 18.*"
},
"volta": {
"extends": "../../package.json"
Expand Down
6 changes: 3 additions & 3 deletions packages/holodeck/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"homepage": "https://github.com/emberjs/data",
"bugs": "https://github.com/emberjs/data/issues",
"engines": {
"node": "16.* || >= 18"
"node": ">= 18.*"
},
"keywords": [
"http-mock"
Expand All @@ -33,8 +33,8 @@
"README.md",
"LICENSE.md",
"server",
"ember-data-logo-dark.svg",
"ember-data-logo-light.svg"
"NCC-1701-a.svg",
"NCC-1701-a-blue.svg"
],
"bin": {
"holodeck": "./bin/holodeck.js"
Expand Down
4 changes: 2 additions & 2 deletions packages/json-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"repository": {
"type": "git",
"url": "git+ssh://git@github.com:emberjs/data.git",
"directory": "packages/record-data"
"directory": "packages/json-api"
},
"license": "MIT",
"author": "",
Expand Down Expand Up @@ -84,7 +84,7 @@
"edition": "octane"
},
"engines": {
"node": "16.* || >= 18.*"
"node": ">= 18.*"
},
"volta": {
"extends": "../../package.json"
Expand Down
2 changes: 1 addition & 1 deletion packages/legacy-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"homepage": "https://github.com/emberjs/data",
"bugs": "https://github.com/emberjs/data/issues",
"engines": {
"node": "16.* || >= 18"
"node": ">= 18.*"
},
"keywords": [
"ember-addon"
Expand Down
2 changes: 1 addition & 1 deletion packages/model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"webpack": "^5.88.2"
},
"engines": {
"node": "16.* || >= 18.*"
"node": ">= 18.*"
},
"volta": {
"extends": "../../package.json"
Expand Down
2 changes: 1 addition & 1 deletion packages/private-build-infra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"silent-error": "^1.1.1"
},
"engines": {
"node": "16.* || >= 18.*"
"node": ">= 18.*"
},
"volta": {
"extends": "../../package.json"
Expand Down
2 changes: 1 addition & 1 deletion packages/request-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"homepage": "https://github.com/emberjs/data",
"bugs": "https://github.com/emberjs/data/issues",
"engines": {
"node": "16.* || >= 18"
"node": ">= 18.*"
},
"keywords": [
"ember-addon"
Expand Down
2 changes: 1 addition & 1 deletion packages/request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"homepage": "https://github.com/emberjs/data",
"bugs": "https://github.com/emberjs/data/issues",
"engines": {
"node": "16.* || >= 18"
"node": ">= 18.*"
},
"keywords": [
"ember-addon"
Expand Down
2 changes: 1 addition & 1 deletion packages/rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"homepage": "https://github.com/emberjs/data",
"bugs": "https://github.com/emberjs/data/issues",
"engines": {
"node": "16.* || >= 18"
"node": ">= 18.*"
},
"keywords": [
"ember-addon"
Expand Down
40 changes: 40 additions & 0 deletions packages/schema-record/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# compiled output
/dist/
/dist/**/*
/tmp/
/types/
**/*.d.ts

# dependencies
/bower_components/

# misc
/.bowerrc
/.editorconfig
/.ember-cli
/.env*
/.eslintignore
/.eslintrc.js
/.gitignore
/.template-lintrc.js
/.travis.yml
/.watchmanconfig
/bower.json
/config/ember-try.js
/CONTRIBUTING.md
/ember-cli-build.js
/testem.js
/tests/
/yarn.lock
.gitkeep

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try

# ember-data
/node-tests

# whitelist yuidoc's data.json for api docs generation
!/dist/docs/data.json
12 changes: 12 additions & 0 deletions packages/schema-record/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
The MIT License (MIT)

Copyright (C) 2023 EmberData and WarpDrive contributors
Copyright (C) 2017-2022 Ember.js contributors
Portions Copyright (C) 2011-2017 Tilde, Inc. and contributors.
Portions Copyright (C) 2011 LivingSocial Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4 changes: 4 additions & 0 deletions packages/schema-record/NCC-1701-a-blue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/schema-record/NCC-1701-a.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 1485056

Please sign in to comment.