Skip to content

Commit e612983

Browse files
Remove standalone uninstall command
1 parent a93b42d commit e612983

7 files changed

Lines changed: 0 additions & 137 deletions

File tree

docs/guides/deprecations.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,6 @@ Note:
3030
- The `serverless.yml` setting is ineffective for deprecations reported before the configuration is read.
3131
- `SLS_DEPRECATION_DISABLE` and `disabledDeprecations` remain respected, and no errors will be thrown for mentioned deprecation codes.
3232

33-
<a name="STANDALONE_UNINSTALL_COMMAND_DEPRECATED"><div>&nbsp;</div></a>
34-
35-
## Command `sls uninstall`
36-
37-
Deprecation code: `STANDALONE_UNINSTALL_COMMAND_DEPRECATED`
38-
39-
Removal target: osls v4.0.0
40-
41-
The top-level standalone `sls uninstall` command is deprecated and scheduled for removal in osls v4.0.0. It only removes the legacy standalone binary directory and does not uninstall npm-installed osls.
42-
43-
Use your package manager to uninstall npm-installed osls instead:
44-
45-
```sh
46-
npm uninstall -g osls
47-
```
48-
49-
This does not affect `serverless plugin uninstall`.
50-
5133
<a name="VARIABLES_RESOLUTION_MODE"><div>&nbsp;</div></a>
5234

5335
## Property `variablesResolutionMode`

lib/cli/commands-schema/no-service.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -136,20 +136,6 @@ commands.set('plugin search', {
136136
lifecycleEvents: ['search'],
137137
});
138138

139-
(() => {
140-
const isHidden = !require('../../utils/is-standalone-executable') || process.platform === 'win32';
141-
const noSupportNotice =
142-
"It's applicable only in context of a standalone executable instance " +
143-
'in non Windows environment.';
144-
145-
commands.set('uninstall', {
146-
usage: 'Deprecated: uninstall standalone osls binary',
147-
isHidden,
148-
noSupportNotice,
149-
lifecycleEvents: ['uninstall'],
150-
});
151-
})();
152-
153139
for (const [name, schema] of commands) {
154140
if (!schema.options) schema.options = {};
155141
for (const optionSchema of Object.values(schema.options)) {

lib/cli/triage.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ module.exports = async () => {
3131
'install',
3232
'plugin list',
3333
'plugin search',
34-
'uninstall',
3534
]).has(command);
3635

3736
// Used only for osls compose check

lib/plugins/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,4 @@ module.exports = [
5555
require('./aws/deploy-function.js'),
5656
require('./aws/deploy-list.js'),
5757
require('./aws/invoke-local/index.js'),
58-
require('./standalone'),
5958
];

lib/plugins/standalone.js

Lines changed: 0 additions & 45 deletions
This file was deleted.

lib/utils/standalone.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

test/unit/lib/plugins/standalone.test.js

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)