Skip to content

Commit 2bee927

Browse files
committed
Merge remote-tracking branch 'local/fastboot/master'
2 parents c77780f + 0f5b00b commit 2bee927

158 files changed

Lines changed: 1675596 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/fastboot/.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
!.*
2+
test/fixtures
3+
test/helpers

packages/fastboot/.eslintrc.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
module.exports = {
2+
parserOptions: {
3+
ecmaVersion: 2017,
4+
},
5+
extends: ['eslint:recommended', 'plugin:node/recommended', 'plugin:prettier/recommended'],
6+
plugins: ['prettier', 'node'],
7+
env: {
8+
browser: true,
9+
node: true,
10+
es6: true,
11+
},
12+
rules: {
13+
'no-console': ['error', { allow: ['warn', 'error'] }],
14+
},
15+
overrides: [
16+
// override eslint in the dev/* folder to allow features from more recent
17+
// Node versions
18+
{
19+
files: ['dev/**/*.js'],
20+
rules: {
21+
'node/no-unsupported-features/node-builtins': [
22+
'error',
23+
{
24+
version: '>=10.0.0',
25+
ignores: [],
26+
},
27+
],
28+
},
29+
},
30+
],
31+
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [10.x, 12.x, 14.x]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- run: yarn install
24+
- run: yarn test

packages/fastboot/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.eslintcache
2+
/node_modules
3+
npm-debug.log
4+
tmp*
5+
dist/
6+
/snapshots

packages/fastboot/.npmignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
test
2+
.gitignore
3+
.jshintignore
4+
.jshintrc
5+
.travis.yml
6+
yarn.lock

packages/fastboot/.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": true,
3+
"printWidth": 100,
4+
"trailingComma": "es5"
5+
}

packages/fastboot/CHANGELOG.md

Lines changed: 259 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,259 @@
1+
## v3.1.2 (2020-10-29)
2+
3+
#### :bug: Bug Fix
4+
* [#281](https://github.com/ember-fastboot/fastboot/pull/281) Ensure extraneous files are not published. ([@rwjblue](https://github.com/rwjblue))
5+
6+
#### Committers: 1
7+
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))
8+
9+
10+
## v3.1.1 (2020-10-23)
11+
12+
#### :bug: Bug Fix
13+
* [#277](https://github.com/ember-fastboot/fastboot/pull/277) Restore result finalization in resilient mode ([@bobisjan](https://github.com/bobisjan))
14+
15+
#### :house: Internal
16+
* [#278](https://github.com/ember-fastboot/fastboot/pull/278) Update release setup. ([@rwjblue](https://github.com/rwjblue))
17+
* [#279](https://github.com/ember-fastboot/fastboot/pull/279) Migrate to GitHub Actions for CI. ([@rwjblue](https://github.com/rwjblue))
18+
19+
#### Committers: 2
20+
- Jan Bobisud ([@bobisjan](https://github.com/bobisjan))
21+
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))
22+
23+
24+
## v3.1.0 (2020-05-26)
25+
26+
#### :rocket: Enhancement
27+
* [#272](https://github.com/ember-fastboot/fastboot/pull/272) Introduce html oriented manifest format (introduces better Embroider interop) ([@thoov](https://github.com/thoov))
28+
29+
#### Committers: 1
30+
- Travis Hoover ([@thoov](https://github.com/thoov))
31+
32+
33+
Must provide GITHUB_AUTH
34+
35+
## v3.0.2 (2020-03-24)
36+
37+
#### :rocket: Enhancement
38+
* [#262](https://github.com/ember-fastboot/fastboot/pull/264) Add sandbox queue management when using `buildSandboxPerVisit` ([@kratiahuja](https://github.com/kratiahuja))
39+
40+
#### Committers: 1
41+
- Krati Ahuja ([@kratiahuja](https://github.com/kratiahuja))
42+
43+
## v3.0.1 (2020-03-12)
44+
45+
#### :rocket: Enhancement
46+
* [#262](https://github.com/ember-fastboot/fastboot/pull/262) Improve performance when using new sandbox per visit by building sandbox after the request ([@kratiahuja](https://github.com/kratiahuja))
47+
48+
#### Committers: 1
49+
- Krati Ahuja ([@kratiahuja](https://github.com/kratiahuja))
50+
51+
## v3.0.0 (2020-01-31)
52+
53+
#### :boom: Breaking Change
54+
* [#258](https://github.com/ember-fastboot/fastboot/pull/258) Drop Node 8 support ([@rwjblue](https://github.com/rwjblue))
55+
56+
#### :rocket: Enhancement
57+
* [#252](https://github.com/ember-fastboot/fastboot/pull/252) Expose option to allow a new sandbox per visit ([@rwjblue](https://github.com/rwjblue))
58+
59+
#### :house: Internal
60+
* [#259](https://github.com/ember-fastboot/fastboot/pull/259) Update various dependencies to latest versions. ([@rwjblue](https://github.com/rwjblue))
61+
62+
#### Committers: 1
63+
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))
64+
65+
## v3.0.0-beta.3 (2019-11-01)
66+
67+
#### :bug: Bug Fix
68+
* [#250](https://github.com/ember-fastboot/fastboot/pull/250) Fix invalid syntax with deferRendering. ([@rwjblue](https://github.com/rwjblue))
69+
70+
#### Committers: 1
71+
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))
72+
73+
## v3.0.0-beta.2 (2019-11-01)
74+
75+
#### :boom: Breaking Change
76+
* [#247](https://github.com/ember-fastboot/fastboot/pull/247) Remove najax from default set of sandbox globals. ([@rwjblue](https://github.com/rwjblue))
77+
78+
#### :rocket: Enhancement
79+
* [#245](https://github.com/ember-fastboot/fastboot/pull/245) Refactor sandboxGlobals -> buildSandboxGlobals ([@rwjblue](https://github.com/rwjblue))
80+
81+
#### :house: Internal
82+
* [#248](https://github.com/ember-fastboot/fastboot/pull/248) Remove ember-source from devDependencies. ([@rwjblue](https://github.com/rwjblue))
83+
84+
#### Committers: 1
85+
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))
86+
87+
## v3.0.0-beta.1 (2019-10-30)
88+
89+
#### :boom: Breaking Change
90+
* [#236](https://github.com/ember-fastboot/fastboot/pull/236) Refactor to use a single sandboxed context per visit request. ([@rwjblue](https://github.com/rwjblue))
91+
* [#225](https://github.com/ember-fastboot/fastboot/pull/225) Drop support for Node 6, 9, and 11. ([@kiwiupover](https://github.com/kiwiupover))
92+
93+
#### :rocket: Enhancement
94+
* [#229](https://github.com/ember-fastboot/fastboot/pull/229) Add `FastBoot.distPath` ([@stefanpenner](https://github.com/stefanpenner))
95+
96+
#### :bug: Bug Fix
97+
* [#227](https://github.com/ember-fastboot/fastboot/pull/227) Restore allowing fallback require from working directory ([@xg-wang](https://github.com/xg-wang))
98+
* [#219](https://github.com/ember-fastboot/fastboot/pull/219) Fix an incorrect `debug()` call ([@CvX](https://github.com/CvX))
99+
100+
#### :memo: Documentation
101+
* [#235](https://github.com/ember-fastboot/fastboot/pull/235) Document `reload` method. ([@rwjblue](https://github.com/rwjblue))
102+
103+
#### :house: Internal
104+
* [#243](https://github.com/ember-fastboot/fastboot/pull/243) Add automated release setup. ([@rwjblue](https://github.com/rwjblue))
105+
* [#238](https://github.com/ember-fastboot/fastboot/pull/238) Add basic memory profiling script to `dev/` folder. ([@rwjblue](https://github.com/rwjblue))
106+
* [#237](https://github.com/ember-fastboot/fastboot/pull/237) Add dev script to make tracing easier. ([@rwjblue](https://github.com/rwjblue))
107+
* [#234](https://github.com/ember-fastboot/fastboot/pull/234) Remove `rsvp` dependency. ([@rwjblue](https://github.com/rwjblue))
108+
* [#233](https://github.com/ember-fastboot/fastboot/pull/233) Update dependencies/devDependencies to latest. ([@rwjblue](https://github.com/rwjblue))
109+
* [#232](https://github.com/ember-fastboot/fastboot/pull/232) Make a single `Sandbox` base class. ([@rwjblue](https://github.com/rwjblue))
110+
* [#231](https://github.com/ember-fastboot/fastboot/pull/231) General repo cleanup. ([@rwjblue](https://github.com/rwjblue))
111+
112+
#### Committers: 5
113+
- David Laird ([@kiwiupover](https://github.com/kiwiupover))
114+
- Jarek Radosz ([@CvX](https://github.com/CvX))
115+
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))
116+
- Stefan Penner ([@stefanpenner](https://github.com/stefanpenner))
117+
- Thomas Wang ([@xg-wang](https://github.com/xg-wang))
118+
119+
# FastBoot Changelog
120+
121+
## v2.0.0 (2018-12-10)
122+
123+
#### :boom: Breaking Change
124+
* [#202](https://github.com/ember-fastboot/fastboot/pull/202) Update Node.js support matrix ([@bobisjan](https://github.com/bobisjan))
125+
126+
#### :rocket: Enhancement
127+
* [#188](https://github.com/ember-fastboot/fastboot/pull/188) Update various dependencies to latest. ([@izelnakri](https://github.com/izelnakri))
128+
* [#206](https://github.com/ember-fastboot/fastboot/pull/206) Update minimum version of simple-dom to 1.4.0. ([@rwjblue](https://github.com/rwjblue))
129+
130+
#### :bug: Bug Fix
131+
* [#200](https://github.com/ember-fastboot/fastboot/pull/200) Allow to require module path from whitelisted dependency ([@bobisjan](https://github.com/bobisjan))
132+
* [#201](https://github.com/ember-fastboot/fastboot/pull/201) Remove usage of deprecated exists-sync ([@SergeAstapov](https://github.com/SergeAstapov))
133+
134+
#### :memo: Documentation
135+
* [#197](https://github.com/ember-fastboot/fastboot/pull/197) Fixed small typo ([@kiwiupover](https://github.com/kiwiupover))
136+
137+
#### :house: Internal
138+
* [#204](https://github.com/ember-fastboot/fastboot/pull/204) fix(package): update debug to version 4.1.0 ([@rwjblue](https://github.com/rwjblue))
139+
* [#203](https://github.com/ember-fastboot/fastboot/pull/203) Remove .babelrc configuration file ([@bobisjan](https://github.com/bobisjan))
140+
141+
#### Committers: 5
142+
- David Laird ([@kiwiupover](https://github.com/kiwiupover))
143+
- Izel Nakri ([@izelnakri](https://github.com/izelnakri))
144+
- Jan Bobisud ([@bobisjan](https://github.com/bobisjan))
145+
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))
146+
- Sergey Astapov ([@SergeAstapov](https://github.com/SergeAstapov))
147+
148+
### 1.2.0
149+
150+
* Add support for setting attributes on the `<html>` element (e.g. `<html lang="fr">`).
151+
152+
### 1.1.4-beta.1
153+
154+
* Enable rehydration from glimmer-vm as opt-in
155+
156+
### 1.1.3
157+
158+
* Add markers before and after the body to be able to remove rootless apps
159+
160+
### 1.1.2
161+
162+
* Adds API to allow chunking shoebox responses for better performance.
163+
164+
### 1.1.1
165+
166+
* Implement `unknownProperty` in FastbootHeaders to prevent users mistakenly use `Ember.get(headers, headerName)`
167+
168+
### 1.1.0
169+
170+
* Add the ability to support configuration for multiple namespaces to `FastBoot.config`.
171+
172+
### 1.0.0-rc.3
173+
174+
* Remove Node 0.12 support.
175+
176+
### 1.0.0-rc.2
177+
178+
* Set the entry point to the built cjs
179+
180+
### 1.0.0-beta.5
181+
182+
* Only access instance.getURL if the instance has booted
183+
* Exclude test files from npm package
184+
185+
### 1.0.0-beta.4
186+
187+
* najax dependency updated to 0.7.0, which now handle nested query
188+
params
189+
* Don't obscure errors during instance creation
190+
* Made request compatible with nodejs' ClientRequest instances
191+
192+
### 1.0.0-beta.3
193+
194+
* Responses with status codes `204` or `3xx` no longer return the
195+
rendered EmberApp
196+
* Error message for `fastboot.request.host` now returns the Host header
197+
* najax dependency updated to 0.6.0, which now handles gzip responses
198+
199+
### 1.0.0-beta.2
200+
201+
* Adds support for the "shoebox"‑a place to put data that should be
202+
shared from the server-rendered app to the browser-rendered version.
203+
204+
### 1.0.0-beta.1
205+
206+
* This version is a significant change from previous versions.
207+
* Responsibility for serving HTTP requests has been extracted to the
208+
[fastboot-express-middleware](https://github.com/ember-fastboot/fastboot-express-middleware)
209+
and
210+
[fastboot-app-server](https://github.com/ember-fastboot/fastboot-app-server)
211+
repositories.
212+
* The name of this project has been changed to reflect the reduction in
213+
responsibilities: it is now just `fastboot`, a library for rendering
214+
Ember apps on the server, instead of `fastboot-app-server`.
215+
* The minimum required Node version is now v4. Support for 0.12 will be
216+
added later via transpiling.
217+
* Adds a `resilient` mode, where errors during rendering are suppressed
218+
and a blank HTML page is returned instead.
219+
* JSHint has been added to the automated tests.
220+
* Calling `visit()` returns a `Result` object that encapsulates the
221+
rendered result.
222+
223+
### 0.7.3
224+
225+
* Application config is now stored in the built application's
226+
`package.json`. This allows turning the `storeConfigInMeta` back on
227+
for FastBoot apps.
228+
* Setting the document's title via `document.title` is deprecated. Use the
229+
[ember-cli-head](https://github.com/ronco/ember-cli-head) addon
230+
instead.
231+
232+
### 0.7.2
233+
234+
* The HTTP response object is now exposed to the FastBoot service.
235+
236+
### 0.7.1
237+
238+
* Fixes an issue where requiring built-in modules via
239+
`FastBoot.require()` wouldn't work.
240+
241+
### 0.7.0
242+
243+
* Removes the contextify dependency. This should significantly improve
244+
install speed and platform compatibility, at the expense of dropping
245+
support for Node 0.10.
246+
* Improves compatibility of the request headers object with the [Headers
247+
specification](https://developer.mozilla.org/en-US/docs/Web/API/Headers).
248+
249+
### 0.6.2
250+
251+
* Adds the ability for the FastBoot service to defer rendering the
252+
response by providing a promise.
253+
254+
### 0.6.0
255+
256+
* Adds hot reloading of app.
257+
* Fixes an issue where the `console` global was not available inside the
258+
FastBoot sandbox.
259+
* Makes incoming HTTP request available to the Ember app.

0 commit comments

Comments
 (0)